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)
commit2d2e1dd29962ce0e6bc2c35fe804d919bf3e7f68
tree6c9adedf60fc3f56f608d7ea4de4ecb67134091a
parentf8236a0835597b166a9f0bab38b9b31bd932ce98
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