]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: intel: use generic stmmac_set_clk_tx_rate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 27 Feb 2025 09:16:49 +0000 (09:16 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Feb 2025 18:20:47 +0000 (10:20 -0800)
commit61356fb1b0d64105475254c2fa74ad63b90b3248
tree8d20d2bc6fe41ab8db31cd7280a7574c08e370b4
parent36fa8c960720b55b5821ebea0f499ba8a8402c0a
net: stmmac: intel: use generic stmmac_set_clk_tx_rate()

Use the generic stmmac_set_clk_tx_rate() to configure the MAC transmit
clock.

Note that given the current unpatched driver structure,
plat_dat->fix_mac_speed will always be populated with
kmb_eth_fix_mac_speed(), even when no clock is present. We preserve
this behaviour in this patch by always initialising plat_dat->clk_tx_i
and plat_dat->set_clk_tx_rate.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1tna0f-0052sw-8r@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c