net: dsa: mv88e6xxx: wait for AVB Busy bit
authorVivien Didelot <vivien.didelot@gmail.com>
Fri, 9 Aug 2019 22:47:56 +0000 (18:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Aug 2019 04:27:15 +0000 (21:27 -0700)
commit28ae1e9662b2b29a004adbb11ab0bd033bae296a
tree258be4f9cdb74772c30011a7a1c9e994509034be
parent19fb7f69da2a1d46bb11cce467b3a9c0b2244202
net: dsa: mv88e6xxx: wait for AVB Busy bit

The AVB is not an indirect table using an Update bit, but a unit using
a Busy bit. This means that we must ensure that this bit is cleared
before setting it and wait until it gets cleared again after writing
an operation. Reflect that.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/global2_avb.c