projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97bf6af
)
ahci_xgene: Fix the endianess issue in APM X-Gene SoC AHCI SATA controller driver.
author
Suman Tripathi
<stripathi@apm.com>
Mon, 29 Dec 2014 03:22:46 +0000
(08:52 +0530)
committer
Tejun Heo
<tj@kernel.org>
Mon, 5 Jan 2015 14:02:56 +0000
(09:02 -0500)
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>
drivers/ata/ahci_xgene.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/ahci_xgene.c
b/drivers/ata/ahci_xgene.c
index feeb8f1e2fe845e8f63ede5363c34b6dee64803d..f190b92786e403265b9f563fc05637f8f43eaab6 100644
(file)
--- a/
drivers/ata/ahci_xgene.c
+++ b/
drivers/ata/ahci_xgene.c
@@
-188,7
+188,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;
}