]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
USB: serial: mos7720: fix parallel probe
authorJohan Hovold <johan@kernel.org>
Tue, 3 Jan 2017 15:39:53 +0000 (16:39 +0100)
committerLuis Henriques <luis.henriques@canonical.com>
Fri, 20 Jan 2017 11:26:38 +0000 (11:26 +0000)
commit9e519b8694fc43e12ee40906df5b1d63cf80b78b
tree9fb9bebeb82c425af0392adfc6a9229da042c309
parent833d476281848cf3e3fe8c7854b0a8b1ba3f284a
USB: serial: mos7720: fix parallel probe

BugLink: http://bugs.launchpad.net/bugs/1655969
commit fde1faf872ed86d88e245191bc15a8e57368cd1c upstream.

A static usb-serial-driver structure that is used to initialise the
interrupt URB was modified during probe depending on the currently
probed device type, something which could break a parallel probe of a
device of a different type.

Fix this up by overriding the default completion callback for MCS7715
devices in attach() instead. We may want to use two usb-serial driver
instances for the two types later.

Fixes: fb088e335d78 ("USB: serial: add support for serial port on the moschip 7715")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/usb/serial/mos7720.c