]> 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)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:49 +0000 (14:12 +0200)
commita0a760143b41881d23f07c615091e2670d682ebf
tree2069424fab91373adeabd657eff3bfb1d9438cf9
parent7b296a9ef6b2b09cfda305aab54cab235d75ea6d
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