]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00176147-1: usb: fix some wakeup problems
authorPeter Chen <peter.chen@freescale.com>
Wed, 22 Feb 2012 03:14:01 +0000 (11:14 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:12 +0000 (08:34 +0200)
commitc3aa05ce7a1509f04d492c8b30607084198893c8
tree30032856ca8bb4361d747d1201c986c62fb83f55
parenteb67a94f9f8553edf31ad603e957908c60c4100f
ENGR00176147-1: usb: fix some wakeup problems

- Do not call hcd core adjust wakeup flag code. It may change
wakeup flag, and cause port change detect(PCD) enable setting change.
- For ID wakeup, it should not call host's fsl_usb_recover_hcd at ID interrupt.
The coming ID switch event will resume host.
- Do not need enable wakeup interrupt for host at platform driver resume
routine, it may introduce unnessary wakeup interrupt during bus resume.
The wakeup will be enabled again when usb host goes to controller again
due to autosuspend.
- When there is no gadget enabled, the otg port is still at host mode with
interrupt enabled, so when male Micro-B to female A-type cable with
usb device plugs in, there will be PCD interrupt before hcd core leaves
suspend mode.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/host/ehci-arc.c
drivers/usb/otg/fsl_otg.c