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)
commit8fd39e3dcb881501726ed0161855ed7a61f642ef
treeac6bf5225cd73ce11ebebdff646c1984a38522d3
parent8218605d20fff015bb3f76060ad7fe87d4362fc0
greybus: es1-ap-usb: handle -EPROTO in check_urb_status()

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