Thread (2 messages) flat view 2 messages, 2 authors, 2012-07-09

Re: [PATCH] [v2] net/fsl_pq_mdio: use spin_event_timeout() to poll the indicator register

From: David Miller <davem@davemloft.net>
Date: 2012-07-09 22:16:02

From: Timur Tabi <redacted>
Date: Mon, 9 Jul 2012 16:57:36 -0500
Macro spin_event_timeout() was designed for simple polling of hardware
registers with a timeout, so use it when we poll the MIIMIND register.
This allows us to return an error code instead of polling indefinitely.

Note that PHY_INIT_TIMEOUT is a count of loop iterations, so we can't use
it for spin_event_timeout(), which asks for microseconds.

Signed-off-by: Timur Tabi <redacted>
Applied to net-next, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help