aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/firewire/core-card.c5
-rw-r--r--drivers/firewire/sbp2.c10
2 files changed, 6 insertions, 9 deletions
diff --git a/drivers/firewire/core-card.c b/drivers/firewire/core-card.c
index ef6f2616cac7..156b098b0ada 100644
--- a/drivers/firewire/core-card.c
+++ b/drivers/firewire/core-card.c
@@ -296,8 +296,7 @@ static void fw_card_bm_work(struct work_struct *work)
296 rcode = fw_run_transaction(card, TCODE_LOCK_COMPARE_SWAP, 296 rcode = fw_run_transaction(card, TCODE_LOCK_COMPARE_SWAP,
297 irm_id, generation, SCODE_100, 297 irm_id, generation, SCODE_100,
298 CSR_REGISTER_BASE + CSR_BUS_MANAGER_ID, 298 CSR_REGISTER_BASE + CSR_BUS_MANAGER_ID,
299 card->bm_transaction_data, 299 card->bm_transaction_data, 8);
300 sizeof(card->bm_transaction_data));
301 300
302 if (rcode == RCODE_GENERATION) 301 if (rcode == RCODE_GENERATION)
303 /* Another bus reset, BM work has been rescheduled. */ 302 /* Another bus reset, BM work has been rescheduled. */
@@ -422,7 +421,7 @@ static void fw_card_bm_work(struct work_struct *work)
422 rcode = fw_run_transaction(card, TCODE_WRITE_QUADLET_REQUEST, 421 rcode = fw_run_transaction(card, TCODE_WRITE_QUADLET_REQUEST,
423 root_id, generation, SCODE_100, 422 root_id, generation, SCODE_100,
424 CSR_REGISTER_BASE + CSR_STATE_SET, 423 CSR_REGISTER_BASE + CSR_STATE_SET,
425 card->bm_transaction_data, sizeof(u32)); 424 card->bm_transaction_data, 4);
426 if (rcode == RCODE_GENERATION) 425 if (rcode == RCODE_GENERATION)
427 goto out; 426 goto out;
428 } 427 }
diff --git a/drivers/firewire/sbp2.c b/drivers/firewire/sbp2.c
index 7e33b0b1704c..ae715c82da2e 100644
--- a/drivers/firewire/sbp2.c
+++ b/drivers/firewire/sbp2.c
@@ -508,8 +508,7 @@ static void sbp2_send_orb(struct sbp2_orb *orb, struct sbp2_logical_unit *lu,
508 508
509 fw_send_request(device->card, &orb->t, TCODE_WRITE_BLOCK_REQUEST, 509 fw_send_request(device->card, &orb->t, TCODE_WRITE_BLOCK_REQUEST,
510 node_id, generation, device->max_speed, offset, 510 node_id, generation, device->max_speed, offset,
511 &orb->pointer, sizeof(orb->pointer), 511 &orb->pointer, 8, complete_transaction, orb);
512 complete_transaction, orb);
513} 512}
514 513
515static int sbp2_cancel_orbs(struct sbp2_logical_unit *lu) 514static int sbp2_cancel_orbs(struct sbp2_logical_unit *lu)
@@ -654,7 +653,7 @@ static void sbp2_agent_reset(struct sbp2_logical_unit *lu)
654 fw_run_transaction(device->card, TCODE_WRITE_QUADLET_REQUEST, 653 fw_run_transaction(device->card, TCODE_WRITE_QUADLET_REQUEST,
655 lu->tgt->node_id, lu->generation, device->max_speed, 654 lu->tgt->node_id, lu->generation, device->max_speed,
656 lu->command_block_agent_address + SBP2_AGENT_RESET, 655 lu->command_block_agent_address + SBP2_AGENT_RESET,
657 &d, sizeof(d)); 656 &d, 4);
658} 657}
659 658
660static void complete_agent_reset_write_no_wait(struct fw_card *card, 659static void complete_agent_reset_write_no_wait(struct fw_card *card,
@@ -676,7 +675,7 @@ static void sbp2_agent_reset_no_wait(struct sbp2_logical_unit *lu)
676 fw_send_request(device->card, t, TCODE_WRITE_QUADLET_REQUEST, 675 fw_send_request(device->card, t, TCODE_WRITE_QUADLET_REQUEST,
677 lu->tgt->node_id, lu->generation, device->max_speed, 676 lu->tgt->node_id, lu->generation, device->max_speed,
678 lu->command_block_agent_address + SBP2_AGENT_RESET, 677 lu->command_block_agent_address + SBP2_AGENT_RESET,
679 &d, sizeof(d), complete_agent_reset_write_no_wait, t); 678 &d, 4, complete_agent_reset_write_no_wait, t);
680} 679}
681 680
682static inline void sbp2_allow_block(struct sbp2_logical_unit *lu) 681static inline void sbp2_allow_block(struct sbp2_logical_unit *lu)
@@ -866,8 +865,7 @@ static void sbp2_set_busy_timeout(struct sbp2_logical_unit *lu)
866 865
867 fw_run_transaction(device->card, TCODE_WRITE_QUADLET_REQUEST, 866 fw_run_transaction(device->card, TCODE_WRITE_QUADLET_REQUEST,
868 lu->tgt->node_id, lu->generation, device->max_speed, 867 lu->tgt->node_id, lu->generation, device->max_speed,
869 CSR_REGISTER_BASE + CSR_BUSY_TIMEOUT, 868 CSR_REGISTER_BASE + CSR_BUSY_TIMEOUT, &d, 4);
870 &d, sizeof(d));
871} 869}
872 870
873static void sbp2_reconnect(struct work_struct *work); 871static void sbp2_reconnect(struct work_struct *work);