]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00232583 Mx6 USB host: Set HCD_FLAG_HW_ACCESSIBLE flag after clock gate
authormake shi <b15407@freescale.com>
Tue, 6 Nov 2012 07:52:24 +0000 (15:52 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:41 +0000 (08:35 +0200)
commitcc39240e98bc433580c1fc0574a4f22519b2ed29
tree89c799d0b59e843e67ac15acd0b5299b2028cdeb
parent47762df33e1a7a7ffd3db94e81c91f2c9f34d5a1
ENGR00232583 Mx6 USB host: Set HCD_FLAG_HW_ACCESSIBLE flag after clock gate

There is a USB hang issue when do system suspend/resume test with a USB
device plug in. The issue is caused by USB host driver accessing register
when clock is off. Currently set HCD_FLAG_HW_ACCESSIBLE bit before open
clock in ehci_fsl_bus_resume, it cause accessing register without clock.
So we should change the code call order to avoid driver access register
without clock.

- Set HCD_FLAG_HW_ACCESSIBLE software flag after HW clock turn on
- remove some unnecessary code in ehci_fsl_pre_irq

Signed-off-by: make shi <b15407@freescale.com>
drivers/usb/host/ehci-arc.c