USB: ehci-fsl: Add power management support
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Mon, 14 Dec 2009 15:41:12 +0000 (18:41 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:53:15 +0000 (14:53 -0800)
commit1af107744253b01b4cf119a9bb3369376b01658b
treeae206a587794e9427fac7f4b31f9fd8cca899c34
parentdad3843f035a273f9b64e133467e8dcbfaf0ce60
USB: ehci-fsl: Add power management support

EHCI FSL controller preserve its state during sleep mode, so nothing
fancy needs to be done.

Though, during 'deep sleep' mode (as found in MPC831x CPUs) the
controller turns off and needs to be reinitialized upon resume.

This patch adds support for hibernation and resuming after deep sleep.
Based on Dave Liu and Jerry Huang's work[1].

[1] http://www.bitshrine.org/gpp/linux-fsl-2.6.24.3-MPC8315ERDB-usb-power-mangement.patch

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-fsl.c