diff options
| author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-05-14 23:00:08 +0200 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-05-14 15:30:22 -0700 |
| commit | 60df02b6ea4581d72eb7a3ab7204504a54059b72 (patch) | |
| tree | 09ed4e74324c8fdbd042d90af25f631545f0424c /tools/perf/scripts/python | |
| parent | net: dsa: qca8k: clear MASTER_EN after phy read/write (diff) | |
| download | linux-60df02b6ea4581d72eb7a3ab7204504a54059b72.tar.gz linux-60df02b6ea4581d72eb7a3ab7204504a54059b72.zip | |
net: dsa: qca8k: dsa: qca8k: protect MASTER busy_wait with mdio mutex
MDIO_MASTER operation have a dedicated busy wait that is not protected
by the mdio mutex. This can cause situation where the MASTER operation
is done and a normal operation is executed between the MASTER read/write
and the MASTER busy_wait. Rework the qca8k_mdio_read/write function to
address this issue by binding the lock for the whole MASTER operation
and not only the mdio read/write common operation.
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
