]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit44e03e5ba52f9108ab7cca698954f8b5eb137da3
treeecd89ae49b4555bfad33cf3aa74e80cda133e317
parentbb6920a7e3034ba6d0b0256b66e6980b771d71d5
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