]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:31 +0000 (17:32 +0100)
commit980801cab837476cc4d337999671d53fdc9e85fd
tree30db74e01412c00dba0c0042ea698cfd83319680
parent6851d905f4a91bc5f0542c82c972c064a750dc60
net: phy: bcm7xx: Correct read from expansion register

[ Upstream commit 582dbb2cc1a0a7427840f5b1e3c65608e511b061 ]

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: b35c74b468cb ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/bcm-phy-lib.h
drivers/net/phy/bcm7xxx.c