Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326041
b: refs/heads/master
c: 4f0c641
h: refs/heads/master
i:
  326039: 00f8503
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Sep 14, 2012
1 parent a7cb2c8 commit cd17f72
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 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: 8c8e87bc23acb4e9ed42c3d1b1d9fbf42f368ea2
refs/heads/master: 4f0c64120041fc92a35cd1fe84562b7abcd7aeb7
32 changes: 16 additions & 16 deletions trunk/drivers/usb/serial/ssu100.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static inline int update_mctrl(struct usb_device *dev, unsigned int set,
int result;

if (((set | clear) & (TIOCM_DTR | TIOCM_RTS)) == 0) {
dbg("%s - DTR|RTS not being set|cleared", __func__);
dev_dbg(&dev->dev, "%s - DTR|RTS not being set|cleared\n", __func__);
return 0; /* no change */
}

Expand All @@ -148,7 +148,7 @@ static inline int update_mctrl(struct usb_device *dev, unsigned int set,

result = ssu100_setregister(dev, 0, UART_MCR, urb_value);
if (result < 0)
dbg("%s Error from MODEM_CTRL urb", __func__);
dev_dbg(&dev->dev, "%s Error from MODEM_CTRL urb\n", __func__);

return result;
}
Expand All @@ -164,33 +164,33 @@ static int ssu100_initdevice(struct usb_device *dev)

result = ssu100_getdevice(dev, data);
if (result < 0) {
dbg("%s - get_device failed %i", __func__, result);
dev_dbg(&dev->dev, "%s - get_device failed %i\n", __func__, result);
goto out;
}

data[1] &= ~FULLPWRBIT;

result = ssu100_setdevice(dev, data);
if (result < 0) {
dbg("%s - setdevice failed %i", __func__, result);
dev_dbg(&dev->dev, "%s - setdevice failed %i\n", __func__, result);
goto out;
}

result = ssu100_control_msg(dev, QT_GET_SET_PREBUF_TRIG_LVL, 128, 0);
if (result < 0) {
dbg("%s - set prebuffer level failed %i", __func__, result);
dev_dbg(&dev->dev, "%s - set prebuffer level failed %i\n", __func__, result);
goto out;
}

result = ssu100_control_msg(dev, QT_SET_ATF, ATC_DISABLED, 0);
if (result < 0) {
dbg("%s - set ATFprebuffer level failed %i", __func__, result);
dev_dbg(&dev->dev, "%s - set ATFprebuffer level failed %i\n", __func__, result);
goto out;
}

result = ssu100_getdevice(dev, data);
if (result < 0) {
dbg("%s - get_device failed %i", __func__, result);
dev_dbg(&dev->dev, "%s - get_device failed %i\n", __func__, result);
goto out;
}

Expand All @@ -201,7 +201,7 @@ static int ssu100_initdevice(struct usb_device *dev)

result = ssu100_setdevice(dev, data);
if (result < 0) {
dbg("%s - setdevice failed %i", __func__, result);
dev_dbg(&dev->dev, "%s - setdevice failed %i\n", __func__, result);
goto out;
}

Expand Down Expand Up @@ -249,7 +249,7 @@ static void ssu100_set_termios(struct tty_struct *tty,
if (!baud)
baud = 9600;

dbg("%s - got baud = %d\n", __func__, baud);
dev_dbg(&port->dev, "%s - got baud = %d\n", __func__, baud);


divisor = MAX_BAUD_RATE / baud;
Expand All @@ -261,7 +261,7 @@ static void ssu100_set_termios(struct tty_struct *tty,

result = ssu100_control_msg(dev, QT_GET_SET_UART, divisor, urb_value);
if (result < 0)
dbg("%s - set uart failed", __func__);
dev_dbg(&port->dev, "%s - set uart failed\n", __func__);

if (cflag & CRTSCTS)
result = ssu100_control_msg(dev, QT_HW_FLOW_CONTROL_MASK,
Expand All @@ -270,7 +270,7 @@ static void ssu100_set_termios(struct tty_struct *tty,
result = ssu100_control_msg(dev, QT_HW_FLOW_CONTROL_MASK,
0, 0);
if (result < 0)
dbg("%s - set HW flow control failed", __func__);
dev_dbg(&port->dev, "%s - set HW flow control failed\n", __func__);

if (I_IXOFF(tty) || I_IXON(tty)) {
u16 x = ((u16)(START_CHAR(tty) << 8) | (u16)(STOP_CHAR(tty)));
Expand All @@ -282,7 +282,7 @@ static void ssu100_set_termios(struct tty_struct *tty,
0, 0);

if (result < 0)
dbg("%s - set SW flow control failed", __func__);
dev_dbg(&port->dev, "%s - set SW flow control failed\n", __func__);

}

Expand All @@ -304,7 +304,7 @@ static int ssu100_open(struct tty_struct *tty, struct usb_serial_port *port)
QT_TRANSFER_IN, 0x01,
0, data, 2, 300);
if (result < 0) {
dbg("%s - open failed %i", __func__, result);
dev_dbg(&port->dev, "%s - open failed %i\n", __func__, result);
kfree(data);
return result;
}
Expand All @@ -319,7 +319,7 @@ static int ssu100_open(struct tty_struct *tty, struct usb_serial_port *port)
/* set to 9600 */
result = ssu100_control_msg(dev, QT_GET_SET_UART, 0x30, 0x0300);
if (result < 0)
dbg("%s - set uart failed", __func__);
dev_dbg(&port->dev, "%s - set uart failed\n", __func__);

if (tty)
ssu100_set_termios(tty, port, tty->termios);
Expand Down Expand Up @@ -423,7 +423,7 @@ static int ssu100_ioctl(struct tty_struct *tty,
{
struct usb_serial_port *port = tty->driver_data;

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

switch (cmd) {
case TIOCGSERIAL:
Expand All @@ -437,7 +437,7 @@ static int ssu100_ioctl(struct tty_struct *tty,
break;
}

dbg("%s arg not supported", __func__);
dev_dbg(&port->dev, "%s arg not supported\n", __func__);

return -ENOIOCTLCMD;
}
Expand Down

0 comments on commit cd17f72

Please sign in to comment.