OSDN Git Service

USB: serial: pl2303: add support for more HXN (G) types
authorJohan Hovold <johan@kernel.org>
Tue, 21 Jun 2022 08:58:55 +0000 (10:58 +0200)
committerJohan Hovold <johan@kernel.org>
Wed, 22 Jun 2022 06:52:03 +0000 (08:52 +0200)
commitae60aac59a9ad8ab64a4b07de509a534a75b6bac
treea79d4b3a2ad5d6d83963685554b7cd322b6d9479
parent342fc0c3b345525da21112bd0478a0dc741598ea
USB: serial: pl2303: add support for more HXN (G) types

Add support for further HXN (G) type devices (GT variant, GL variant, GS
variant and GR) and document the bcdDevice mapping.

Note that the TA and TB types use the same bcdDevice as some GT and GE
variants, respectively, but that the HX status request can be used to
determine which is which.

Also note that we currently do not distinguish between the various HXN
(G) types in the driver but that this may change eventually (e.g. when
adding GPIO support).

Reported-by: Charles Yeh <charlesyeh522@gmail.com>
Link: https://lore.kernel.org/r/YrF77b9DdeumUAee@hovoldconsulting.com
Cc: stable@vger.kernel.org # 5.13
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/pl2303.c