]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lan9303: Protect ALR operations with mutex
authorEgil Hjelmeland <privat@egil-hjelmeland.no>
Thu, 7 Dec 2017 18:56:04 +0000 (19:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Dec 2017 19:12:33 +0000 (14:12 -0500)
commit99700477249320ef4c1633e8afcf2f0b7cb43eb7
treea954e778e154c3c6fe325cc51c54e4c5c8cd96c0
parent3ead8740c1304886c01f173efc6e6155ae86e06d
net: dsa: lan9303: Protect ALR operations with mutex

ALR table operations are a sequence of related register operations which
should be protected from concurrent access. The alr_cache should also be
protected. Add alr_mutex doing that.

Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c
include/linux/dsa/lan9303.h