Skip to content

Commit 101e595

Browse files
suman-tripathigregkh
authored andcommitted
ahci_xgene: Fix the endianess issue in APM X-Gene SoC AHCI SATA controller driver.
commit 5c0b8e0 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>
1 parent 55f8b81 commit 101e595

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/ata/ahci_xgene.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static unsigned int xgene_ahci_read_id(struct ata_device *dev,
188188
*
189189
* Clear reserved bit 8 (DEVSLP bit) as we don't support DEVSLP
190190
*/
191-
id[ATA_ID_FEATURE_SUPP] &= ~(1 << 8);
191+
id[ATA_ID_FEATURE_SUPP] &= cpu_to_le16(~(1 << 8));
192192

193193
return 0;
194194
}

0 commit comments

Comments
 (0)