Skip to content

Commit a4a6a06

Browse files
plappermaulhauke
authored andcommitted
realtek: mdio: fix "SMY" typo
The defines should have been named SMI like everywhere else. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: openwrt/openwrt#23070 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent aaf91b7 commit a4a6a06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

target/linux/realtek/files-6.18/drivers/net/mdio/mdio-realtek-otto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
#define RTMDIO_931X_SMI_INDRT_ACCESS_CTRL_3 (0x0C10)
100100
#define RTMDIO_931X_SMI_INDRT_ACCESS_MMD_CTRL (0x0C18)
101101
#define RTMDIO_931X_SMI_PHY_ABLTY_GET_SEL (0x0CAC)
102-
#define RTMDIO_931X_SMY_PHY_ABLTY_MDIO 0x0
102+
#define RTMDIO_931X_SMI_PHY_ABLTY_MDIO 0x0
103103
#define RTMDIO_931X_SMI_PHY_ABLTY_SDS 0x2
104104
#define RTMDIO_931X_SMI_PORT_POLLING_SEL (0x0C9C)
105105
#define RTMDIO_931X_SMI_PORT_ADDR_CTRL (0x0C74)
@@ -827,7 +827,7 @@ static void rtmdio_931x_setup_polling(struct rtmdio_ctrl *ctrl)
827827

828828
/* set to "PHY driven" */
829829
mask = GENMASK(1, 0) << ((pn % 16) * 2);
830-
val = RTMDIO_931X_SMY_PHY_ABLTY_MDIO << (ffs(mask) - 1);
830+
val = RTMDIO_931X_SMI_PHY_ABLTY_MDIO << (ffs(mask) - 1);
831831
regmap_update_bits(ctrl->map, RTMDIO_931X_SMI_PHY_ABLTY_GET_SEL + (pn / 16) * 4,
832832
mask, val);
833833
mask = val = 0;

0 commit comments

Comments
 (0)