summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/usb-serial.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2013-03-21 12:36:50 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-25 21:48:27 +0100
commit5cb27dde2e8b7bcbdce6de270c73c021a65caff8 (patch)
tree31822932c11b0b4d3d034a92c5fc4320d367af0b /drivers/usb/serial/usb-serial.c
parentUSB: serial: use urb poison to reliably kill traffic (diff)
downloadlinux-5cb27dde2e8b7bcbdce6de270c73c021a65caff8.tar.xz
linux-5cb27dde2e8b7bcbdce6de270c73c021a65caff8.zip
USB: serial: clean up usb-serial bus device removal
Make sure to unregister the tty-device before calling subdriver port_remove. This way remove will reverse probe, and specifically any port data released in port_remove will be available throughout tty unregister. Note that the order currently does not matter as the tty-layer can make callbacks also after the device has been unregistered. This is handled in usb-serial core using the disconnected flag, which is already set when usb-serial bus device remove is called. Cc: Peter Hurley <peter@hurleysoftware.com> Reported-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
0 files changed, 0 insertions, 0 deletions