mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
ar8216: reduce latency even further for ar8327 chips
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
17a955d4d7
commit
cb7ac151cd
@ -1083,8 +1083,10 @@ ar8327_wait_atu_ready(struct ar8xxx_priv *priv, u16 r2, u16 r1)
|
|||||||
{
|
{
|
||||||
int timeout = 20;
|
int timeout = 20;
|
||||||
|
|
||||||
while (ar8xxx_mii_read32(priv, r2, r1) & AR8327_ATU_FUNC_BUSY && --timeout)
|
while (ar8xxx_mii_read32(priv, r2, r1) & AR8327_ATU_FUNC_BUSY && --timeout) {
|
||||||
udelay(10);
|
udelay(10);
|
||||||
|
cond_resched();
|
||||||
|
}
|
||||||
|
|
||||||
if (!timeout)
|
if (!timeout)
|
||||||
pr_err("ar8327: timeout waiting for atu to become ready\n");
|
pr_err("ar8327: timeout waiting for atu to become ready\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user