summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorSuman Tripathi <stripathi@apm.com>2014-12-29 04:22:46 +0100
committerTejun Heo <tj@kernel.org>2015-01-05 15:02:56 +0100
commit5c0b8e0de76a86edb99e46612fd9d341b4c4fa0a (patch)
tree210ebebcf223d994069d659b3ce136f7baf22901 /drivers/ata
parentLinux 3.19-rc1 (diff)
downloadlinux-5c0b8e0de76a86edb99e46612fd9d341b4c4fa0a.tar.xz
linux-5c0b8e0de76a86edb99e46612fd9d341b4c4fa0a.zip
ahci_xgene: Fix the endianess issue in APM X-Gene SoC AHCI SATA controller driver.
This patch fixes the big endian mode issue with function xgene_ahci_read_id. Signed-off-by: Suman Tripathi <stripathi@apm.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/ahci_xgene.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci_xgene.c b/drivers/ata/ahci_xgene.c
index feeb8f1e2fe8..f190b92786e4 100644
--- a/drivers/ata/ahci_xgene.c
+++ b/drivers/ata/ahci_xgene.c
@@ -188,7 +188,7 @@ static unsigned int xgene_ahci_read_id(struct ata_device *dev,
*
* Clear reserved bit 8 (DEVSLP bit) as we don't support DEVSLP
*/
- id[ATA_ID_FEATURE_SUPP] &= ~(1 << 8);
+ id[ATA_ID_FEATURE_SUPP] &= cpu_to_le16(~(1 << 8));
return 0;
}