Searched hist:"74 f266455062c158f343bc3aa35ef84b3eb7adf1" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/usb/serial/ |
H A D | ch341.c | diff 74f266455062c158f343bc3aa35ef84b3eb7adf1 Fri Oct 01 08:57:19 CEST 2021 Himadri Pandya <himadrispandya@gmail.com> USB: serial: ch314: use usb_control_msg_recv()
usb_control_msg_recv() is a new wrapper function for usb_control_msg() that has error checks for short reads. This function also accepts data buffer on stack. Hence use this function to simplify error handling for short reads. Short reads will now get reported as -EREMOTEIO with no indication of how short the transfer was.
Signed-off-by: Himadri Pandya <himadrispandya@gmail.com> Link: https://lore.kernel.org/r/20211001065720.21330-2-himadrispandya@gmail.com [ johan: fix quirk-detection breakage, style changes ] Signed-off-by: Johan Hovold <johan@kernel.org>
|