]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: es1-ap-usb: handle -EPROTO in check_urb_status()
authorMatt Porter <mporter@linaro.org>
Mon, 13 Oct 2014 07:00:53 +0000 (03:00 -0400)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 13 Oct 2014 08:36:47 +0000 (10:36 +0200)
On a disconnect we can also have a status of -EPROTO. This results in
a flood of error messages due to the -EAGAIN handling of unsupported
status results. Fix this by also returning status when we have -EPROTO.

Signed-off-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1-ap-usb.c

index 97dd9b6a2bc1bb01eef6d63c252498adcf855da0..1a67d9e15c2aa44a7df2c5e4776feb176160a9d9 100644 (file)
@@ -257,6 +257,7 @@ static int check_urb_status(struct urb *urb)
        case -ENOENT:
        case -ESHUTDOWN:
        case -EILSEQ:
+       case -EPROTO:
                /* device is gone, stop sending */
                return status;
        }