diff options
author | Fabio Estevam <festevam@gmail.com> | 2022-10-25 15:01:09 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-10-27 13:48:53 +0300 |
commit | c926b4c3fa1fdce5e128bc954cad94ca16acce41 (patch) | |
tree | 917ee4523b90d3df415f2e25c2bb8b83d73ff1f4 | |
parent | 28581b9c2c94cc912354eadc98c1146fdc7092e6 (diff) | |
download | linux-c926b4c3fa1fdce5e128bc954cad94ca16acce41.tar.xz |
net: dp83822: Print the SOR1 strap status
During the bring-up of the Ethernet PHY, it is very useful to
see the bootstrap status information, as it can help identifying
hardware bootstrap mistakes.
Allow printing the SOR1 register, which contains the strap status
to ease the bring-up.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20221025120109.779337-1-festevam@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-rw-r--r-- | drivers/net/phy/dp83822.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/dp83822.c b/drivers/net/phy/dp83822.c index b60db8b6f477..a6f05e35d91f 100644 --- a/drivers/net/phy/dp83822.c +++ b/drivers/net/phy/dp83822.c @@ -524,6 +524,8 @@ static int dp83822_read_straps(struct phy_device *phydev) if (val < 0) return val; + phydev_dbg(phydev, "SOR1 strap register: 0x%04x\n", val); + fx_enabled = (val & DP83822_COL_STRAP_MASK) >> DP83822_COL_SHIFT; if (fx_enabled == DP83822_STRAP_MODE2 || fx_enabled == DP83822_STRAP_MODE3) |