From: Himadri Pandya <himadrispandya@gmail.com>
To: johan@kernel.org, gregkh@linuxfoundation.org,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Himadri Pandya <himadrispandya@gmail.com>
Subject: [PATCH v3 0/2] USB: serial: use wrappers for usb_control_msg()
Date: Fri, 1 Oct 2021 08:57:18 +0200 [thread overview]
Message-ID: <20211001065720.21330-1-himadrispandya@gmail.com> (raw)
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
next reply other threads:[~2021-10-01 7:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-01 6:57 Himadri Pandya [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211001065720.21330-1-himadrispandya@gmail.com \
--to=himadrispandya@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=johan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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