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

The RMII speed configuration is encoded as a single bit, which is set
for 100M and clean for 10M. Provide the bitfield definition in
struct rk_clock_fields, moving it out of struct rk_reg_speed_data's
rmii_10 and rmii_100 initialisers. Update rk_set_reg_speed() to handle
the new definition location of this bit.

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