Skip to content

Commit 7a4e1e9

Browse files
author
Stefan Richter
committed
firewire: sbp2: revert obsolete 'fix stall with "Unsolicited response"'
Now that firewire-core sets the local node's SPLIT_TIMEOUT to 2 seconds per default, commit a481e97 is no longer required. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
1 parent dd5eeb9 commit 7a4e1e9

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎drivers/firewire/sbp2.c‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -472,18 +472,12 @@ static void complete_transaction(struct fw_card *card, int rcode,
472472
* So this callback only sets the rcode if it hasn't already
473473
* been set and only does the cleanup if the transaction
474474
* failed and we didn't already get a status write.
475-
*
476-
* Here we treat RCODE_CANCELLED like RCODE_COMPLETE because some
477-
* OXUF936QSE firmwares occasionally respond after Split_Timeout and
478-
* complete the ORB just fine. Note, we also get RCODE_CANCELLED
479-
* from sbp2_cancel_orbs() if fw_cancel_transaction() == 0.
480475
*/
481476
spin_lock_irqsave(&card->lock, flags);
482477

483478
if (orb->rcode == -1)
484479
orb->rcode = rcode;
485-
486-
if (orb->rcode != RCODE_COMPLETE && orb->rcode != RCODE_CANCELLED) {
480+
if (orb->rcode != RCODE_COMPLETE) {
487481
list_del(&orb->link);
488482
spin_unlock_irqrestore(&card->lock, flags);
489483

@@ -532,7 +526,8 @@ static int sbp2_cancel_orbs(struct sbp2_logical_unit *lu)
532526

533527
list_for_each_entry_safe(orb, next, &list, link) {
534528
retval = 0;
535-
fw_cancel_transaction(device->card, &orb->t);
529+
if (fw_cancel_transaction(device->card, &orb->t) == 0)
530+
continue;
536531

537532
orb->rcode = RCODE_CANCELLED;
538533
orb->callback(orb, NULL);

0 commit comments

Comments
 (0)