summaryrefslogtreecommitdiff
path: root/drivers/ata/ahci_xgene.c
diff options
context:
space:
mode:
authorSuman Tripathi <stripathi@apm.com>2014-12-29 08:52:46 +0530
committerTejun Heo <tj@kernel.org>2015-01-05 09:02:56 -0500
commit5c0b8e0de76a86edb99e46612fd9d341b4c4fa0a (patch)
tree210ebebcf223d994069d659b3ce136f7baf22901 /drivers/ata/ahci_xgene.c
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
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/ahci_xgene.c')
-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;
}