diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-04-08 09:27:09 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-04-08 09:27:14 +0200 |
commit | cb7ac151cd13ca510588b80c24645f2add1b3737 (patch) | |
tree | 75967744f5d3ac4a5681a9a1c8a2a86b961ab341 /target/linux/generic | |
parent | 17a955d4d7ea36ee41e025d61e600ee143f58b97 (diff) | |
download | upstream-cb7ac151cd13ca510588b80c24645f2add1b3737.tar.gz upstream-cb7ac151cd13ca510588b80c24645f2add1b3737.tar.bz2 upstream-cb7ac151cd13ca510588b80c24645f2add1b3737.zip |
ar8216: reduce latency even further for ar8327 chips
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8327.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.c b/target/linux/generic/files/drivers/net/phy/ar8327.c index 96267d4f36..7bfc187509 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8327.c +++ b/target/linux/generic/files/drivers/net/phy/ar8327.c @@ -1083,8 +1083,10 @@ ar8327_wait_atu_ready(struct ar8xxx_priv *priv, u16 r2, u16 r1) { int timeout = 20; - while (ar8xxx_mii_read32(priv, r2, r1) & AR8327_ATU_FUNC_BUSY && --timeout) - udelay(10); + while (ar8xxx_mii_read32(priv, r2, r1) & AR8327_ATU_FUNC_BUSY && --timeout) { + udelay(10); + cond_resched(); + } if (!timeout) pr_err("ar8327: timeout waiting for atu to become ready\n"); |