]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Replace PHY mutex by SMI mutex
authorAndrew Lunn <andrew@lunn.ch>
Tue, 5 May 2015 23:09:53 +0000 (01:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 May 2015 20:05:53 +0000 (16:05 -0400)
commit8c2a3b2efff2bc437575bda785f8cd3e0dd91512
tree296718b00127e33e5e5c71c2b6523f63c998ffa5
parentaf956aafcf54af081cb186e2a23f2ff45d258d12
net: dsa: mv88e6xxx: Replace PHY mutex by SMI mutex

The SMI bus is the bottleneck in all switch operations, not the
granularity of locks. Replace the PHY mutex by the SMI mutex to make
the locking concept simpler.

The REG_READ/REG_WRITE macros cannot be used while holding the SMI
mutex, since they try to acquire it. Replace with calls to the
appropriate function which does not try to get the mutex.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h