Re: [PATCH 2/2] powerpc/usb: fix bug of CPU hang when missing USB PHY clock

From
Tabi Timur-B04825 <hidden>
Date
2012-08-21 02:31:10
Reply to
Shengzhou Liu, 2012-08-10
On Fri, Aug 10, 2012 at 5:48 AM, Shengzhou Liu
[off-list ref] wrote:
quoted hunk ↗ jump to hunk
+               for (timeout =3D 1000; timeout > 0; timeout--) {
+                       /* check PHY_CLK_VALID to get phy clk valid */
+                       if (in_be32(non_ehci + FSL_SOC_USB_CTRL)
+                                       & PHY_CLK_VALID)
+                               break;
+                       udelay(1);
+               }
Use spin_event_timeout() instead.

--=20
Timur Tabi
Linux kernel developer at Freescale=
Thread (8 messages) 8 messages, 5 authors, last reply 2012-08-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help