Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303756
b: refs/heads/master
c: 4a7ce90
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 3, 2012
1 parent 36839a2 commit fc8c869
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 39 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b6b6df8a568678ca086e9ed558352d762b018c6c
refs/heads/master: 4a7ce90c0a8160af6480836636ad7eb67c8e07dc
38 changes: 0 additions & 38 deletions trunk/drivers/usb/serial/ti_usb_3410_5052.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,6 @@ static void ti_release(struct usb_serial *serial)
struct ti_device *tdev = usb_get_serial_data(serial);
struct ti_port *tport;

dbg("%s", __func__);

for (i = 0; i < serial->num_ports; ++i) {
tport = usb_get_serial_port_data(serial->port[i]);
if (tport) {
Expand All @@ -491,8 +489,6 @@ static int ti_open(struct tty_struct *tty, struct usb_serial_port *port)
TI_PIPE_TIMEOUT_ENABLE |
(TI_TRANSFER_TIMEOUT << 2));

dbg("%s - port %d", __func__, port->number);

if (tport == NULL)
return -ENODEV;

Expand Down Expand Up @@ -633,8 +629,6 @@ static void ti_close(struct usb_serial_port *port)
int status;
int do_unlock;

dbg("%s - port %d", __func__, port->number);

tdev = usb_get_serial_data(port->serial);
tport = usb_get_serial_port_data(port);
if (tdev == NULL || tport == NULL)
Expand Down Expand Up @@ -668,8 +662,6 @@ static void ti_close(struct usb_serial_port *port)
}
if (do_unlock)
mutex_unlock(&tdev->td_open_close_lock);

dbg("%s - exit", __func__);
}


Expand All @@ -678,8 +670,6 @@ static int ti_write(struct tty_struct *tty, struct usb_serial_port *port,
{
struct ti_port *tport = usb_get_serial_port_data(port);

dbg("%s - port %d", __func__, port->number);

if (count == 0) {
dbg("%s - write request of 0 bytes", __func__);
return 0;
Expand All @@ -703,8 +693,6 @@ static int ti_write_room(struct tty_struct *tty)
int room = 0;
unsigned long flags;

dbg("%s - port %d", __func__, port->number);

if (tport == NULL)
return 0;

Expand All @@ -724,8 +712,6 @@ static int ti_chars_in_buffer(struct tty_struct *tty)
int chars = 0;
unsigned long flags;

dbg("%s - port %d", __func__, port->number);

if (tport == NULL)
return 0;

Expand All @@ -743,8 +729,6 @@ static void ti_throttle(struct tty_struct *tty)
struct usb_serial_port *port = tty->driver_data;
struct ti_port *tport = usb_get_serial_port_data(port);

dbg("%s - port %d", __func__, port->number);

if (tport == NULL)
return;

Expand All @@ -760,8 +744,6 @@ static void ti_unthrottle(struct tty_struct *tty)
struct ti_port *tport = usb_get_serial_port_data(port);
int status;

dbg("%s - port %d", __func__, port->number);

if (tport == NULL)
return;

Expand Down Expand Up @@ -856,8 +838,6 @@ static void ti_set_termios(struct tty_struct *tty,
int port_number = port->number - port->serial->minor;
unsigned int mcr;

dbg("%s - port %d", __func__, port->number);

cflag = tty->termios->c_cflag;
iflag = tty->termios->c_iflag;

Expand Down Expand Up @@ -990,8 +970,6 @@ static int ti_tiocmget(struct tty_struct *tty)
unsigned int mcr;
unsigned long flags;

dbg("%s - port %d", __func__, port->number);

if (tport == NULL)
return -ENODEV;

Expand Down Expand Up @@ -1022,8 +1000,6 @@ static int ti_tiocmset(struct tty_struct *tty,
unsigned int mcr;
unsigned long flags;

dbg("%s - port %d", __func__, port->number);

if (tport == NULL)
return -ENODEV;

Expand Down Expand Up @@ -1086,8 +1062,6 @@ static void ti_interrupt_callback(struct urb *urb)
int retval;
__u8 msr;

dbg("%s", __func__);

switch (status) {
case 0:
break;
Expand Down Expand Up @@ -1167,8 +1141,6 @@ static void ti_bulk_in_callback(struct urb *urb)
int retval = 0;
struct tty_struct *tty;

dbg("%s", __func__);

switch (status) {
case 0:
break;
Expand Down Expand Up @@ -1235,8 +1207,6 @@ static void ti_bulk_out_callback(struct urb *urb)
struct usb_serial_port *port = tport->tp_port;
int status = urb->status;

dbg("%s - port %d", __func__, port->number);

tport->tp_write_urb_in_use = 0;

switch (status) {
Expand Down Expand Up @@ -1289,9 +1259,6 @@ static void ti_send(struct ti_port *tport)
struct tty_struct *tty = tty_port_tty_get(&port->port); /* FIXME */
unsigned long flags;


dbg("%s - port %d", __func__, port->number);

spin_lock_irqsave(&tport->tp_lock, flags);

if (tport->tp_write_urb_in_use)
Expand Down Expand Up @@ -1368,8 +1335,6 @@ static int ti_get_lsr(struct ti_port *tport)
int port_number = port->number - port->serial->minor;
struct ti_port_status *data;

dbg("%s - port %d", __func__, port->number);

size = sizeof(struct ti_port_status);
data = kmalloc(size, GFP_KERNEL);
if (!data) {
Expand Down Expand Up @@ -1482,8 +1447,6 @@ static void ti_drain(struct ti_port *tport, unsigned long timeout, int flush)
struct usb_serial_port *port = tport->tp_port;
wait_queue_t wait;

dbg("%s - port %d", __func__, port->number);

spin_lock_irq(&tport->tp_lock);

/* wait for data to drain from the buffer */
Expand Down Expand Up @@ -1681,7 +1644,6 @@ static int ti_download_firmware(struct ti_device *tdev)
const struct firmware *fw_p;
char buf[32];

dbg("%s\n", __func__);
/* try ID specific firmware first, then try generic firmware */
sprintf(buf, "ti_usb-v%04x-p%04x.fw", dev->descriptor.idVendor,
dev->descriptor.idProduct);
Expand Down

0 comments on commit fc8c869

Please sign in to comment.