Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89638
b: refs/heads/master
c: 08ddb2f
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter committed Apr 18, 2008
1 parent 977a3b1 commit 5836ac6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 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: a007bb857e0b26f5d8b73c2ff90782d9c0972620
refs/heads/master: 08ddb2f4c270b5dff063f7dbcd7e9248a52e7c65
17 changes: 12 additions & 5 deletions trunk/drivers/firewire/fw-ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,13 @@ static char _p(u32 *s, int shift)
return port[*s >> shift & 3];
}

static void log_selfids(int generation, int self_id_count, u32 *s)
static void log_selfids(int node_id, int generation, int self_id_count, u32 *s)
{
if (likely(!(param_debug & OHCI_PARAM_DEBUG_SELFIDS)))
return;

printk(KERN_DEBUG KBUILD_MODNAME ": %d selfIDs, generation %d\n",
self_id_count, generation);
printk(KERN_DEBUG KBUILD_MODNAME ": %d selfIDs, generation %d, "
"local node ID %04x\n", self_id_count, generation, node_id);

for (; self_id_count--; ++s)
if ((*s & 1 << 23) == 0)
Expand Down Expand Up @@ -371,6 +371,12 @@ static void log_ar_at_event(char dir, int speed, u32 *header, int evt)
if (unlikely(evt >= ARRAY_SIZE(evts)))
evt = 0x1f;

if (evt == OHCI1394_evt_bus_reset) {
printk(KERN_DEBUG "A%c evt_bus_reset, generation %d\n",
dir, (header[2] >> 16) & 0xff);
return;
}

if (header[0] == ~header[1]) {
printk(KERN_DEBUG "A%c %s, %s, %08x\n",
dir, evts[evt], phys[header[0] >> 30 & 0x3],
Expand Down Expand Up @@ -417,7 +423,7 @@ static void log_ar_at_event(char dir, int speed, u32 *header, int evt)
#else

#define log_irqs(evt)
#define log_selfids(generation, self_id_count, sid)
#define log_selfids(node_id, generation, self_id_count, sid)
#define log_ar_at_event(dir, speed, header, evt)

#endif /* CONFIG_FIREWIRE_OHCI_DEBUG */
Expand Down Expand Up @@ -1320,7 +1326,8 @@ static void bus_reset_tasklet(unsigned long data)
dma_free_coherent(ohci->card.device, CONFIG_ROM_SIZE,
free_rom, free_rom_bus);

log_selfids(generation, self_id_count, ohci->self_id_buffer);
log_selfids(ohci->node_id, generation,
self_id_count, ohci->self_id_buffer);

fw_core_handle_bus_reset(&ohci->card, ohci->node_id, generation,
self_id_count, ohci->self_id_buffer);
Expand Down

0 comments on commit 5836ac6

Please sign in to comment.