Skip to content

Commit 448016e

Browse files
committed
USB: serial: ftdi_sio: silence jtag probe
Probe of a device should generally be silent unless errors are encountered. Stop logging that the JTAG port is ignored when probing devices with such a reserved port. This also maintains consistency with devices that match on interface number to avoid binding to reserved ports. Note that the message is not even correct for the second port of the ST Micro Connect Lite. Signed-off-by: Johan Hovold <johan@kernel.org>
1 parent 4e31a5d commit 448016e

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

drivers/usb/serial/ftdi_sio.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,10 +2294,8 @@ static int ftdi_jtag_probe(struct usb_serial *serial)
22942294
struct usb_interface *intf = serial->interface;
22952295
int ifnum = intf->cur_altsetting->desc.bInterfaceNumber;
22962296

2297-
if (ifnum == 0) {
2298-
dev_info(&intf->dev, "Ignoring interface reserved for JTAG\n");
2297+
if (ifnum == 0)
22992298
return -ENODEV;
2300-
}
23012299

23022300
return 0;
23032301
}
@@ -2330,10 +2328,8 @@ static int ftdi_stmclite_probe(struct usb_serial *serial)
23302328
struct usb_interface *intf = serial->interface;
23312329
int ifnum = intf->cur_altsetting->desc.bInterfaceNumber;
23322330

2333-
if (ifnum < 2) {
2334-
dev_info(&intf->dev, "Ignoring interface reserved for JTAG\n");
2331+
if (ifnum < 2)
23352332
return -ENODEV;
2336-
}
23372333

23382334
return 0;
23392335
}

0 commit comments

Comments
 (0)