Skip to content

Commit

Permalink
USB: serial: io_ti: bind to interface after fw download
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hovold committed Jan 4, 2017
1 parent 2330d0a commit e35d6d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/serial/io_ti.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e35d6d7

Please sign in to comment.