]> git.ipfire.org Git - thirdparty/linux.git/commit
net: stmmac: mdio: simplify MDC clock divisor lookup
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 5 Mar 2026 10:42:37 +0000 (10:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Mar 2026 23:39:09 +0000 (15:39 -0800)
commit506f78f43c58094009b2d62ed0f8070bb4635954
tree1bc546e98a956e8b775ffad2c5de62083535e049
parentb6687ef976036d3a3e672384f47de5742b2574c7
net: stmmac: mdio: simplify MDC clock divisor lookup

As each lookup now iterates over each table in the same way, simplfy
the code to select the table, and then walk that table.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tested-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/E1vy6A9-0000000Btwp-0lxY@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c