From: Patrice Vilchez Date: Wed, 28 Apr 2010 11:45:40 +0000 (+0200) Subject: USB: ohci-at91: fix power management hanging X-Git-Tag: v2.6.34-rc7~38^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=869aa98c1d6a03dd2078f8f8257a0bcc343cb8b9;p=pandora-kernel.git 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 Signed-off-by: Nicolas Ferre Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed