mbox series

[0/5] USB: serial: handle unbound ports

Message ID 20200117095026.27655-1-johan@kernel.org (mailing list archive)
Headers show
Series USB: serial: handle unbound ports | expand

Message

Johan Hovold Jan. 17, 2020, 9:50 a.m. UTC
Drivers must make sure that a port is bound to a driver before accessing
port data in non-port callbacks.

Note that this is needed even with the port-driver bind attributes
removed as an individual port may have failed to probe.

Johan


Johan Hovold (5):
  USB: ch341: handle unbound port at reset_resume
  USB: serial: io_edgeport: handle unbound ports on URB completion
  USB: serial: io_edgeport: add missing active-port sanity check
  USB: serial: keyspan: handle unbound ports
  USB: serial: quatech2: handle unbound ports

 drivers/usb/serial/ch341.c       |  6 +++++-
 drivers/usb/serial/io_edgeport.c | 16 +++++++++-------
 drivers/usb/serial/keyspan.c     |  4 ++++
 drivers/usb/serial/quatech2.c    | 20 ++++++++++++++++++++
 4 files changed, 38 insertions(+), 8 deletions(-)

Comments

Greg KH Jan. 17, 2020, 1:13 p.m. UTC | #1
On Fri, Jan 17, 2020 at 10:50:21AM +0100, Johan Hovold wrote:
> Drivers must make sure that a port is bound to a driver before accessing
> port data in non-port callbacks.
> 
> Note that this is needed even with the port-driver bind attributes
> removed as an individual port may have failed to probe.
> 
> Johan
> 
> 
> Johan Hovold (5):
>   USB: ch341: handle unbound port at reset_resume
>   USB: serial: io_edgeport: handle unbound ports on URB completion
>   USB: serial: io_edgeport: add missing active-port sanity check
>   USB: serial: keyspan: handle unbound ports
>   USB: serial: quatech2: handle unbound ports

For all 5:

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>