Skip to contentSkip to conversation

rockchip: clk: rk3288: handle clk_enable requests for GMAC

PATCH In review Jonathan Gray 2 participants 3 messages May 8, 2018 – May 14, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: clk: rk3288: handle clk_enable requests for GMAC

Since b0ba1e7e9d9b9441a18048ec67a3b3100c096975
(rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC) Ethernet no longer probes on RK3288.

Add no-ops for GMAC clocks observed to be requested which match the clk_enable cases in RK3368 and RK3399.

Cc Wadim Egorov <[email protected]>
Cc Philipp Tomsich <[email protected]>
---
 drivers/clk/rockchip/clk_rk3288.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/clk/rockchip/clk_rk3288.c +10 -0
index 9375681187..4a6e5c7113 100644
@@ -898,6 +898,16 @@ static int rk3288_clk_enable(struct clk *clk)
 	case HCLK_USBHOST0:
 	case HCLK_HSIC:
 		return 0;
+
+	case SCLK_MAC:
+	case SCLK_MAC_RX:
+	case SCLK_MAC_TX:
+	case SCLK_MACREF:
+	case SCLK_MACREF_OUT:
+	case ACLK_GMAC:
+	case PCLK_GMAC:
+		/* Required to successfully probe the Designware GMAC driver */
+		return 0;
 	}
 
 	debug("%s: unsupported clk %ld\n", __func__, clk->id);
Signature · 1 line
2.16.2
#1 lore raw

PATCH 1/1 rockchip: clk: rk3288: handle clk_enable requests for GMAC

Quoted 7 lines · Jonathan Gray

Since b0ba1e7e9d9b9441a18048ec67a3b3100c096975
(rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC) Ethernet no longer probes on RK3288.

Quoted 6 lines

Add no-ops for GMAC clocks observed to be requested which match the clk_enable cases in RK3368 and RK3399.

Cc Wadim Egorov <[email protected]>
Cc Philipp Tomsich <[email protected]>

Thanks for the quick turnaround.
I’ll give this a day or two, for others to also review/test and will then merge from the front of the queue.

#2 lore raw
In reply to Jonathan Gray
Quoted 7 lines

Since b0ba1e7e9d9b9441a18048ec67a3b3100c096975
(rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC) Ethernet no longer probes on RK3288.

Add no-ops for GMAC clocks observed to be requested which match the clk_enable cases in RK3368 and RK3399.

Quoted 9 lines
---
 drivers/clk/rockchip/clk_rk3288.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

Applied to u-boot-rockchip, thanks!