mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] USB: serial: use wrappers for usb_control_msg()
@ 2021-10-01  6:57 Himadri Pandya
  2021-10-01  6:57 ` [PATCH v3 1/2] USB: serial: ch314: use usb_control_msg_recv() and usb_control_msg_send() Himadri Pandya
  2021-10-01  6:57 ` [PATCH v3 2/2] USB: serial: cp210x: " Himadri Pandya
  0 siblings, 2 replies; 9+ messages in thread
From: Himadri Pandya @ 2021-10-01  6:57 UTC (permalink / raw)
  To: johan, gregkh, linux-usb, linux-kernel; +Cc: Himadri Pandya

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-10-27 13:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01  6:57 [PATCH v3 0/2] USB: serial: use wrappers for usb_control_msg() Himadri Pandya
2021-10-01  6:57 ` [PATCH v3 1/2] USB: serial: ch314: use usb_control_msg_recv() and usb_control_msg_send() Himadri Pandya
2021-10-27 13:04   ` Johan Hovold
2021-10-27 13:28     ` Himadri Pandya
2021-10-27 13:37       ` Johan Hovold
2021-10-27 13:47         ` Himadri Pandya
2021-10-01  6:57 ` [PATCH v3 2/2] USB: serial: cp210x: " Himadri Pandya
2021-10-27 13:17   ` Johan Hovold
2021-10-27 13:34     ` Himadri Pandya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome