]> 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)
commitddaebbf3007f5b5743a2740f5e1de6c11fb6204e
tree6c9adedf60fc3f56f608d7ea4de4ecb67134091a
parent8e19effb5e9f30ddeb1a903dcb8dac9fc3ff8334
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