Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303954
b: refs/heads/master
c: a94e9b9
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 15, 2012
1 parent d0ba5fd commit 1d2d878
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 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: c89aa63898f2238cd3c6537963a82b05146b9338
refs/heads/master: a94e9b94cc9b6d193bc69e6c9a3044aed4b7a5d9
20 changes: 12 additions & 8 deletions trunk/drivers/usb/serial/f81232.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ static void f81232_read_int_callback(struct urb *urb)
case -ENOENT:
case -ESHUTDOWN:
/* this urb is terminated, clean up */
dbg("%s - urb shutting down with status: %d", __func__,
status);
dev_dbg(&port->dev, "%s - urb shutting down with status: %d\n",
__func__, status);
return;
default:
dbg("%s - nonzero urb status received: %d", __func__,
status);
dev_dbg(&port->dev, "%s - nonzero urb status received: %d\n",
__func__, status);
goto exit;
}

Expand Down Expand Up @@ -131,7 +131,7 @@ static void f81232_process_read_urb(struct urb *urb)
tty_flag = TTY_PARITY;
else if (line_status & UART_FRAME_ERROR)
tty_flag = TTY_FRAME;
dbg("%s - tty_flag = %d", __func__, tty_flag);
dev_dbg(&port->dev, "%s - tty_flag = %d\n", __func__, tty_flag);

/* overrun is special, not associated with a char */
if (line_status & UART_OVERRUN_ERROR)
Expand Down Expand Up @@ -290,7 +290,9 @@ static int f81232_ioctl(struct tty_struct *tty,
{
struct serial_struct ser;
struct usb_serial_port *port = tty->driver_data;
dbg("%s (%d) cmd = 0x%04x", __func__, port->number, cmd);

dev_dbg(&port->dev, "%s (%d) cmd = 0x%04x\n", __func__,
port->number, cmd);

switch (cmd) {
case TIOCGSERIAL:
Expand All @@ -306,10 +308,12 @@ static int f81232_ioctl(struct tty_struct *tty,
return 0;

case TIOCMIWAIT:
dbg("%s (%d) TIOCMIWAIT", __func__, port->number);
dev_dbg(&port->dev, "%s (%d) TIOCMIWAIT\n", __func__,
port->number);
return wait_modem_info(port, arg);
default:
dbg("%s not supported = 0x%04x", __func__, cmd);
dev_dbg(&port->dev, "%s not supported = 0x%04x\n",
__func__, cmd);
break;
}
return -ENOIOCTLCMD;
Expand Down

0 comments on commit 1d2d878

Please sign in to comment.