]> 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)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:13:22 +0000 (14:13 +0200)
commita8010f7f5f0bb21031a888b4157249033e1bb93f
tree89c799d0b59e843e67ac15acd0b5299b2028cdeb
parentb07084ec5c810bcdac1ea70a35a994214f7839cd
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