net: phy: bcm7xx: Correct read from expansion register
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 8 May 2023 23:17:49 +0000 (16:17 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 May 2023 03:25:52 +0000 (20:25 -0700)
commit582dbb2cc1a0a7427840f5b1e3c65608e511b061
treeb12b7fa0ef79a0e3d6c32364aa00493df61241c9
parentdfd9248c071a3710c24365897459538551cb7167
net: phy: bcm7xx: Correct read from expansion register

Since the driver works in the "legacy" addressing mode, we need to write
to the expansion register (0x17) with bits 11:8 set to 0xf to properly
select the expansion register passed as argument.

Fixes: f68d08c437f9 ("net: phy: bcm7xxx: Add EPHY entry for 72165")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230508231749.1681169-1-f.fainelli@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/bcm-phy-lib.h
drivers/net/phy/bcm7xxx.c