]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ahci_xgene: Fix the endianess issue in APM X-Gene SoC AHCI SATA controller driver.
authorSuman Tripathi <stripathi@apm.com>
Mon, 29 Dec 2014 03:22:46 +0000 (08:52 +0530)
committerLuis Henriques <luis.henriques@canonical.com>
Wed, 4 Feb 2015 10:58:28 +0000 (10:58 +0000)
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: Luis Henriques <luis.henriques@canonical.com>
drivers/ata/ahci_xgene.c

index 10d5246996765f3677940c9619cf4ef99239fe40..dcd758be12db658408cad17aed3757cbd7cb4f93 100644 (file)
@@ -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;
 }