]> git.baikalelectronics.ru Git - kernel.git/commit
USB: do not print -ESHUTDOWN message if usb at otg device mode
authorPeter Chen <peter.chen@freescale.com>
Mon, 27 Sep 2010 08:43:25 +0000 (16:43 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:22:05 +0000 (10:22 -0700)
commit30f70d831f1f6d0c9aa79fbb3ad1611c2207315d
treeff26bd3a16a6e9ee07f1671288314317b56265a3
parentf276a482d909e964cdcc0461f81666a7ed9ec0b0
USB: do not print -ESHUTDOWN message if usb at otg device mode

At otg device mode, the otg host resume should do no-op during
system resume, otherwise, the otg device will be treated as a
host for enumeration.

So, the otg host driver returns -ESHUTDOWN if it detects the
current usb mode is device mode. The host driver has to return
-ESHUTDOWN, otherwise, the usb_hc_died will be called.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/driver.c