mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
[SCSI] libsas: fix endianness bug in sas_ata
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
ee95a16d39
commit
17b7a8de3b
1 changed files with 1 additions and 1 deletions
|
@ -698,7 +698,7 @@ static int sas_discover_sata_dev(struct domain_device *dev)
|
||||||
/* incomplete response */
|
/* incomplete response */
|
||||||
SAS_DPRINTK("sending SET FEATURE/PUP_STBY_SPIN_UP to "
|
SAS_DPRINTK("sending SET FEATURE/PUP_STBY_SPIN_UP to "
|
||||||
"dev %llx\n", SAS_ADDR(dev->sas_addr));
|
"dev %llx\n", SAS_ADDR(dev->sas_addr));
|
||||||
if (!le16_to_cpu(identify_x[83] & (1<<6)))
|
if (!(identify_x[83] & cpu_to_le16(1<<6)))
|
||||||
goto cont1;
|
goto cont1;
|
||||||
res = sas_issue_ata_cmd(dev, ATA_SET_FEATURES,
|
res = sas_issue_ata_cmd(dev, ATA_SET_FEATURES,
|
||||||
ATA_FEATURE_PUP_STBY_SPIN_UP,
|
ATA_FEATURE_PUP_STBY_SPIN_UP,
|
||||||
|
|
Loading…
Reference in a new issue