Przeglądaj źródła

USB: adding comment for ipaq forcing number of ports

The reason for forcing a number of ports should be documented.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Oliver Neukum 17 lat temu
rodzic
commit
b89cbb81ae
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      drivers/usb/serial/ipaq.c

+ 5 - 0
drivers/usb/serial/ipaq.c

@@ -570,6 +570,11 @@ static struct usb_serial_driver ipaq_device = {
 	.description =		"PocketPC PDA",
 	.usb_driver = 		&ipaq_driver,
 	.id_table =		ipaq_id_table,
+	/*
+	 * some devices have an extra endpoint, which
+	 * must be ignored as it would make the core
+	 * create a second port which oopses when used
+	 */
 	.num_ports =		1,
 	.open =			ipaq_open,
 	.close =		ipaq_close,