ENGR00176147-1: usb: fix some wakeup problems
authorPeter Chen <peter.chen@freescale.com>
Wed, 22 Feb 2012 03:14:01 +0000 (11:14 +0800)
committerPeter Chen <peter.chen@freescale.com>
Wed, 7 Mar 2012 07:01:35 +0000 (15:01 +0800)
commit7f40896b71be935f53bf703c686c619062799c6f
tree5702647582e8a4ca03a7098968b91dc92d9139b5
parent158ce9aa6bda83e44f2a608cb160040662710f62
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