summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/debugfs.c
diff options
context:
space:
mode:
authorJack Pham2012-12-10 23:28:13 +0100
committerFelipe Balbi2012-12-13 10:58:38 +0100
commit1604c1e760119ab3fe9f71679ebaeb058d3d8ae1 (patch)
tree433d47b3a7198b1bdf680452d44905c44c4a67c5 /drivers/usb/dwc3/debugfs.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next (diff)
downloadkernel-qcow2-linux-1604c1e760119ab3fe9f71679ebaeb058d3d8ae1.tar.gz
kernel-qcow2-linux-1604c1e760119ab3fe9f71679ebaeb058d3d8ae1.tar.xz
kernel-qcow2-linux-1604c1e760119ab3fe9f71679ebaeb058d3d8ae1.zip
usb: dwc3: debugfs: fix regdump offset
As with dwc_readl/writel, the global registers are specified as offsets starting from the beginning of the xHCI address space, but the memory region pointed to by dwc->regs already maps to the start of the global addresses. Fix by offsetting each of the regs relative to DWC3_GLOBALS_REGS_START. Signed-off-by: Jack Pham <jackp@codeaurora.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/debugfs.c')
-rw-r--r--drivers/usb/dwc3/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/debugfs.c b/drivers/usb/dwc3/debugfs.c
index 92604b4f9712..5945aadaa1c9 100644
--- a/drivers/usb/dwc3/debugfs.c
+++ b/drivers/usb/dwc3/debugfs.c
@@ -56,7 +56,7 @@
#define dump_register(nm) \
{ \
.name = __stringify(nm), \
- .offset = DWC3_ ##nm, \
+ .offset = DWC3_ ##nm - DWC3_GLOBALS_REGS_START, \
}
static const struct debugfs_reg32 dwc3_regs[] = {