提交 1604c1e7 编写于 作者: J Jack Pham 提交者: Felipe Balbi

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: NJack Pham <jackp@codeaurora.org>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 6be35c70
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
#define dump_register(nm) \ #define dump_register(nm) \
{ \ { \
.name = __stringify(nm), \ .name = __stringify(nm), \
.offset = DWC3_ ##nm, \ .offset = DWC3_ ##nm - DWC3_GLOBALS_REGS_START, \
} }
static const struct debugfs_reg32 dwc3_regs[] = { static const struct debugfs_reg32 dwc3_regs[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册