diff options
author | Marek Behún <marek.behun@nic.cz> | 2019-02-25 19:43:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-01 22:23:10 +0300 |
commit | 031b922bfd60c771588911112f8632783de08e5c (patch) | |
tree | 7c9dbd36effb3f57ed5d4bd410540cc9ba59bde9 /drivers/net/ethernet/netronome/nfp/nfpcore | |
parent | 73f3d9df8978329bc831e0b4f4826aba9d2192b5 (diff) | |
download | linux-031b922bfd60c771588911112f8632783de08e5c.tar.xz |
net: marvell: neta: disable comphy when setting mode
The comphy driver for Armada 3700 by Miquèl Raynal (which is currently
in linux-next) does not actually set comphy mode when phy_set_mode_ext
is called. The mode is set at next call of phy_power_on.
Update the driver to semantics similar to mvpp2: helper
mvneta_comphy_init sets comphy mode and powers it on.
When mode is to be changed in mvneta_mac_config, first power the comphy
off, then call mvneta_comphy_init (which sets the mode to new one).
Only do this when new mode is different from old mode.
This should also work for Armada 38x, since in that comphy driver
methods power_on and power_off are unimplemented.
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfpcore')
0 files changed, 0 insertions, 0 deletions