]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: protect SID register access
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 31 Mar 2016 20:53:41 +0000 (16:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 01:31:34 +0000 (21:31 -0400)
commit063dd4feb3015fb10676327d0296a5faafd361ba
tree1c7b7049decca2d1be1dc2b21c84ada17d329c4e
parentbaf05e4b4b6f09c1a6ee741d40bdbbe24c98bb04
net: dsa: mv88e6xxx: protect SID register access

Introduce a mv88e6xxx_has_stu() helper to protect the access to the
GLOBAL_VTU_SID register, instead of checking switch families.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c