lkml.org 
[lkml]   [2021]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/2] USB: serial: use wrappers for usb_control_msg()
Date
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

\
 
 \ /
  Last update: 2021-10-01 09:00    [W:0.052 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site