Thread (15 messages) 15 messages, 2 authors, 2021-09-26

Re: [PATCH v2 4/6] USB: serial: ftdi_sio: use usb_control_msg_recv()

From: Johan Hovold <johan@kernel.org>
Date: 2021-09-21 12:17:31
Also in: lkml

On Mon, Aug 02, 2021 at 02:01:20AM +0530, Himadri Pandya wrote:
usb_control_msg_recv() nicely wraps usb_control_msg() and removes the
compulsion of using dma buffers for usb messages. It also includes proper
error check for possible short read. So use the wrapper and remove dma
buffers from the callers.

Signed-off-by: Himadri Pandya <redacted>
---
Changes in v2:
 - Drop unnecessary use of wrappers
Now applied, with a slightly amended commit message:

    USB: serial: ftdi_sio: use usb_control_msg_recv()
    
    usb_control_msg_recv() nicely wraps usb_control_msg() and removes the
    compulsion of using DMA buffers for USB messages. It also includes proper
    error check for possible short read. So use the wrapper where
    appropriate and remove DMA buffers from the callers.

Johan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help