Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280043
b: refs/heads/master
c: c8d2a6f
h: refs/heads/master
i:
  280041: 9ec94e3
  280039: add53f6
v: v3
  • Loading branch information
Alessandro Rubini authored and Greg Kroah-Hartman committed Nov 18, 2011
1 parent 8abb2a7 commit cb2a885
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a087c6ad975bcc193b4bab2e9d61f9c6c547138
refs/heads/master: c8d2a6f3999e175c4d564c445c7f1ececd926453
15 changes: 3 additions & 12 deletions trunk/drivers/usb/dwc3/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,13 @@
#include "gadget.h"
#include "io.h"

struct dwc3_register {
const char *name;
u32 offset;
};

#define dump_register(nm) \
{ \
.name = __stringify(nm), \
.offset = DWC3_ ##nm, \
}

static const struct dwc3_register dwc3_regs[] = {
static const struct debugfs_reg32 dwc3_regs[] = {
dump_register(GSBUSCFG0),
dump_register(GSBUSCFG1),
dump_register(GTXTHRCFG),
Expand Down Expand Up @@ -385,12 +380,8 @@ static int dwc3_regdump_show(struct seq_file *s, void *unused)
int i;

seq_printf(s, "DesignWare USB3 Core Register Dump\n");

for (i = 0; i < ARRAY_SIZE(dwc3_regs); i++) {
seq_printf(s, "%-20s : %08x\n", dwc3_regs[i].name,
dwc3_readl(dwc->regs, dwc3_regs[i].offset));
}

debugfs_print_regs32(s, dwc3_regs, ARRAY_SIZE(dwc3_regs),
dwc->regs, "");
return 0;
}

Expand Down

0 comments on commit cb2a885

Please sign in to comment.