Skip to content

Commit 541d216

Browse files
committed
realtek: pcs: rtl838x: replace literal with macro
Replace 0 with MII_BMCR because in this context, it maps cleanly to normal PHY register structure. BMCR_PDOWN is already used there to show which bits are set. Link: openwrt/openwrt#23746 Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
1 parent 117f10e commit 541d216

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ static int rtpcs_838x_sds_activate(struct rtpcs_serdes *sds)
762762
int ret;
763763

764764
/* CFG_FIB_PDOWN / BMCR_PDOWN */
765-
ret = rtpcs_sds_write_bits(sds, 2, 0, 11, 11, 0x0);
765+
ret = rtpcs_sds_write_bits(sds, 2, MII_BMCR, 11, 11, 0x0);
766766
if (ret)
767767
return ret;
768768

0 commit comments

Comments
 (0)