mirror of https://gitee.com/openkylin/linux.git
4e6da7969f
The mv88e6390_serdes_irq_link_sgmii IRQ handler reads the SERDES PHY status register to determine speed, among other things. If cmode of the port is set to 2500base-x, though, the PHY still reports 1000 Mbps (the PHY register itself does not differentiate between 1000 Mbps and 2500 Mbps - it thinks it is running at 1000 Mbps, although clock is 2.5x faster). Look at the cmode and set SPEED_2500 if cmode is set to 2500base-x. Also tell mv88e6xxx_port_setup_mac the PHY interface mode corresponding to current cmode in terms of phy_interface_t. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Vivien Didelot <vivien.didelot@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
chip.c | ||
chip.h | ||
global1.c | ||
global1.h | ||
global1_atu.c | ||
global1_vtu.c | ||
global2.c | ||
global2.h | ||
global2_avb.c | ||
global2_scratch.c | ||
hwtstamp.c | ||
hwtstamp.h | ||
phy.c | ||
phy.h | ||
port.c | ||
port.h | ||
ptp.c | ||
ptp.h | ||
serdes.c | ||
serdes.h | ||
smi.c | ||
smi.h |