aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2024-02-29 18:04:07 +0300
committerJoursoir <chat@joursoir.net>2024-02-29 18:04:54 +0300
commiteebfdbc84cb6c1d031351998c99c1577f9cee3e8 (patch)
tree17ffe8df6324e5f4357eb63f18fdf7a620d182df
parent1ddd8df82489815b7e809cc069b7f02ecdb25802 (diff)
downloade1000e-eebfdbc84cb6c1d031351998c99c1577f9cee3e8.tar.gz
e1000e-eebfdbc84cb6c1d031351998c99c1577f9cee3e8.tar.bz2
e1000e-eebfdbc84cb6c1d031351998c99c1577f9cee3e8.zip
phy: print PHY register address when MDI read/write failsHEADmaster
Signed-off-by: Joursoir <chat@joursoir.net>
-rw-r--r--src/phy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/phy.c b/src/phy.c
index f0921f1..863b648 100644
--- a/src/phy.c
+++ b/src/phy.c
@@ -148,11 +148,11 @@ s32 e1000e_read_phy_reg_mdic(struct e1000_hw *hw, u32 offset, u16 *data)
break;
}
if (!(mdic & E1000_MDIC_READY)) {
- e_dbg("MDI Read did not complete\n");
+ e_dbg("MDI Read PHY Reg Address %d did not complete\n", offset);
return -E1000_ERR_PHY;
}
if (mdic & E1000_MDIC_ERROR) {
- e_dbg("MDI Error\n");
+ e_dbg("MDI Read PHY Reg Address %d Error\n", offset);
return -E1000_ERR_PHY;
}
if (((mdic & E1000_MDIC_REG_MASK) >> E1000_MDIC_REG_SHIFT) != offset) {
@@ -212,11 +212,11 @@ s32 e1000e_write_phy_reg_mdic(struct e1000_hw *hw, u32 offset, u16 data)
break;
}
if (!(mdic & E1000_MDIC_READY)) {
- e_dbg("MDI Write did not complete\n");
+ e_dbg("MDI Write PHY Reg Address %d did not complete\n", offset);
return -E1000_ERR_PHY;
}
if (mdic & E1000_MDIC_ERROR) {
- e_dbg("MDI Error\n");
+ e_dbg("MDI Write PHY Red Address %d Error\n", offset);
return -E1000_ERR_PHY;
}
if (((mdic & E1000_MDIC_REG_MASK) >> E1000_MDIC_REG_SHIFT) != offset) {