USB: serial: pl2303: amend and tighten type detection
authorJohan Hovold <johan@kernel.org>
Thu, 11 Mar 2021 16:14:48 +0000 (17:14 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 17 Mar 2021 08:16:22 +0000 (09:16 +0100)
commit8a7bf7510d1f43994b39a677e561af4ee6a1a0ae
tree84cf14223b6dc7e5d4363ee6a2ab8e137534982c
parente5f48c812679ff46c8fe5e0c4a9f2881cb56ea1a
USB: serial: pl2303: amend and tighten type detection

Add support for detecting the HX, TA, TB and HXD device types and refuse
to bind to any unknown types.

Note that the HX type includes the XA variant, while the HXD type
includes the EA, RA and SA variants.

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