mos7840.c (aa1262b3876ec5249ff464618a7dcd46b3ca54e2) | mos7840.c (6aad04f21374633bd8cecf25024553d1e11a9522) |
---|---|
1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2 of the License, or 5 * (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of --- 800 unchanged lines hidden (view full) --- 809 * this is the callback function for when we have finished sending 810 * serial data on the bulk out endpoint. 811 *****************************************************************************/ 812 813static void mos7840_bulk_out_data_callback(struct urb *urb) 814{ 815 struct moschip_port *mos7840_port; 816 struct usb_serial_port *port; | 1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2 of the License, or 5 * (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of --- 800 unchanged lines hidden (view full) --- 809 * this is the callback function for when we have finished sending 810 * serial data on the bulk out endpoint. 811 *****************************************************************************/ 812 813static void mos7840_bulk_out_data_callback(struct urb *urb) 814{ 815 struct moschip_port *mos7840_port; 816 struct usb_serial_port *port; |
817 struct tty_struct *tty; | |
818 int status = urb->status; 819 int i; 820 821 mos7840_port = urb->context; 822 port = mos7840_port->port; 823 spin_lock(&mos7840_port->pool_lock); 824 for (i = 0; i < NUM_URBS; i++) { 825 if (urb == mos7840_port->write_urb_pool[i]) { --- 6 unchanged lines hidden (view full) --- 832 if (status) { 833 dev_dbg(&port->dev, "nonzero write bulk status received:%d\n", status); 834 return; 835 } 836 837 if (mos7840_port_paranoia_check(port, __func__)) 838 return; 839 | 817 int status = urb->status; 818 int i; 819 820 mos7840_port = urb->context; 821 port = mos7840_port->port; 822 spin_lock(&mos7840_port->pool_lock); 823 for (i = 0; i < NUM_URBS; i++) { 824 if (urb == mos7840_port->write_urb_pool[i]) { --- 6 unchanged lines hidden (view full) --- 831 if (status) { 832 dev_dbg(&port->dev, "nonzero write bulk status received:%d\n", status); 833 return; 834 } 835 836 if (mos7840_port_paranoia_check(port, __func__)) 837 return; 838 |
840 tty = tty_port_tty_get(&port->port); 841 if (tty && mos7840_port->open) 842 tty_wakeup(tty); 843 tty_kref_put(tty); | 839 if (mos7840_port->open) 840 tty_port_tty_wakeup(&port->port); |
844 845} 846 847/************************************************************************/ 848/* D R I V E R T T Y I N T E R F A C E F U N C T I O N S */ 849/************************************************************************/ 850#ifdef MCSSerialProbe 851static int mos7840_serial_probe(struct usb_serial *serial, --- 1754 unchanged lines hidden --- | 841 842} 843 844/************************************************************************/ 845/* D R I V E R T T Y I N T E R F A C E F U N C T I O N S */ 846/************************************************************************/ 847#ifdef MCSSerialProbe 848static int mos7840_serial_probe(struct usb_serial *serial, --- 1754 unchanged lines hidden --- |