Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106613
b: refs/heads/master
c: b9549bc
h: refs/heads/master
i:
  106611: 15c7b89
v: v3
  • Loading branch information
Stefan Richter committed Jul 14, 2008
1 parent f75da57 commit d1bd2e1
Show file tree
Hide file tree
Showing 2 changed files with 6 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: e9aeb46c93a8b1b703d00586c05d9a71aa7e0f0c
refs/heads/master: b9549bc6803d6a16fe6a85b316b742ef82bd3931
12 changes: 5 additions & 7 deletions trunk/drivers/firewire/fw-transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ transmit_complete_callback(struct fw_packet *packet,

static void
fw_fill_request(struct fw_packet *packet, int tcode, int tlabel,
int node_id, int source_id, int generation, int speed,
int destination_id, int source_id, int generation, int speed,
unsigned long long offset, void *payload, size_t length)
{
int ext_tcode;
Expand All @@ -166,7 +166,7 @@ fw_fill_request(struct fw_packet *packet, int tcode, int tlabel,
HEADER_RETRY(RETRY_X) |
HEADER_TLABEL(tlabel) |
HEADER_TCODE(tcode) |
HEADER_DESTINATION(node_id);
HEADER_DESTINATION(destination_id);
packet->header[1] =
HEADER_OFFSET_HIGH(offset >> 32) | HEADER_SOURCE(source_id);
packet->header[2] =
Expand Down Expand Up @@ -252,7 +252,7 @@ fw_send_request(struct fw_card *card, struct fw_transaction *t,
fw_transaction_callback_t callback, void *callback_data)
{
unsigned long flags;
int tlabel, source;
int tlabel;

/*
* Bump the flush timer up 100ms first of all so we
Expand All @@ -268,7 +268,6 @@ fw_send_request(struct fw_card *card, struct fw_transaction *t,

spin_lock_irqsave(&card->lock, flags);

source = card->node_id;
tlabel = card->current_tlabel;
if (card->tlabel_mask & (1 << tlabel)) {
spin_unlock_irqrestore(&card->lock, flags);
Expand All @@ -284,9 +283,8 @@ fw_send_request(struct fw_card *card, struct fw_transaction *t,
t->callback = callback;
t->callback_data = callback_data;

fw_fill_request(&t->packet, tcode, t->tlabel,
node_id, source, generation,
speed, offset, payload, length);
fw_fill_request(&t->packet, tcode, t->tlabel, node_id, card->node_id,
generation, speed, offset, payload, length);
t->packet.callback = transmit_complete_callback;

list_add_tail(&t->link, &card->transaction_list);
Expand Down

0 comments on commit d1bd2e1

Please sign in to comment.