]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: es2: disable cport-in after remove greybus host device
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 21 Apr 2016 06:01:14 +0000 (11:31 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 Apr 2016 07:11:15 +0000 (16:11 +0900)
commitecdd3a2d59321ebd46c595dbadf24f50364a052a
tree1179bc5230e2d22cbf76bca4551f5bf503a73f7a
parenta0f997bd5db42eb21d42f04d10cbe03f3fc4fa91
greybus: es2: disable cport-in after remove greybus host device

This allows greybus to do operations before being removed.

Tested by removing the gb-es2.ko module on both EVT1.5 and qemu with
gbsim. The driver removes the greybus host device successfully before
disabling the urbs. The errors are still coming ("urb cport in error -2
(dropped)"), but with an error value -2 (ENOENT) instead of -108. And
that happens while the urbs are disabled, not while doing greybus
operations.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-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