From: Suman Tripathi Date: Mon, 29 Dec 2014 03:22:46 +0000 (+0530) Subject: ahci_xgene: Fix the endianess issue in APM X-Gene SoC AHCI SATA controller driver. X-Git-Tag: v3.16.35~2906 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb7e626a7a30285b450941d2450552595d10ad35;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: Tejun Heo Signed-off-by: Luis Henriques --- diff --git a/drivers/ata/ahci_xgene.c b/drivers/ata/ahci_xgene.c index 10d5246996765..dcd758be12db6 100644 --- a/drivers/ata/ahci_xgene.c +++ b/drivers/ata/ahci_xgene.c @@ -174,7 +174,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; }