Skip to content

Commit af6f9e8

Browse files
committed
USB: ftdi_sio: make port probe less verbose
There's no need to print the number of endpoints per interface or endpoint wMaxPacketSize during port probe. This information is readily available using lsusb should it ever be needed. Note that this also fixes the wMaxPacketSize being incorrectly reported on big-endian systems due to a missing le16_to_cpu(). Signed-off-by: Johan Hovold <[email protected]>
1 parent cd3de83 commit af6f9e8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/usb/serial/ftdi_sio.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,8 +1572,6 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port)
15721572
unsigned i;
15731573

15741574
num_endpoints = interface->cur_altsetting->desc.bNumEndpoints;
1575-
dev_info(&udev->dev, "Number of endpoints %d\n", num_endpoints);
1576-
15771575
if (!num_endpoints)
15781576
return;
15791577

@@ -1582,8 +1580,6 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port)
15821580
* want to override the endpoint descriptor setting and use a
15831581
* value of 64 for wMaxPacketSize */
15841582
for (i = 0; i < num_endpoints; i++) {
1585-
dev_info(&udev->dev, "Endpoint %d MaxPacketSize %d\n", i+1,
1586-
interface->cur_altsetting->endpoint[i].desc.wMaxPacketSize);
15871583
ep_desc = &interface->cur_altsetting->endpoint[i].desc;
15881584
if (ep_desc->wMaxPacketSize == 0) {
15891585
ep_desc->wMaxPacketSize = cpu_to_le16(0x40);
@@ -1593,8 +1589,6 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port)
15931589

15941590
/* set max packet size based on descriptor */
15951591
priv->max_packet_size = usb_endpoint_maxp(ep_desc);
1596-
1597-
dev_info(&udev->dev, "Setting MaxPacketSize %d\n", priv->max_packet_size);
15981592
}
15991593

16001594

0 commit comments

Comments
 (0)