mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 01:04:08 +08:00
[libata passthru] address slave devices correctly
This commit is contained in:
parent
e12a1be6e8
commit
dcc2d1e7f0
@ -2276,6 +2276,12 @@ ata_scsi_pass_thru(struct ata_queued_cmd *qc, const u8 *scsicmd)
|
|||||||
tf->device = scsicmd[8];
|
tf->device = scsicmd[8];
|
||||||
tf->command = scsicmd[9];
|
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,
|
* Filter SET_FEATURES - XFER MODE command -- otherwise,
|
||||||
|
Loading…
Reference in New Issue
Block a user