]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: dp83867: w/a for fld detect threshold bootstrapping issue
authorGrygorii Strashko <grygorii.strashko@ti.com>
Tue, 17 Mar 2020 18:04:54 +0000 (20:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:01:35 +0000 (11:01 +0200)
commit9d749cede626141a8d510647ac16e649c162ee06
tree289ee0f63278f58ac0376f02275856b24ef6449f
parent18d66399d802d87218a01d06537e830718bd6325
net: phy: dp83867: w/a for fld detect threshold bootstrapping issue

[ Upstream commit e19fe8017a84ddd4de5cfaaeb7e2fd07b4317216 ]

When the DP83867 PHY is strapped to enable Fast Link Drop (FLD) feature
STRAP_STS2.STRAP_ FLD (reg 0x006F bit 10), the Energy Lost Threshold for
FLD Energy Lost Mode FLD_THR_CFG.ENERGY_LOST_FLD_THR (reg 0x002e bits 2:0)
will be defaulted to 0x2. This may cause the phy link to be unstable. The
new DP83867 DM recommends to always restore ENERGY_LOST_FLD_THR to 0x1.

Hence, restore default value of FLD_THR_CFG.ENERGY_LOST_FLD_THR to 0x1 when
FLD is enabled by bootstrapping as recommended by DM.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/dp83867.c