diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2013-03-27 06:57:40 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2013-04-30 14:30:16 -0400 |
commit | 6fe9efb9c9fbce690018c31e652924ae28019868 (patch) | |
tree | 034be2c298e120a78122613a27e44d5991b53581 /drivers/firewire | |
parent | 67672134aaafd520a61dda448a662336e8fde236 (diff) |
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 <peter@hurleysoftware.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/ohci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index c64b4801adaa..9e1db6490b9a 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c | |||
@@ -572,7 +572,8 @@ static int read_phy_reg(struct fw_ohci *ohci, int addr) | |||
572 | if (i >= 3) | 572 | if (i >= 3) |
573 | msleep(1); | 573 | msleep(1); |
574 | } | 574 | } |
575 | ohci_err(ohci, "failed to read phy reg\n"); | 575 | ohci_err(ohci, "failed to read phy reg %d\n", addr); |
576 | dump_stack(); | ||
576 | 577 | ||
577 | return -EBUSY; | 578 | return -EBUSY; |
578 | } | 579 | } |
@@ -594,7 +595,8 @@ static int write_phy_reg(const struct fw_ohci *ohci, int addr, u32 val) | |||
594 | if (i >= 3) | 595 | if (i >= 3) |
595 | msleep(1); | 596 | msleep(1); |
596 | } | 597 | } |
597 | ohci_err(ohci, "failed to write phy reg\n"); | 598 | ohci_err(ohci, "failed to write phy reg %d, val %u\n", addr, val); |
599 | dump_stack(); | ||
598 | 600 | ||
599 | return -EBUSY; | 601 | return -EBUSY; |
600 | } | 602 | } |