diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2009-07-27 15:03:46 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-28 17:31:12 -0400 |
commit | 66e49d8774fa03539713e8f91169c37c05df1e94 (patch) | |
tree | e513ccdc346d7ff2d3e4c838c3023e6d73a49d53 /drivers/usb/host/xhci.h | |
parent | 2d83109be62edd9647c45d7ed2b916b03974a7ec (diff) |
USB: xhci: Make debugging more verbose.
Add more debugging to the irq handler, slot context initialization, ring
operations, URB cancellation, and MMIO writes.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r-- | drivers/usb/host/xhci.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 60770c89132b..074728e10225 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h | |||
@@ -1065,10 +1065,9 @@ static inline unsigned int xhci_readl(const struct xhci_hcd *xhci, | |||
1065 | static inline void xhci_writel(struct xhci_hcd *xhci, | 1065 | static inline void xhci_writel(struct xhci_hcd *xhci, |
1066 | const unsigned int val, __u32 __iomem *regs) | 1066 | const unsigned int val, __u32 __iomem *regs) |
1067 | { | 1067 | { |
1068 | if (!in_interrupt()) | 1068 | xhci_dbg(xhci, |
1069 | xhci_dbg(xhci, | 1069 | "`MEM_WRITE_DWORD(3'b000, 32'h%p, 32'h%0x, 4'hf);\n", |
1070 | "`MEM_WRITE_DWORD(3'b000, 32'h%p, 32'h%0x, 4'hf);\n", | 1070 | regs, val); |
1071 | regs, val); | ||
1072 | writel(val, regs); | 1071 | writel(val, regs); |
1073 | } | 1072 | } |
1074 | 1073 | ||
@@ -1096,10 +1095,9 @@ static inline void xhci_write_64(struct xhci_hcd *xhci, | |||
1096 | u32 val_lo = lower_32_bits(val); | 1095 | u32 val_lo = lower_32_bits(val); |
1097 | u32 val_hi = upper_32_bits(val); | 1096 | u32 val_hi = upper_32_bits(val); |
1098 | 1097 | ||
1099 | if (!in_interrupt()) | 1098 | xhci_dbg(xhci, |
1100 | xhci_dbg(xhci, | 1099 | "`MEM_WRITE_DWORD(3'b000, 64'h%p, 64'h%0lx, 4'hf);\n", |
1101 | "`MEM_WRITE_DWORD(3'b000, 64'h%p, 64'h%0lx, 4'hf);\n", | 1100 | regs, (long unsigned int) val); |
1102 | regs, (long unsigned int) val); | ||
1103 | writel(val_lo, ptr); | 1101 | writel(val_lo, ptr); |
1104 | writel(val_hi, ptr + 1); | 1102 | writel(val_hi, ptr + 1); |
1105 | } | 1103 | } |