diff options
author | Kurt Kanzenbach <kurt@linutronix.de> | 2019-05-19 19:59:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-21 02:00:46 +0200 |
commit | 882119ff969da4ec308d1161c78d22bc9b4a1f01 (patch) | |
tree | c9f84cd837e2b3aa08d7142dbb272cc1d76466c5 /drivers/net/xen-netfront.c | |
parent | vlan: Mark expected switch fall-through (diff) | |
download | linux-882119ff969da4ec308d1161c78d22bc9b4a1f01.tar.xz linux-882119ff969da4ec308d1161c78d22bc9b4a1f01.zip |
1/2] net: axienet: use readx_poll_timeout() in mdio wait function
On loaded systems with a preemptible kernel the mdio_wait() function may
report an error while everything is working fine:
axienet_mdio_wait_until_ready():
axienet_ior() -> chip not ready
--> interrupt here (other work for some time / chip become ready)
if (time_before_eq(end, jiffies))
--> false positive error report
Replace the current code with readx_poll_timeout() which take care
of the situation.
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions