Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265072
b: refs/heads/master
c: d5546b3
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann authored and Felipe Balbi committed Oct 13, 2011
1 parent edd2310 commit 48b197b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: fe69676530f182bbb1fe0edd027e18751a1a2595
refs/heads/master: d5546b380583f009bc18504e7f946fa16d861381
8 changes: 1 addition & 7 deletions trunk/drivers/usb/gadget/pxa25x_udc.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ static struct pxa25x_udc *the_controller;

#ifdef DEBUG

static int is_vbus_present(void);

static const char *state_name[] = {
"EP0_IDLE",
"EP0_IN_DATA_PHASE", "EP0_OUT_DATA_PHASE",
Expand Down Expand Up @@ -205,8 +203,7 @@ dump_state(struct pxa25x_udc *dev)
u32 tmp;
unsigned i;

DMSG("%s %s, uicr %02X.%02X, usir %02X.%02x, ufnr %02X.%02X\n",
is_vbus_present() ? "host " : "disconnected",
DMSG("%s, uicr %02X.%02X, usir %02X.%02x, ufnr %02X.%02X\n",
state_name[dev->ep0state],
UICR1, UICR0, USIR1, USIR0, UFNRH, UFNRL);
dump_udccr("udccr");
Expand All @@ -223,9 +220,6 @@ dump_state(struct pxa25x_udc *dev)
} else
DMSG("ep0 driver '%s'\n", dev->driver->driver.name);

if (!is_vbus_present())
return;

dump_udccs0 ("udccs0");
DMSG("ep0 IN %lu/%lu, OUT %lu/%lu\n",
dev->stats.write.bytes, dev->stats.write.ops,
Expand Down

0 comments on commit 48b197b

Please sign in to comment.