]> asedeno.scripts.mit.edu Git - linux.git/commit
USB: serial: cp210x: fix partnum regression
authorSebastian Frei <dr.nop@gmx.net>
Tue, 12 Sep 2017 07:50:59 +0000 (09:50 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 19 Sep 2017 07:37:48 +0000 (09:37 +0200)
commit7eac35ea29dc54cbc8399de84c9bf16553575b89
treec7c640fd3c36592ad7cc10105e7a6d427272b71c
parent837ddc4793a69b256ac5e781a5e729b448a8d983
USB: serial: cp210x: fix partnum regression

When adding GPIO support for the cp2105, the mentioned commit by Martyn
Welch introduced a query for the part number of the chip. Unfortunately
the driver aborts probing when this query fails, so currently the driver
can not be used with chips not supporting this query.
I have a data cable for Siemens mobile phones (ID 10ab:10c5) where this
is the case.
With this patch the driver can be bound even if the part number can not
be queried.

Fixes: cf5276ce7867 ("USB: serial: cp210x: Adding GPIO support for CP2105")
Signed-off-by: Sebastian Frei <dr.nop@gmx.net>
[ johan: amend commit message; shorten error message and demote to
         warning; drop unnecessary move of usb_set_serial_data() ]
Cc: stable <stable@vger.kernel.org> # 4.9
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cp210x.c