]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Cache the port cmode
authorAndrew Lunn <andrew@lunn.ch>
Thu, 9 Aug 2018 13:38:45 +0000 (15:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 18:08:20 +0000 (11:08 -0700)
commit8e4785d47b6da42a9f327878cd3cc25c09aa215f
tree6c9adedf60fc3f56f608d7ea4de4ecb67134091a
parent962520b11e37287bf9de2cd8b4caef146c38c57d
net: dsa: mv88e6xxx: Cache the port cmode

The ports CMODE indicates the type of link between the MAC and the
PHY. It is used often in the SERDES code. Rather than read it each
time, cache its value.

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