You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Rename `spidev_device_busy_wait_timeout` to `spidev_page_program_busy_wait_timeout` to indicate that the timeout is explicitly for page program operations over spidev
- Change `spidev_page_program_busy_wait_timeout` to take timeout in milliseconds
- Change timeout behavior for spidev so that timeout value of 0 indicates indefinite wait
- Change timeout behavior for spidev so that `spidev_page_program_busy_wait_timeout` affects only the waits during intermediate page programs. After the final page program operation, `timeout_ms` argument from `libhoth_spi_receive_response` is used to wait for appropriate amount of time requested for host command execution
if (fd<0|| !data|| !data_len) returnLIBHOTH_ERR_INVALID_PARAMETER;
173
175
174
176
// Page program operations
175
177
size_tbytes_sent=0;
176
178
while (bytes_sent<data_len) {
179
+
// - For the first iteration, wait for any previous operations that might have set the busy bit to finish
180
+
// - For rest of the iterations, wait for each page program operation to be handled except the last one. Waiting for the last page program will be done in `libhoth_spi_receive_response` since RoT will take some time to execute the host command
0 commit comments