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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2020 03:09:57 +0000 (20:09 -0700)
commit749f6f6843115b424680f1aada3c0dd613ad807c
tree127c09a825a5712c7fe6f5e4a710dc308ac6d466
parent9de9aa487daff7a5c73434c24269b44ed6a428e6
net: phy: dp83867: w/a for fld detect threshold bootstrapping issue

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>
drivers/net/phy/dp83867.c