summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2023-09-01 07:53:23 +0300
committerDavid S. Miller <davem@davemloft.net>2023-09-04 09:08:24 +0300
commit719c5e37e99d2fd588d1c994284d17650a66354c (patch)
treed22e8ca804fefcd305a8616af4d25f1136315a3a /Documentation
parentf31867d0d9d82af757c1e0178b659438f4c1ea3c (diff)
downloadlinux-719c5e37e99d2fd588d1c994284d17650a66354c.tar.xz
net: phy: micrel: Correct bit assignments for phy_device flags
Previously, the defines for phy_device flags in the Micrel driver were ambiguous in their representation. They were intended to be bit masks but were mistakenly defined as bit positions. This led to the following issues: - MICREL_KSZ8_P1_ERRATA, designated for KSZ88xx switches, overlapped with MICREL_PHY_FXEN and MICREL_PHY_50MHZ_CLK. - Due to this overlap, the code path for MICREL_PHY_FXEN, tailored for the KSZ8041 PHY, was not executed for KSZ88xx PHYs. - Similarly, the code associated with MICREL_PHY_50MHZ_CLK wasn't triggered for KSZ88xx. To rectify this, all three flags have now been explicitly converted to use the `BIT()` macro, ensuring they are defined as bit masks and preventing potential overlaps in the future. Fixes: 49011e0c1555 ("net: phy: micrel: ksz886x/ksz8081: add cabletest support") Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions