mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 06:09:56 +00:00
![]() To enable HSR / Switch offload, certain configurations are needed.
Currently they are done inside icssg_change_mode(). This function only
gets called if we move from one mode to another without bringing the
links up / down.
Once in HSR / Switch mode, if we bring the links down and bring it back
up again. The callback sequence is,
- emac_ndo_stop()
Firmwares are stopped
- emac_ndo_open()
Firmwares are loaded
In this path icssg_change_mode() doesn't get called and as a result the
configurations needed for HSR / Switch is not done.
To fix this, put all these configurations in a separate function
icssg_enable_fw_offload() and call this from both icssg_change_mode()
and emac_ndo_open()
Fixes:
|
||
---|---|---|
.. | ||
icssg | ||
am65-cpsw-ethtool.c | ||
am65-cpsw-nuss.c | ||
am65-cpsw-nuss.h | ||
am65-cpsw-qos.c | ||
am65-cpsw-qos.h | ||
am65-cpsw-switchdev.c | ||
am65-cpsw-switchdev.h | ||
am65-cpts.c | ||
am65-cpts.h | ||
cpsw_ale.c | ||
cpsw_ale.h | ||
cpsw_ethtool.c | ||
cpsw_new.c | ||
cpsw_priv.c | ||
cpsw_priv.h | ||
cpsw_sl.c | ||
cpsw_sl.h | ||
cpsw_switchdev.c | ||
cpsw_switchdev.h | ||
cpsw-common.c | ||
cpsw-phy-sel.c | ||
cpsw.c | ||
cpsw.h | ||
cpts.c | ||
cpts.h | ||
davinci_cpdma.c | ||
davinci_cpdma.h | ||
davinci_emac.c | ||
davinci_mdio.c | ||
k3-cppi-desc-pool.c | ||
k3-cppi-desc-pool.h | ||
Kconfig | ||
Makefile | ||
netcp_core.c | ||
netcp_ethss.c | ||
netcp_sgmii.c | ||
netcp_xgbepcsr.c | ||
netcp.h | ||
tlan.c | ||
tlan.h |