diff options
author | Johan Hovold <johan@kernel.org> | 2021-10-25 14:51:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-26 20:12:27 +0300 |
commit | ebcf652dbb22c14a21a01ee5431448f13ffb24d6 (patch) | |
tree | 9859de449d0e23e422d560186c898f442cb90ef6 /Documentation/driver-api/usb | |
parent | e8d6336d9d7198013a7b307107908242a7a53b23 (diff) | |
download | linux-ebcf652dbb22c14a21a01ee5431448f13ffb24d6.tar.xz |
Documentation: USB: fix example bulk-message timeout
USB bulk-message timeouts are specified in milliseconds and should
specifically not vary with CONFIG_HZ.
Use a fixed five-second timeout in the "Writing USB Device Drivers"
example.
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20211025115159.4954-2-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/driver-api/usb')
-rw-r--r-- | Documentation/driver-api/usb/writing_usb_driver.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/driver-api/usb/writing_usb_driver.rst b/Documentation/driver-api/usb/writing_usb_driver.rst index e09dac9e2cb6..b43e1ce49f0e 100644 --- a/Documentation/driver-api/usb/writing_usb_driver.rst +++ b/Documentation/driver-api/usb/writing_usb_driver.rst @@ -234,7 +234,7 @@ error message. This can be shown with the following code:: skel->bulk_in_endpointAddr), skel->bulk_in_buffer, skel->bulk_in_size, - &count, HZ*10); + &count, 5000); /* if the read was successful, copy the data to user space */ if (!retval) { if (copy_to_user (buffer, skel->bulk_in_buffer, count)) |