summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuman Tripathi <stripathi@apm.com>2014-12-29 08:52:46 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-29 17:40:45 -0800
commit101e595b88fc99e3cd5d205dda5ddf944c55ab89 (patch)
treed513428e85286f413a94e73e984f628775839fc5
parent55f8b818e578c819f4aaea7a5f5da58aa98c5e80 (diff)
ahci_xgene: Fix the endianess issue in APM X-Gene SoC AHCI SATA controller driver.
commit 5c0b8e0de76a86edb99e46612fd9d341b4c4fa0a upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 0f8538f238b6..0ffd3c930bed 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;
}