소스 검색

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>
Johan Hovold 11 년 전
부모
커밋
af6f9e8355
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 6
      drivers/usb/serial/ftdi_sio.c

+ 0 - 6
drivers/usb/serial/ftdi_sio.c

@@ -1572,8 +1572,6 @@ static void ftdi_set_max_packet_size(struct usb_serial_port *port)
 	unsigned i;
 	unsigned i;
 
 
 	num_endpoints = interface->cur_altsetting->desc.bNumEndpoints;
 	num_endpoints = interface->cur_altsetting->desc.bNumEndpoints;
-	dev_info(&udev->dev, "Number of endpoints %d\n", num_endpoints);
-
 	if (!num_endpoints)
 	if (!num_endpoints)
 		return;
 		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
 	 * want to override the endpoint descriptor setting and use a
 	 * value of 64 for wMaxPacketSize */
 	 * value of 64 for wMaxPacketSize */
 	for (i = 0; i < num_endpoints; i++) {
 	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;
 		ep_desc = &interface->cur_altsetting->endpoint[i].desc;
 		if (ep_desc->wMaxPacketSize == 0) {
 		if (ep_desc->wMaxPacketSize == 0) {
 			ep_desc->wMaxPacketSize = cpu_to_le16(0x40);
 			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 */
 	/* set max packet size based on descriptor */
 	priv->max_packet_size = usb_endpoint_maxp(ep_desc);
 	priv->max_packet_size = usb_endpoint_maxp(ep_desc);
-
-	dev_info(&udev->dev, "Setting MaxPacketSize %d\n", priv->max_packet_size);
 }
 }