]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'r8169-improve-rtl8168g-phy-suspend-quirk'
authorJakub Kicinski <kuba@kernel.org>
Thu, 7 Jan 2021 22:56:35 +0000 (14:56 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jan 2021 22:56:36 +0000 (14:56 -0800)
commitf13f014327b6edf93b5e7c007a0d5ad161772313
tree11452c0e73a21753d705247f4b6a0c458d74b109
parent51720ac9ad7b208f779d199d816a8cfa63c8d752
parent6c16dab16276a77a19ae389141b6c55763a9b9f2
Merge branch 'r8169-improve-rtl8168g-phy-suspend-quirk'

Heiner Kallweit says:

====================
r8169: improve RTL8168g PHY suspend quirk

According to Realtek the ERI register 0x1a8 quirk is needed to work
around a hw issue with the PHY on RTL8168g. The register needs to be
changed before powering down the PHY. Currently we don't meet this
requirement, however I'm not aware of any problems caused by this.
Therefore I see the change as an improvement.

The PHY driver has no means to access the chip ERI registers,
therefore we have to intercept MDIO writes to the BMCR register.
If the BMCR_PDOWN bit is going to be set, then let's apply the
quirk before actually powering down the PHY.
====================

Link: https://lore.kernel.org/r/9303c2cf-c521-beea-c09f-63b5dfa91b9c@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>