summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSuman Tripathi <stripathi@apm.com>2014-12-29 06:22:46 +0300
committerTejun Heo <tj@kernel.org>2015-01-05 17:02:56 +0300
commit5c0b8e0de76a86edb99e46612fd9d341b4c4fa0a (patch)
tree210ebebcf223d994069d659b3ce136f7baf22901 /drivers
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
downloadlinux-5c0b8e0de76a86edb99e46612fd9d341b4c4fa0a.tar.xz
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')
-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;
}