net: mvmdio: orion_mdio_ready: remove manual poll
authorLeigh Brown <leigh@solinno.co.uk>
Tue, 29 Oct 2013 09:33:32 +0000 (09:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Oct 2013 22:53:36 +0000 (18:53 -0400)
commit839f46bb4cf73d20d76195d4f2de34801180ae7c
tree96a9dc3d8c0a24a6097cb934e7f1a6594e961f8a
parentb70cd1c1a95ab2a50ffc5e1070c9e90931b92261
net: mvmdio: orion_mdio_ready: remove manual poll

Replace manual poll of MVMDIO_SMI_READ_VALID with a call to
orion_mdio_wait_ready.  This ensures a consistent timeout,
eliminates a busy loop, and allows for use of interrupts on
systems that support them.

Signed-off-by: Leigh Brown <leigh@solinno.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvmdio.c