]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ohci-at91: fix power management hanging
authorPatrice Vilchez <patrice.vilchez@atmel.com>
Wed, 28 Apr 2010 11:45:40 +0000 (13:45 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Apr 2010 16:25:12 +0000 (09:25 -0700)
commit57aae85b5cf7ada5a93622a04739d6d4393f9b22
tree38bf46e1fac89285410cf782ca34546fb4dc22cf
parentda18bce3856ce5fd3ca1e3b8ad6f729d74685f4b
USB: ohci-at91: fix power management hanging

A hanging has been detected in ohci-at91 while going in suspend to ram. This is
due to asynchronous operations between ohci reset and ohci clocks shutdown.
This patch adds the reading of the control register between the reset of the
ohci and clocks stop. This "flush the writes" idea was taken from ohci-hcd.c
file (ohci_shutdown() function).

Signed-off-by: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-at91.c