Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14021
b: refs/heads/master
c: dcc2d1e
h: refs/heads/master
i:
  14019: c155205
v: v3
  • Loading branch information
Mark Lord authored and Jeff Garzik committed Nov 13, 2005
1 parent cdebad7 commit ddb1143
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e12a1be6e8fa47ae6cdc4127a1b4640e19c288eb
refs/heads/master: dcc2d1e7f0acf7d3f7ae632a73cd5f828ef9de20
6 changes: 6 additions & 0 deletions trunk/drivers/scsi/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2276,6 +2276,12 @@ ata_scsi_pass_thru(struct ata_queued_cmd *qc, const u8 *scsicmd)
tf->device = scsicmd[8];
tf->command = scsicmd[9];
}
/*
* If slave is possible, enforce correct master/slave bit
*/
if (qc->ap->flags & ATA_FLAG_SLAVE_POSS)
tf->device = qc->dev->devno ?
tf->device | ATA_DEV1 : tf->device & ~ATA_DEV1;

/*
* Filter SET_FEATURES - XFER MODE command -- otherwise,
Expand Down

0 comments on commit ddb1143

Please sign in to comment.