summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-01-03 16:39:46 +0100
committerJohan Hovold <johan@kernel.org>2017-01-04 10:37:17 +0100
commite35d6d7c4e6532a89732cf4bace0e910ee684c88 (patch)
tree11429c52ef310f401c845e7a32129348a6c053e1 /drivers/usb
parent2330d0a853da260d8a9834a70df448032b9ff623 (diff)
downloadop-kernel-dev-e35d6d7c4e6532a89732cf4bace0e910ee684c88.zip
op-kernel-dev-e35d6d7c4e6532a89732cf4bace0e910ee684c88.tar.gz
USB: serial: io_ti: bind to interface after fw download
Bind to the interface, but do not register any ports, after having downloaded the firmware. The device will still disconnect and re-enumerate, but this way we avoid an error messages from being logged as part of the process: io_ti: probe of 1-1.3:1.0 failed with error -5 Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/io_ti.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index 4b0b978..9a0db29 100644
--- a/drivers/usb/serial/io_ti.c
+++ b/drivers/usb/serial/io_ti.c
@@ -1499,8 +1499,7 @@ static int do_boot_mode(struct edgeport_serial *serial,
dev_dbg(dev, "%s - Download successful -- Device rebooting...\n", __func__);
- /* return an error on purpose */
- return -ENODEV;
+ return 1;
}
stayinbootmode:
OpenPOWER on IntegriCloud