aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-06-05 10:05:53 -0400
committerJohan Hovold <johan@kernel.org>2014-07-07 04:10:32 -0400
commitaf6f9e8355b2200df1ed077bc1b8ebf6b4592b01 (patch)
tree444237813b4f6c8e0e6c579bcae8303963ffec40 /drivers/usb/serial
parentcd3de83f147601356395b57a8673e9c5ff1e59d1 (diff)
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 <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r--drivers/usb/serial/ftdi_sio.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 115662c16dcc..ca84d2cdd655 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -1572,8 +1572,6 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port)
1572 unsigned i; 1572 unsigned i;
1573 1573
1574 num_endpoints = interface->cur_altsetting->desc.bNumEndpoints; 1574 num_endpoints = interface->cur_altsetting->desc.bNumEndpoints;
1575 dev_info(&udev->dev, "Number of endpoints %d\n", num_endpoints);
1576
1577 if (!num_endpoints) 1575 if (!num_endpoints)
1578 return; 1576 return;
1579 1577
@@ -1582,8 +1580,6 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port)
1582 * want to override the endpoint descriptor setting and use a 1580 * want to override the endpoint descriptor setting and use a
1583 * value of 64 for wMaxPacketSize */ 1581 * value of 64 for wMaxPacketSize */
1584 for (i = 0; i < num_endpoints; i++) { 1582 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);
1587 ep_desc = &interface->cur_altsetting->endpoint[i].desc; 1583 ep_desc = &interface->cur_altsetting->endpoint[i].desc;
1588 if (ep_desc->wMaxPacketSize == 0) { 1584 if (ep_desc->wMaxPacketSize == 0) {
1589 ep_desc->wMaxPacketSize = cpu_to_le16(0x40); 1585 ep_desc->wMaxPacketSize = cpu_to_le16(0x40);
@@ -1593,8 +1589,6 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port)
1593 1589
1594 /* set max packet size based on descriptor */ 1590 /* set max packet size based on descriptor */
1595 priv->max_packet_size = usb_endpoint_maxp(ep_desc); 1591 priv->max_packet_size = usb_endpoint_maxp(ep_desc);
1596
1597 dev_info(&udev->dev, "Setting MaxPacketSize %d\n", priv->max_packet_size);
1598} 1592}
1599 1593
1600 1594