net: sun4i: fix timeout check
authorEmilio López <emilio@elopez.com.ar>
Tue, 23 Jul 2013 01:09:18 +0000 (22:09 -0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jul 2013 00:04:20 +0000 (17:04 -0700)
commit2bf420a7686e0fdd2fbf16d75e729b306744db0d
treeae5422373f8ff4d856742c260f6baa533eb7b7dc
parent905a6f96a1b18e490a75f810d733ced93c39b0e5
net: sun4i: fix timeout check

The current timeout check is comparing two constant values, so it won't
ever detect a timeout. This patch reworks the affected code a bit so it
has a chance at detecting timeouts correctly.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-sun4i.c