Re: [PATCH net 2/4] net: stmmac: dwmac-sun8i: Balance internal PHY resource references

2021-01-04 Thread Chen-Yu Tsai
On Sun, Jan 3, 2021 at 7:17 PM Samuel Holland wrote: > > While stmmac_pltfr_remove calls sun8i_dwmac_exit, the sun8i_dwmac_init > and sun8i_dwmac_exit functions are also called by the stmmac_platform > suspend/resume callbacks. They may be called many times during the > device's lifetime and

[PATCH net 2/4] net: stmmac: dwmac-sun8i: Balance internal PHY resource references

2021-01-03 Thread Samuel Holland
While stmmac_pltfr_remove calls sun8i_dwmac_exit, the sun8i_dwmac_init and sun8i_dwmac_exit functions are also called by the stmmac_platform suspend/resume callbacks. They may be called many times during the device's lifetime and should not release resources used by the driver. Furthermore, there