]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: pl2303: fix type detection for odd device
authorJohan Hovold <johan@kernel.org>
Tue, 17 May 2022 16:17:36 +0000 (18:17 +0200)
committerJohan Hovold <johan@kernel.org>
Wed, 18 May 2022 11:57:00 +0000 (13:57 +0200)
commitd620d3ed07c85eda46cde5a7b59a1677e1b24ba9
treeab094060038ea058f0d591d9585e82e4c508b03c
parentefbdb5d499767c2136053cd3d5a72afa0dc05312
USB: serial: pl2303: fix type detection for odd device

At least one pl2303 device has a bcdUSB of 1.0.1 which most likely was
was intended as 1.1.

Allow bcdDevice 1.0.1 but interpret it as 1.1.

Fixes: a82c60d214ff ("USB: serial: pl2303: fix HX type detection")
Cc: stable@vger.kernel.org # 5.13
Link: https://lore.kernel.org/linux-usb/CAJixRzqf4a9-ZKZDgWxicc_BpfdZVE9qqGmkiO7xEstOXUbGvQ@mail.gmail.com
Reported-by: Gary van der Merwe <gary.vandermerwe@fnb.co.za>
Link: https://lore.kernel.org/r/20220517161736.13313-1-johan@kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/pl2303.c