summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2014-12-12 23:10:18 +0100
committerGreg Kroah-Hartman2014-12-13 19:35:33 +0100
commitf9b1df64a9f98e9c2fe38bec86b11740743e3661 (patch)
tree3f9ce5c6aeb8e1dd735db83356bc3a9c79fbfc5c /drivers/staging/greybus
parentgreybus: bundle: rename interface.[c|h] to bundle.[c|h] (diff)
downloadkernel-qcow2-linux-f9b1df64a9f98e9c2fe38bec86b11740743e3661.tar.gz
kernel-qcow2-linux-f9b1df64a9f98e9c2fe38bec86b11740743e3661.tar.xz
kernel-qcow2-linux-f9b1df64a9f98e9c2fe38bec86b11740743e3661.zip
greybus: es1-ap-usb: don't protest when getting -EPROTO USB errors
-EPROTO happens when devices are starting to go away in a system, or there is something wrong on the USB connection. Either way, it's safe to resubmit the urb for this error, don't complain to userspace about this, as the user will see this for every device removed, which looks scary, but means nothing. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com> Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r--drivers/staging/greybus/es1-ap-usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/es1-ap-usb.c b/drivers/staging/greybus/es1-ap-usb.c
index 41f56da747c5..27416e440ede 100644
--- a/drivers/staging/greybus/es1-ap-usb.c
+++ b/drivers/staging/greybus/es1-ap-usb.c
@@ -352,7 +352,7 @@ static void svc_in_callback(struct urb *urb)
int retval;
if (status) {
- if (status == -EAGAIN)
+ if ((status == -EAGAIN) || (status == -EPROTO))
goto exit;
dev_err(dev, "urb svc in error %d (dropped)\n", status);
return;
@@ -380,7 +380,7 @@ static void cport_in_callback(struct urb *urb)
u8 *data;
if (status) {
- if (status == -EAGAIN)
+ if ((status == -EAGAIN) || (status == -EPROTO))
goto exit;
dev_err(dev, "urb cport in error %d (dropped)\n", status);
return;