projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee95a16
)
[SCSI] libsas: fix endianness bug in sas_ata
author
Al Viro
<
[email protected]
>
Wed, 16 Apr 2008 22:27:45 +0000
(23:27 +0100)
committer
James Bottomley
<
[email protected]
>
Thu, 17 Apr 2008 17:57:17 +0000
(12:57 -0500)
Signed-off-by: Al Viro <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/libsas/sas_ata.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/libsas/sas_ata.c
b/drivers/scsi/libsas/sas_ata.c
index b0e5ac372a3223453b3e4fbfecc737d21fad2977..06ad2fa3fa4c464db2b6524e4b0ff6f0a93fe6b5 100644
(file)
--- a/
drivers/scsi/libsas/sas_ata.c
+++ b/
drivers/scsi/libsas/sas_ata.c
@@
-698,7
+698,7
@@
static int sas_discover_sata_dev(struct domain_device *dev)
/* incomplete response */
SAS_DPRINTK("sending SET FEATURE/PUP_STBY_SPIN_UP to "
"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;
res = sas_issue_ata_cmd(dev, ATA_SET_FEATURES,
ATA_FEATURE_PUP_STBY_SPIN_UP,