]> www.infradead.org Git - users/jedix/linux-maple.git/commit
USB: serial: pl2303: account for deficits of clones
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 12 Sep 2024 08:37:39 +0000 (10:37 +0200)
committerJohan Hovold <johan@kernel.org>
Wed, 6 Nov 2024 16:23:33 +0000 (17:23 +0100)
commit40827729cff16269b5e99fc8e12bf53d848407de
tree478b87a0c8d9aa0499df88c4d595df140c64115c
parent59b723cd2adbac2a34fc8e12c74ae26ae45bf230
USB: serial: pl2303: account for deficits of clones

There are apparently incomplete clones of the HXD type chip in use.
Those return -EPIPE on GET_LINE_REQUEST and BREAK_REQUEST. Avoid
flooding the kernel log with those errors. Detect them during startup
and then use the line_settings cache instead of GET_LINE_REQUEST. Signal
missing break support via -ENOTTY.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
[ johan: fix macro prefix, drop oom error message ]
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/pl2303.c