]> git.ipfire.org Git - people/ms/linux.git/commit - drivers/net/phy/marvell.c
net: phy: marvell: Use the set_polarity helper
authorAndrew Lunn <andrew@lunn.ch>
Sun, 30 Jul 2017 20:41:49 +0000 (22:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Aug 2017 01:00:23 +0000 (18:00 -0700)
commitfecd5e910ebed27fa68c34bf7ecc300a12950897
treeecd89ae49b4555bfad33cf3aa74e80cda133e317
parent864dc729d528560e8d204267d66dae59972f462c
net: phy: marvell: Use the set_polarity helper

Some of the init functions unilaterally enable set auto cross over
without using the helper. Make use of the helper, and respect the
phydev MDI configuration.

Clean up the #define used while setting polarity, and the other
functions of the bits in the register.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c