diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-12-29 13:22:55 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-03 15:31:46 -0500 |
commit | 4d5147ec90531d11e7677e2c38941fc18e160641 (patch) | |
tree | 5ec91ed685b7dc0e7bf1e67d256945bdd2c54441 /drivers/usb/serial | |
parent | 5c6b98dd0437ba8c1b515bf11357784335613d65 (diff) |
USB: serial: clean up ioctl debugging
Remove redundant ioctl debugging from subdrivers. The ioctl request code
has already been logged by usb-serial core.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/f81232.c | 4 | ||||
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 8 | ||||
-rw-r--r-- | drivers/usb/serial/io_edgeport.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/io_ti.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/mos7720.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/mos7840.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/opticon.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/pl2303.c | 3 | ||||
-rw-r--r-- | drivers/usb/serial/ssu100.c | 4 | ||||
-rw-r--r-- | drivers/usb/serial/ti_usb_3410_5052.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/whiteheat.c | 2 |
12 files changed, 2 insertions, 33 deletions
diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c index 639a18fb67e6..aeb2edca1ce6 100644 --- a/drivers/usb/serial/f81232.c +++ b/drivers/usb/serial/f81232.c | |||
@@ -287,8 +287,6 @@ static int f81232_ioctl(struct tty_struct *tty, | |||
287 | struct serial_struct ser; | 287 | struct serial_struct ser; |
288 | struct usb_serial_port *port = tty->driver_data; | 288 | struct usb_serial_port *port = tty->driver_data; |
289 | 289 | ||
290 | dev_dbg(&port->dev, "%s cmd = 0x%04x\n", __func__, cmd); | ||
291 | |||
292 | switch (cmd) { | 290 | switch (cmd) { |
293 | case TIOCGSERIAL: | 291 | case TIOCGSERIAL: |
294 | memset(&ser, 0, sizeof ser); | 292 | memset(&ser, 0, sizeof ser); |
@@ -302,8 +300,6 @@ static int f81232_ioctl(struct tty_struct *tty, | |||
302 | 300 | ||
303 | return 0; | 301 | return 0; |
304 | default: | 302 | default: |
305 | dev_dbg(&port->dev, "%s not supported = 0x%04x\n", | ||
306 | __func__, cmd); | ||
307 | break; | 303 | break; |
308 | } | 304 | } |
309 | return -ENOIOCTLCMD; | 305 | return -ENOIOCTLCMD; |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 2e5cf73f1217..b3f712f8cf17 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -2383,8 +2383,6 @@ static int ftdi_ioctl(struct tty_struct *tty, | |||
2383 | { | 2383 | { |
2384 | struct usb_serial_port *port = tty->driver_data; | 2384 | struct usb_serial_port *port = tty->driver_data; |
2385 | 2385 | ||
2386 | dev_dbg(&port->dev, "%s cmd 0x%04x\n", __func__, cmd); | ||
2387 | |||
2388 | /* Based on code from acm.c and others */ | 2386 | /* Based on code from acm.c and others */ |
2389 | switch (cmd) { | 2387 | switch (cmd) { |
2390 | 2388 | ||
@@ -2401,11 +2399,7 @@ static int ftdi_ioctl(struct tty_struct *tty, | |||
2401 | default: | 2399 | default: |
2402 | break; | 2400 | break; |
2403 | } | 2401 | } |
2404 | /* This is not necessarily an error - turns out the higher layers | 2402 | |
2405 | * will do some ioctls themselves (see comment above) | ||
2406 | */ | ||
2407 | dev_dbg(&port->dev, "%s arg not supported - it was 0x%04x - check /usr/include/asm/ioctls.h\n", | ||
2408 | __func__, cmd); | ||
2409 | return -ENOIOCTLCMD; | 2403 | return -ENOIOCTLCMD; |
2410 | } | 2404 | } |
2411 | 2405 | ||
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index c91481d74a14..9c79fb22f341 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -1593,8 +1593,6 @@ static int edge_ioctl(struct tty_struct *tty, | |||
1593 | DEFINE_WAIT(wait); | 1593 | DEFINE_WAIT(wait); |
1594 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); | 1594 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); |
1595 | 1595 | ||
1596 | dev_dbg(&port->dev, "%s - cmd = 0x%x\n", __func__, cmd); | ||
1597 | |||
1598 | switch (cmd) { | 1596 | switch (cmd) { |
1599 | case TIOCSERGETLSR: | 1597 | case TIOCSERGETLSR: |
1600 | dev_dbg(&port->dev, "%s TIOCSERGETLSR\n", __func__); | 1598 | dev_dbg(&port->dev, "%s TIOCSERGETLSR\n", __func__); |
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index b7187bf32469..2b3b7bfeb332 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -2362,8 +2362,6 @@ static int edge_ioctl(struct tty_struct *tty, | |||
2362 | struct usb_serial_port *port = tty->driver_data; | 2362 | struct usb_serial_port *port = tty->driver_data; |
2363 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); | 2363 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); |
2364 | 2364 | ||
2365 | dev_dbg(&port->dev, "%s - cmd = 0x%x\n", __func__, cmd); | ||
2366 | |||
2367 | switch (cmd) { | 2365 | switch (cmd) { |
2368 | case TIOCGSERIAL: | 2366 | case TIOCGSERIAL: |
2369 | dev_dbg(&port->dev, "%s - TIOCGSERIAL\n", __func__); | 2367 | dev_dbg(&port->dev, "%s - TIOCGSERIAL\n", __func__); |
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index 439c951f261b..b739a1732b76 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -1885,8 +1885,6 @@ static int mos7720_ioctl(struct tty_struct *tty, | |||
1885 | if (mos7720_port == NULL) | 1885 | if (mos7720_port == NULL) |
1886 | return -ENODEV; | 1886 | return -ENODEV; |
1887 | 1887 | ||
1888 | dev_dbg(&port->dev, "%s - cmd = 0x%x", __func__, cmd); | ||
1889 | |||
1890 | switch (cmd) { | 1888 | switch (cmd) { |
1891 | case TIOCSERGETLSR: | 1889 | case TIOCSERGETLSR: |
1892 | dev_dbg(&port->dev, "%s TIOCSERGETLSR\n", __func__); | 1890 | dev_dbg(&port->dev, "%s TIOCSERGETLSR\n", __func__); |
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index a69da83604c0..bc176ae61743 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -2070,8 +2070,6 @@ static int mos7840_ioctl(struct tty_struct *tty, | |||
2070 | if (mos7840_port == NULL) | 2070 | if (mos7840_port == NULL) |
2071 | return -1; | 2071 | return -1; |
2072 | 2072 | ||
2073 | dev_dbg(&port->dev, "%s - cmd = 0x%x\n", __func__, cmd); | ||
2074 | |||
2075 | switch (cmd) { | 2073 | switch (cmd) { |
2076 | /* return number of bytes available */ | 2074 | /* return number of bytes available */ |
2077 | 2075 | ||
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c index cbe779f578f9..1b4f1d2479c1 100644 --- a/drivers/usb/serial/opticon.c +++ b/drivers/usb/serial/opticon.c | |||
@@ -367,8 +367,6 @@ static int opticon_ioctl(struct tty_struct *tty, | |||
367 | { | 367 | { |
368 | struct usb_serial_port *port = tty->driver_data; | 368 | struct usb_serial_port *port = tty->driver_data; |
369 | 369 | ||
370 | dev_dbg(&port->dev, "%s - cmd = 0x%x\n", __func__, cmd); | ||
371 | |||
372 | switch (cmd) { | 370 | switch (cmd) { |
373 | case TIOCGSERIAL: | 371 | case TIOCGSERIAL: |
374 | return get_serial_info(port, | 372 | return get_serial_info(port, |
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index beb8edce4ef2..9a7dfa3738d9 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -648,8 +648,6 @@ static int pl2303_ioctl(struct tty_struct *tty, | |||
648 | struct serial_struct ser; | 648 | struct serial_struct ser; |
649 | struct usb_serial_port *port = tty->driver_data; | 649 | struct usb_serial_port *port = tty->driver_data; |
650 | 650 | ||
651 | dev_dbg(&port->dev, "%s cmd = 0x%04x\n", __func__, cmd); | ||
652 | |||
653 | switch (cmd) { | 651 | switch (cmd) { |
654 | case TIOCGSERIAL: | 652 | case TIOCGSERIAL: |
655 | memset(&ser, 0, sizeof ser); | 653 | memset(&ser, 0, sizeof ser); |
@@ -663,7 +661,6 @@ static int pl2303_ioctl(struct tty_struct *tty, | |||
663 | 661 | ||
664 | return 0; | 662 | return 0; |
665 | default: | 663 | default: |
666 | dev_dbg(&port->dev, "%s not supported = 0x%04x\n", __func__, cmd); | ||
667 | break; | 664 | break; |
668 | } | 665 | } |
669 | return -ENOIOCTLCMD; | 666 | return -ENOIOCTLCMD; |
diff --git a/drivers/usb/serial/ssu100.c b/drivers/usb/serial/ssu100.c index e5750be49054..a6fec959d2f8 100644 --- a/drivers/usb/serial/ssu100.c +++ b/drivers/usb/serial/ssu100.c | |||
@@ -342,8 +342,6 @@ static int ssu100_ioctl(struct tty_struct *tty, | |||
342 | { | 342 | { |
343 | struct usb_serial_port *port = tty->driver_data; | 343 | struct usb_serial_port *port = tty->driver_data; |
344 | 344 | ||
345 | dev_dbg(&port->dev, "%s cmd 0x%04x\n", __func__, cmd); | ||
346 | |||
347 | switch (cmd) { | 345 | switch (cmd) { |
348 | case TIOCGSERIAL: | 346 | case TIOCGSERIAL: |
349 | return get_serial_info(port, | 347 | return get_serial_info(port, |
@@ -352,8 +350,6 @@ static int ssu100_ioctl(struct tty_struct *tty, | |||
352 | break; | 350 | break; |
353 | } | 351 | } |
354 | 352 | ||
355 | dev_dbg(&port->dev, "%s arg not supported\n", __func__); | ||
356 | |||
357 | return -ENOIOCTLCMD; | 353 | return -ENOIOCTLCMD; |
358 | } | 354 | } |
359 | 355 | ||
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index 87188095fa19..4a649edaa2c0 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
@@ -683,8 +683,6 @@ static int ti_ioctl(struct tty_struct *tty, | |||
683 | struct usb_serial_port *port = tty->driver_data; | 683 | struct usb_serial_port *port = tty->driver_data; |
684 | struct ti_port *tport = usb_get_serial_port_data(port); | 684 | struct ti_port *tport = usb_get_serial_port_data(port); |
685 | 685 | ||
686 | dev_dbg(&port->dev, "%s - cmd = 0x%04X\n", __func__, cmd); | ||
687 | |||
688 | if (tport == NULL) | 686 | if (tport == NULL) |
689 | return -ENODEV; | 687 | return -ENODEV; |
690 | 688 | ||
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 6091bd5a1f4f..7c9dc28640bb 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -405,7 +405,7 @@ static int serial_ioctl(struct tty_struct *tty, | |||
405 | struct usb_serial_port *port = tty->driver_data; | 405 | struct usb_serial_port *port = tty->driver_data; |
406 | int retval = -ENOIOCTLCMD; | 406 | int retval = -ENOIOCTLCMD; |
407 | 407 | ||
408 | dev_dbg(tty->dev, "%s - cmd 0x%.4x\n", __func__, cmd); | 408 | dev_dbg(tty->dev, "%s - cmd 0x%04x\n", __func__, cmd); |
409 | 409 | ||
410 | switch (cmd) { | 410 | switch (cmd) { |
411 | case TIOCMIWAIT: | 411 | case TIOCMIWAIT: |
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 36a7740e827c..d23290e496ef 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
@@ -455,8 +455,6 @@ static int whiteheat_ioctl(struct tty_struct *tty, | |||
455 | struct serial_struct serstruct; | 455 | struct serial_struct serstruct; |
456 | void __user *user_arg = (void __user *)arg; | 456 | void __user *user_arg = (void __user *)arg; |
457 | 457 | ||
458 | dev_dbg(&port->dev, "%s - cmd 0x%.4x\n", __func__, cmd); | ||
459 | |||
460 | switch (cmd) { | 458 | switch (cmd) { |
461 | case TIOCGSERIAL: | 459 | case TIOCGSERIAL: |
462 | memset(&serstruct, 0, sizeof(serstruct)); | 460 | memset(&serstruct, 0, sizeof(serstruct)); |