Skip to content

USB: serial: use wrappers for usb_control_msg()

Himadri Pandya linux-usb lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesIn review
  2. v26 patches 8 repliesSuperseded
  3. v115 patches 18 repliesSuperseded

Changes in v3 from the cover letter

- Rephrase commit messages
- Add notes on omitting the logs for short read sizes

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2USB: serial: ch314: use usb_control_msg_recv() and usb_control_msg_send()drivers/usb/serial/ch341.c+24 -664 replies
2/2USB: serial: cp210x: use usb_control_msg_recv() and usb_control_msg_send()drivers/usb/serial/cp210x.c+30 -762 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] USB: serial: use wrappers for usb_control_msg()

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(-)
Signature · 1 line
2.17.1