]> git.ipfire.org Git - thirdparty/linux.git/commit
net: mdio: realtek-rtl9300: use command runner for write_c22()
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 27 May 2026 16:34:47 +0000 (18:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Jun 2026 02:06:49 +0000 (19:06 -0700)
commit9cd59932f2d2a09ef239228671020dfd1ae7f4af
tree049141542eec9c816454fff5a665632f2c4871d6
parent9ccb438210c4838962dfa1a10d4c198391dcc284
net: mdio: realtek-rtl9300: use command runner for write_c22()

Now that the driver has a generic command runner make use of it in the
write_c22() path. For this.

- add generic otto_emdio_write_c22() helper that will be called by bus
- convert otto_emdio_9300_write_c22() to new command runner logic

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260527163449.1294961-3-markus.stockhausen@gmx.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-realtek-rtl9300.c