aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/sierra.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-01 16:23:01 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-01 16:23:01 -0400
commitd9a807461fc8cc0d6ba589ea0730d139122af012 (patch)
tree9d8c7a044659d821748dd40718a22557c04e4299 /drivers/usb/serial/sierra.c
parent3498d13b8090c0b0ef911409fbc503a7c4cca6ef (diff)
parent70c048a238c780c226eb4b115ebaa908cb3b34ec (diff)
Merge tag 'usb-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB changes from Greg Kroah-Hartman: "Here is the big USB pull request for 3.7-rc1 There are lots of gadget driver changes (including copying a bunch of files into the drivers/staging/ccg/ directory so that the other gadget drivers can be fixed up properly without breaking that driver), and we remove the old obsolete ub.c driver from the tree. There are also the usual XHCI set of updates, and other various driver changes and updates. We also are trying hard to remove the old dbg() macro, but the final bits of that removal will be coming in through the networking tree before we can delete it for good. All of these patches have been in the linux-next tree. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>" Fix up several annoying - but fairly mindless - conflicts due to the termios structure having moved into the tty device, and often clashing with dbg -> dev_dbg conversion. * tag 'usb-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (339 commits) USB: ezusb: move ezusb.c from drivers/usb/serial to drivers/usb/misc USB: uas: fix gcc warning USB: uas: fix locking USB: Fix race condition when removing host controllers USB: uas: add locking USB: uas: fix abort USB: uas: remove aborted field, replace with status bit. USB: uas: fix task management USB: uas: keep track of command urbs xhci: Intel Panther Point BEI quirk. powerpc/usb: remove checking PHY_CLK_VALID for UTMI PHY USB: ftdi_sio: add TIAO USB Multi-Protocol Adapter (TUMPA) support Revert "usb : Add sysfs files to control port power." USB: serial: remove vizzini driver usb: host: xhci: Fix Null pointer dereferencing with 71c731a for non-x86 systems Increase XHCI suspend timeout to 16ms USB: ohci-at91: fix null pointer in ohci_hcd_at91_overcurrent_irq USB: sierra_ms: don't keep unused variable fsl/usb: Add support for USB controller version 2.4 USB: qcaux: add Pantech vendor class match ...
Diffstat (limited to 'drivers/usb/serial/sierra.c')
-rw-r--r--drivers/usb/serial/sierra.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c
index b14ebbd73567..01d882cf3775 100644
--- a/drivers/usb/serial/sierra.c
+++ b/drivers/usb/serial/sierra.c
@@ -46,7 +46,6 @@
46 allocations > PAGE_SIZE and the number of packets in a page 46 allocations > PAGE_SIZE and the number of packets in a page
47 is an integer 512 is the largest possible packet on EHCI */ 47 is an integer 512 is the largest possible packet on EHCI */
48 48
49static bool debug;
50static bool nmea; 49static bool nmea;
51 50
52/* Used in interface blacklisting */ 51/* Used in interface blacklisting */
@@ -518,7 +517,7 @@ static int sierra_write(struct tty_struct *tty, struct usb_serial_port *port,
518 517
519 memcpy(buffer, buf, writesize); 518 memcpy(buffer, buf, writesize);
520 519
521 usb_serial_debug_data(debug, &port->dev, __func__, writesize, buffer); 520 usb_serial_debug_data(&port->dev, __func__, writesize, buffer);
522 521
523 usb_fill_bulk_urb(urb, serial->dev, 522 usb_fill_bulk_urb(urb, serial->dev,
524 usb_sndbulkpipe(serial->dev, 523 usb_sndbulkpipe(serial->dev,
@@ -595,8 +594,8 @@ static void sierra_indat_callback(struct urb *urb)
595 tty_flip_buffer_push(tty); 594 tty_flip_buffer_push(tty);
596 595
597 tty_kref_put(tty); 596 tty_kref_put(tty);
598 usb_serial_debug_data(debug, &port->dev, 597 usb_serial_debug_data(&port->dev, __func__,
599 __func__, urb->actual_length, data); 598 urb->actual_length, data);
600 } 599 }
601 } else { 600 } else {
602 dev_dbg(&port->dev, "%s: empty read urb" 601 dev_dbg(&port->dev, "%s: empty read urb"
@@ -765,7 +764,6 @@ static struct urb *sierra_setup_urb(struct usb_serial *serial, int endpoint,
765 usb_sndbulkpipe(serial->dev, endpoint) | dir, 764 usb_sndbulkpipe(serial->dev, endpoint) | dir,
766 buf, len, callback, ctx); 765 buf, len, callback, ctx);
767 766
768 /* debug */
769 dev_dbg(&serial->dev->dev, "%s %c u : %p d:%p\n", __func__, 767 dev_dbg(&serial->dev->dev, "%s %c u : %p d:%p\n", __func__,
770 dir == USB_DIR_IN ? 'i' : 'o', urb, buf); 768 dir == USB_DIR_IN ? 'i' : 'o', urb, buf);
771 } else { 769 } else {
@@ -1082,6 +1080,3 @@ MODULE_LICENSE("GPL");
1082 1080
1083module_param(nmea, bool, S_IRUGO | S_IWUSR); 1081module_param(nmea, bool, S_IRUGO | S_IWUSR);
1084MODULE_PARM_DESC(nmea, "NMEA streaming"); 1082MODULE_PARM_DESC(nmea, "NMEA streaming");
1085
1086module_param(debug, bool, S_IRUGO | S_IWUSR);
1087MODULE_PARM_DESC(debug, "Debug messages");