]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: serial: move pl2303 hack out of usb-serial core
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 16:13:34 +0000 (17:13 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 28 Mar 2017 08:59:01 +0000 (10:59 +0200)
commit9fda620a5f3d7711d0b27d36eeec3a24a097af97
tree980aa71b17e0ce838398b8749c5de1443c23a395
parent6538808c5619850cfedc9bee6d64d3793b31923d
USB: serial: move pl2303 hack out of usb-serial core

Some pl2303 devices require the use of the interrupt endpoint of an
unrelated interface. This has so far been dealt with in usb-serial core,
but can now be moved to a driver calc_num_ports callback.

Note that we relax the endpoint requirements checked by core and instead
verify that we have an interrupt-in endpoint in calc_num_ports for all
devices so that the hack can first be applied.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/pl2303.c
drivers/usb/serial/usb-serial.c