From: Anand Gadiyar Date: Fri, 2 Jul 2010 15:33:37 +0000 (-0600) Subject: OMAP3: wait on IDLEST after enabling USBTLL fclk X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c28d455a2e8c133b49f6366a4ce46ed1f423532;p=pandora-kernel.git OMAP3: wait on IDLEST after enabling USBTLL fclk We need to wait on the IDLEST bit after the clocks are enabled before attempting to access any register. Currently, the USBTLL i-clock ops uses the clkops_omap2_dflt_wait, while the USBTLL f-clock ops uses clkops_omap2_dflt. If the i-clock is enabled first, the clkops_omap2_dflt_wait is short-circuited as the companion f-clock is not enabled. This can cause a data abort if the IDLEST has not transitioned, and we try to access a USBTLL register. Since the USBTLL i-clock and f-clock could be enabled in any order, this is a bug. Fix it by changing the clkops for the f-clock. Signed-off-by: Anand Gadiyar Signed-off-by: Paul Walmsley --- Reading git-diff-tree failed