diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-05-14 22:59:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-15 00:30:21 +0200 |
commit | 2ad255f2faaffb3af786031fba2e7955454b558a (patch) | |
tree | dac23265c0d537ed8b9f0ab3e9725179d414609d /drivers/net/dsa/qca8k.h | |
parent | net: dsa: qca8k: change simple print to dev variant (diff) | |
download | linux-2ad255f2faaffb3af786031fba2e7955454b558a.tar.xz linux-2ad255f2faaffb3af786031fba2e7955454b558a.zip |
net: dsa: qca8k: use iopoll macro for qca8k_busy_wait
Use iopoll macro instead of while loop.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/qca8k.h')
-rw-r--r-- | drivers/net/dsa/qca8k.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca8k.h b/drivers/net/dsa/qca8k.h index 7ca4b93e0bb5..86c585b7ec4a 100644 --- a/drivers/net/dsa/qca8k.h +++ b/drivers/net/dsa/qca8k.h @@ -18,6 +18,8 @@ #define PHY_ID_QCA8337 0x004dd036 #define QCA8K_ID_QCA8337 0x13 +#define QCA8K_BUSY_WAIT_TIMEOUT 20 + #define QCA8K_NUM_FDB_RECORDS 2048 #define QCA8K_CPU_PORT 0 |