30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Sun, 3 Jan 2021 05:25:39 -0600
|
|
Subject: [PATCH] net: stmmac: dwmac-sun8i: Remove unnecessary PHY power check
|
|
|
|
sun8i_dwmac_unpower_internal_phy already checks if the PHY is powered,
|
|
so there is no need to do it again here.
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
|
|
---
|
|
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 6 ++----
|
|
1 file changed, 2 insertions(+), 4 deletions(-)
|
|
|
|
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
|
|
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
|
|
@@ -1018,10 +1018,8 @@ static void sun8i_dwmac_exit(struct plat
|
|
{
|
|
struct sunxi_priv_data *gmac = priv;
|
|
|
|
- if (gmac->variant->soc_has_internal_phy) {
|
|
- if (gmac->internal_phy_powered)
|
|
- sun8i_dwmac_unpower_internal_phy(gmac);
|
|
- }
|
|
+ if (gmac->variant->soc_has_internal_phy)
|
|
+ sun8i_dwmac_unpower_internal_phy(gmac);
|
|
|
|
clk_disable_unprepare(gmac->tx_clk);
|
|
|