projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
362eb02
)
USB: pl2303: add error handling to set_control_lines
author
Johan Hovold
<jhovold@gmail.com>
Sun, 29 Dec 2013 18:23:02 +0000
(19:23 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 3 Jan 2014 20:31:47 +0000
(12:31 -0800)
Add error handling to set_control_lines.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/pl2303.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/pl2303.c
b/drivers/usb/serial/pl2303.c
index 4058ceec884d3dfa0b975ed0b86658ab3ac097ea..1fe8545e9926252c440c19cb3e5414ef7ecd68c7 100644
(file)
--- a/
drivers/usb/serial/pl2303.c
+++ b/
drivers/usb/serial/pl2303.c
@@
-269,12
+269,13
@@
static int pl2303_set_control_lines(struct usb_serial_port *port, u8 value)
struct usb_device *dev = port->serial->dev;
int retval;
+ dev_dbg(&port->dev, "%s - %02x\n", __func__, value);
+
retval = usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
SET_CONTROL_REQUEST, SET_CONTROL_REQUEST_TYPE,
value, 0, NULL, 0, 100);
-
- dev_dbg(&port->dev, "%s - value = %d, retval = %d\n", __func__,
- value, retval);
+ if (retval)
+ dev_err(&port->dev, "%s - failed: %d\n", __func__, retval);
return retval;
}
This page took
0.0253 seconds
and
5
git commands to generate.