OSDN Git Service

greybus: es2: don't protest when getting -ENOENT/ESHUTDOWN USB errors
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 21 Apr 2016 06:01:15 +0000 (11:31 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 Apr 2016 07:11:15 +0000 (16:11 +0900)
commit62de6e0a7262edebc4debd99585b19dc10d2741d
tree890cee8d5cf823773dbc1d9e6b4e1b9c1e226709
parentecdd3a2d59321ebd46c595dbadf24f50364a052a
greybus: es2: don't protest when getting -ENOENT/ESHUTDOWN USB errors

-ENOENT or -ESHUTDOWN happens when the urbs are being killed from
->disconnect() callback.  Don't complain to userspace about this, as the
user will see this on es2 module removal.

Tested by removing the gb-es2.ko module on both EVT1.5 and qemu with
gbsim. The driver doesn't throw anymore errors like:
"urb cport in error -2 (dropped)".

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: David Lin <dtwlin@google.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c