]> 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)
commit9cc47ee102a8e9610c8921ce26631fe42c8c239c
treea954e778e154c3c6fe325cc51c54e4c5c8cd96c0
parente329b4e094cd4d0328f0ab57a8b43d82264697ae
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