Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177854173
D61016.1795436100.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
727 B
Referenced Files
None
Subscribers
None
D61016.1795436100.diff
View Options
diff --git a/sys/dev/dwc/if_dwc_rk.c b/sys/dev/dwc/if_dwc_rk.c
--- a/sys/dev/dwc/if_dwc_rk.c
+++ b/sys/dev/dwc/if_dwc_rk.c
@@ -613,7 +613,16 @@
clk_enable(sc->pclk_mac);
if (sc->mac_clk_tx)
clk_enable(sc->mac_clk_tx);
- if (sc->clk_mac_speed)
+ /*
+ * Some SoCs reference the same clock from several clock-names. On
+ * the RK3568 both mac_clk_tx and clk_mac_speed are SCLK_GMAC0_RX_TX
+ * (resp. SCLK_GMAC1_RX_TX), do not enable it twice or the clk
+ * framework will refuse to change its rate.
+ */
+ if (sc->clk_mac_speed != NULL &&
+ (sc->mac_clk_tx == NULL ||
+ strcmp(clk_get_name(sc->mac_clk_tx),
+ clk_get_name(sc->clk_mac_speed)) != 0))
clk_enable(sc->clk_mac_speed);
DELAY(50);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 12:15 PM (14 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41256925
Default Alt Text
D61016.1795436100.diff (727 B)
Attached To
Mode
D61016: dwc: rockchip: Do not enable the same clock twice
Attached
Detach File
Event Timeline