Files
android_kernel_fxtec_sm6115/include/linux
Alan Stern e299619a6f USB: usbcore: Introduce usb_bulk_msg_killable()
commit 416909962e7cdf29fd01ac523c953f37708df93d upstream.

The synchronous message API in usbcore (usb_control_msg(),
usb_bulk_msg(), and so on) uses uninterruptible waits.  However,
drivers may call these routines in the context of a user thread, which
means it ought to be possible to at least kill them.

For this reason, introduce a new usb_bulk_msg_killable() function
which behaves the same as usb_bulk_msg() except for using
wait_for_completion_killable_timeout() instead of
wait_for_completion_timeout().  The same can be done later for
usb_control_msg() later on, if it turns out to be needed.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Suggested-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/linux-usb/3acfe838-6334-4f6d-be7c-4bb01704b33d@rowland.harvard.edu/
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
CC: stable@vger.kernel.org
Link: https://patch.msgid.link/248628b4-cc83-4e81-a620-3ce4e0376d41@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ulrich Hecht <uli@kernel.org>
2026-05-07 10:55:16 +02:00
..
2026-04-09 14:44:43 +08:00
2024-02-23 08:12:39 +01:00
2023-08-08 19:49:17 +02:00
2023-12-20 15:38:01 +01:00
2025-12-22 04:34:05 +01:00
2024-04-13 12:50:14 +02:00
2026-01-29 12:09:34 +08:00
2023-09-23 10:47:59 +02:00
2023-06-21 15:39:57 +02:00
2025-09-16 13:55:10 +02:00
2023-11-28 16:46:33 +00:00
2023-10-25 11:16:20 +02:00
2023-10-25 11:16:20 +02:00
2024-07-05 09:00:35 +02:00
2024-02-23 08:12:39 +01:00