mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 05:55:02 +08:00
325fd36ae7
The enetc phylink .mac_config handler intends to clear the IFMODE field
(bits 1:0) of the PM0_IF_MODE register, but incorrectly clears all the
other fields instead.
For normal operation, the bug was inconsequential, due to the fact that
we write the PM0_IF_MODE register in two stages, first in
phylink .mac_config (which incorrectly cleared out a bunch of stuff),
then we update the speed and duplex to the correct values in
phylink .mac_link_up.
Judging by the code (not tested), it looks like maybe loopback mode was
broken, since this is one of the settings in PM0_IF_MODE which is
incorrectly cleared.
Fixes:
|
||
---|---|---|
.. | ||
enetc_cbdr.c | ||
enetc_ethtool.c | ||
enetc_hw.h | ||
enetc_ierb.c | ||
enetc_ierb.h | ||
enetc_mdio.c | ||
enetc_msg.c | ||
enetc_pci_mdio.c | ||
enetc_pf.c | ||
enetc_pf.h | ||
enetc_ptp.c | ||
enetc_qos.c | ||
enetc_vf.c | ||
enetc.c | ||
enetc.h | ||
Kconfig | ||
Makefile |