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

The SMI bus is the bottleneck in all switch operations, not the
granularity of locks. Replace the stats 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