summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2012-07-09 16:57:36 -0500
committerDavid S. Miller <davem@davemloft.net>2012-07-09 15:15:34 -0700
commit59399c59262bbb8ae60a37935c3a512d2e79cca3 (patch)
treef73fb997b8c203699cbe56a5a82296160f4f7fa2 /net
parent9fa32e94dc4f08505934b9b015e2dfea9ae18555 (diff)
downloadlinux-59399c59262bbb8ae60a37935c3a512d2e79cca3.tar.bz2
net/fsl_pq_mdio: use spin_event_timeout() to poll the indicator register
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 <timur@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions