First commit fix error when :
1 - Deactivated eth0 (ip link set eth0 down)
2 - Perform low power procedure
3 - Reactivate eth0 (ip link set eth0 up)
=> eth0: stmmac_hw_setup: DMA engine initialization failed
stm32-dwmac 5800a000.ethernet eth0: stmmac_open: Hw setup failed
Second commit fix bad cleaning when error during stmmac_mdio_register.
V2: - put Reviewed-by from Russell for second commit.
- update first commit with Russell'remark.
- Dropped the third patch from v1. It requires additional work on the
pinctrl framework to add a new state, and I don’t want this to
block the other two patches.
I do not intend to drop this change; I will follow up on it in a
separate thread together with Antonio Borneo.
Christophe Roullier (2):
net: stmmac: fix pinctrl management during suspend/resume
net: stmmac: manage error case during stmmac_dvr_probe
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
--
2.43.0