]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: rk: use rk_encode_wm16() for RMII clock
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 2 Feb 2026 10:04:31 +0000 (10:04 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 4 Feb 2026 01:59:10 +0000 (17:59 -0800)
commit33c5c9473a232de46548cb1c6db77e5b2eff5b8e
tree5b374e7f85357acca48000bf944232b012e94fc9
parent4dc66f93b419fbd69b98f338d237056c73df22ac
net: stmmac: rk: use rk_encode_wm16() for RMII clock

The RMII clock is a single bit, which is set for 100M and clear for
10M. Move this out of struct rk_reg_speed_data (which gets rid of
this structure) into the struct rk_clock_fields as the bitmask for
this bit.

This gets rid of the per-SoC variability in the calls to
rk_set_reg_speed().

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vmqnH-00000007VCz-1WmP@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c