The current dwmac_sun8i module cannot be rmmod/modprobe due to that
the reset controller was not released when removed.
This patch remove ambiguity, by using of_reset_control_get_exclusive and
add the missing reset_control_put().
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Maxime Ripard <hidden> Date: 2017-08-25 14:48:45
On Fri, Aug 25, 2017 at 04:38:05PM +0200, Corentin Labbe wrote:
quoted hunk
The current dwmac_sun8i module cannot be rmmod/modprobe due to that
the reset controller was not released when removed.
This patch remove ambiguity, by using of_reset_control_get_exclusive and
add the missing reset_control_put().
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
On Fri, Aug 25, 2017 at 04:48:32PM +0200, Maxime Ripard wrote:
On Fri, Aug 25, 2017 at 04:38:05PM +0200, Corentin Labbe wrote:
quoted
The current dwmac_sun8i module cannot be rmmod/modprobe due to that
the reset controller was not released when removed.
This patch remove ambiguity, by using of_reset_control_get_exclusive and
add the missing reset_control_put().
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Maxime Ripard <hidden> Date: 2017-08-25 17:12:46
On Fri, Aug 25, 2017 at 05:17:33PM +0200, Corentin Labbe wrote:
On Fri, Aug 25, 2017 at 04:48:32PM +0200, Maxime Ripard wrote:
quoted
On Fri, Aug 25, 2017 at 04:38:05PM +0200, Corentin Labbe wrote:
quoted
The current dwmac_sun8i module cannot be rmmod/modprobe due to that
the reset controller was not released when removed.
This patch remove ambiguity, by using of_reset_control_get_exclusive and
add the missing reset_control_put().
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -782,6 +782,7 @@ static int sun8i_dwmac_unpower_internal_phy(struct sunxi_priv_data *gmac)clk_disable_unprepare(gmac->ephy_clk);reset_control_assert(gmac->rst_ephy);+reset_control_put(gmac->rst_ephy);return0;}
@@ -942,7 +943,7 @@ static int sun8i_dwmac_probe(struct platform_device *pdev)return-EINVAL;}-gmac->rst_ephy=of_reset_control_get(plat_dat->phy_node,NULL);+gmac->rst_ephy=of_reset_control_get_exclusive(plat_dat->phy_node,NULL);
Why not just use devm_reset_control_get?
Because there no devm_ functions with of_
devm_reset_control_get uses of_reset_control_get internally.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
On Fri, Aug 25, 2017 at 07:12:33PM +0200, Maxime Ripard wrote:
On Fri, Aug 25, 2017 at 05:17:33PM +0200, Corentin Labbe wrote:
quoted
On Fri, Aug 25, 2017 at 04:48:32PM +0200, Maxime Ripard wrote:
quoted
On Fri, Aug 25, 2017 at 04:38:05PM +0200, Corentin Labbe wrote:
quoted
The current dwmac_sun8i module cannot be rmmod/modprobe due to that
the reset controller was not released when removed.
This patch remove ambiguity, by using of_reset_control_get_exclusive and
add the missing reset_control_put().
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)