Commit cb7e626a authored by Suman Tripathi's avatar Suman Tripathi Committed by Luis Henriques

ahci_xgene: Fix the endianess issue in APM X-Gene SoC AHCI SATA controller driver.

commit 5c0b8e0d upstream.

This patch fixes the big endian mode issue with function
xgene_ahci_read_id.
Signed-off-by: default avatarSuman Tripathi <stripathi@apm.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent d88d4f16
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment