mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
firewire: ohci: dump_stack() for PHY regs read/write failures
A stack trace is an invaluable tool in determining the basis and cause of PHY regs read/write failures. Include PHY reg addr (and value for writes) in the diagnostic. [Stefan R: changed whitespace] Signed-off-by: Peter Hurley <[email protected]> Signed-off-by: Stefan Richter <[email protected]>
This commit is contained in:
parent
67672134aa
commit
6fe9efb9c9
1 changed files with 4 additions and 2 deletions
|
|
@ -572,7 +572,8 @@ static int read_phy_reg(struct fw_ohci *ohci, int addr)
|
|||
if (i >= 3)
|
||||
msleep(1);
|
||||
}
|
||||
ohci_err(ohci, "failed to read phy reg\n");
|
||||
ohci_err(ohci, "failed to read phy reg %d\n", addr);
|
||||
dump_stack();
|
||||
|
||||
return -EBUSY;
|
||||
}
|
||||
|
|
@ -594,7 +595,8 @@ static int write_phy_reg(const struct fw_ohci *ohci, int addr, u32 val)
|
|||
if (i >= 3)
|
||||
msleep(1);
|
||||
}
|
||||
ohci_err(ohci, "failed to write phy reg\n");
|
||||
ohci_err(ohci, "failed to write phy reg %d, val %u\n", addr, val);
|
||||
dump_stack();
|
||||
|
||||
return -EBUSY;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue