]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00221317-02 Mx6 USB host: set stop_mode_config when any USB host enabled
authormake shi <b15407@freescale.com>
Fri, 24 Aug 2012 05:53:49 +0000 (13:53 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:18 +0000 (08:35 +0200)
commitf2d727d4f18018aece6813e91506770fbf297135
tree2069424fab91373adeabd657eff3bfb1d9438cf9
parent96eda84f674d61cf15e87a0ff56df88a9605afec
ENGR00221317-02 Mx6 USB host: set stop_mode_config when any USB host enabled

The Mx6 phy sometimes work abnormally after system suspend/resume if the 1V1
is off. So we should keep the 1V1 active during the system suspend if any USB
host enabled.
- Add stop_mode_config to 1 with refcount
- Add mutex to protect the refcount and HW_ANADIG_ANA_MISC0 register
- If stop_mode_config is set as 1, the otg  vbus wakeup system will be supported

Signed-off-by: make shi <b15407@freescale.com>
arch/arm/mach-mx6/pm.c
arch/arm/mach-mx6/usb_dr.c
arch/arm/mach-mx6/usb_h1.c
arch/arm/plat-mxc/usb_common.c