]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe59faac9233f27bbaa58e25d7e1713d73840ded
treeae5422373f8ff4d856742c260f6baa533eb7b7dc
parent42ecca8b3f7d6a1762c5b0315bcd10ecbde957e7
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