aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/ftdi_sio.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-06-05 16:05:53 +0200
committerJohan Hovold <johan@kernel.org>2014-07-07 10:10:32 +0200
commitaf6f9e8355b2200df1ed077bc1b8ebf6b4592b01 (patch)
tree444237813b4f6c8e0e6c579bcae8303963ffec40 /drivers/usb/serial/ftdi_sio.c
parentcd3de83f147601356395b57a8673e9c5ff1e59d1 (diff)
downloadlinux-af6f9e8355b2200df1ed077bc1b8ebf6b4592b01.tar.gz
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/ftdi_sio.c')
-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 115662c16dccd7..ca84d2cdd6555b 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)
unsigned i;
num_endpoints = interface->cur_altsetting->desc.bNumEndpoints;
- dev_info(&udev->dev, "Number of endpoints %d\n", num_endpoints);
-
if (!num_endpoints)
return;
@@ -1582,8 +1580,6 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port)
* want to override the endpoint descriptor setting and use a
* value of 64 for wMaxPacketSize */
for (i = 0; i < num_endpoints; i++) {
- dev_info(&udev->dev, "Endpoint %d MaxPacketSize %d\n", i+1,
- interface->cur_altsetting->endpoint[i].desc.wMaxPacketSize);
ep_desc = &interface->cur_altsetting->endpoint[i].desc;
if (ep_desc->wMaxPacketSize == 0) {
ep_desc->wMaxPacketSize = cpu_to_le16(0x40);
@@ -1593,8 +1589,6 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port)
/* set max packet size based on descriptor */
priv->max_packet_size = usb_endpoint_maxp(ep_desc);
-
- dev_info(&udev->dev, "Setting MaxPacketSize %d\n", priv->max_packet_size);
}