Messages in this thread | | | From | Himadri Pandya <> | Subject | [PATCH v3 0/2] USB: serial: use wrappers for usb_control_msg() | Date | Fri, 1 Oct 2021 08:57:18 +0200 |
| |
There are many usages of usb_control_msg() that can instead use the new wrapper functions usb_contro_msg_send() & usb_control_msg_recv() for better error checks on short reads. The wrappers also handle the allocation of dma buffers and callers don't need to manage them explicitly.
This is a follow up on v2 with 6 patches. 4 of them are already applied so v3 only includes the two remaining patches. The patches are compile-tested only.
Changes in v3: - Rephrase commit messages - Add notes on omitting the logs for short read sizes
Changes in v2: - Drop unnecessary use of wrappers - Drop unrelated style changes
Himadri Pandya (2): USB: serial: ch314: use usb_control_msg_recv() and usb_control_msg_send() USB: serial: cp210x: use usb_control_msg_recv() and usb_control_msg_send()
drivers/usb/serial/ch341.c | 90 ++++++++---------------------- drivers/usb/serial/cp210x.c | 106 ++++++++++-------------------------- 2 files changed, 54 insertions(+), 142 deletions(-)
-- 2.17.1
| |