Commit 101e595b88fc99e3cd5d205dda5ddf944c55ab89

Authored by Suman Tripathi
Committed by Greg Kroah-Hartman
1 parent 55f8b818e5

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/ata/ahci_xgene.c
... ... @@ -188,7 +188,7 @@
188 188 *
189 189 * Clear reserved bit 8 (DEVSLP bit) as we don't support DEVSLP
190 190 */
191   - id[ATA_ID_FEATURE_SUPP] &= ~(1 << 8);
  191 + id[ATA_ID_FEATURE_SUPP] &= cpu_to_le16(~(1 << 8));
192 192  
193 193 return 0;
194 194 }