]> git.baikalelectronics.ru Git - kernel.git/commit
net: marvell: mvpp2: use mvpp2_is_xlg() helper elsewhere
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 11 Feb 2019 10:23:15 +0000 (10:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2019 17:32:51 +0000 (12:32 -0500)
commit7d825da0e60046bd2988e2c51fdd1516f5b16cef
tree9d8e0d73d4f8030cbb8fdbcca659a38b4761257b
parentb030044a25c704e1926387704831694859db0ef7
net: marvell: mvpp2: use mvpp2_is_xlg() helper elsewhere

There are several places which make the decision whether to access the
XLGMAC vs GMAC that only check for PHY_INTERFACE_MODE_10GKR and not its
XAUI variant.  Switch these to use the new helper so that we have
consistency through the driver.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c