Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130312
b: refs/heads/master
c: 704a148
h: refs/heads/master
v: v3
  • Loading branch information
Hugo Villeneuve authored and Greg Kroah-Hartman committed Jan 28, 2009
1 parent 2c794af commit 9e83a1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 96bcd090fa434b4369e6e3a9cba937d1e513596d
refs/heads/master: 704a14854aaf9758a1248ea36a7d1b8cc42a4b3e
9 changes: 7 additions & 2 deletions trunk/drivers/usb/musb/cppi_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <linux/usb.h>

#include "musb_core.h"
#include "musb_debug.h"
#include "cppi_dma.h"


Expand Down Expand Up @@ -423,6 +424,7 @@ cppi_rndis_update(struct cppi_channel *c, int is_rx,
}
}

#ifdef CONFIG_USB_MUSB_DEBUG
static void cppi_dump_rxbd(const char *tag, struct cppi_descriptor *bd)
{
pr_debug("RXBD/%s %08x: "
Expand All @@ -431,10 +433,11 @@ static void cppi_dump_rxbd(const char *tag, struct cppi_descriptor *bd)
bd->hw_next, bd->hw_bufp, bd->hw_off_len,
bd->hw_options);
}
#endif

static void cppi_dump_rxq(int level, const char *tag, struct cppi_channel *rx)
{
#if MUSB_DEBUG > 0
#ifdef CONFIG_USB_MUSB_DEBUG
struct cppi_descriptor *bd;

if (!_dbg_level(level))
Expand Down Expand Up @@ -881,12 +884,14 @@ cppi_next_rx_segment(struct musb *musb, struct cppi_channel *rx, int onepacket)
bd->hw_options |= CPPI_SOP_SET;
tail->hw_options |= CPPI_EOP_SET;

if (debug >= 5) {
#ifdef CONFIG_USB_MUSB_DEBUG
if (_dbg_level(5)) {
struct cppi_descriptor *d;

for (d = rx->head; d; d = d->next)
cppi_dump_rxbd("S", d);
}
#endif

/* in case the preceding transfer left some state... */
tail = rx->last_processed;
Expand Down

0 comments on commit 9e83a1f

Please sign in to comment.