projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4abb629
)
thermal: armada: Clear reset in armadaxp_init
author
Zak Hays
<zak.hays@lexmark.com>
Mon, 9 Dec 2019 18:57:23 +0000
(18:57 +0000)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 09:24:32 +0000
(10:24 +0100)
The reset bit needs to be cleared in the init sequence otherwise it
holds the block in reset.
Signed-off-by: Zachary Hays <zhays@lexmark.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link:
https://lore.kernel.org/r/BN8PR10MB33797EECAC557B5018A0A6628C580@BN8PR10MB3379.namprd10.prod.outlook.com
drivers/thermal/armada_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/armada_thermal.c
b/drivers/thermal/armada_thermal.c
index 88363812033cc630a407bac7dc0336abe07a91d4..8c4d1244ee7a44f41f9a95afd8b956c0719ce44c 100644
(file)
--- a/
drivers/thermal/armada_thermal.c
+++ b/
drivers/thermal/armada_thermal.c
@@
-155,6
+155,9
@@
static void armadaxp_init(struct platform_device *pdev,
regmap_write(priv->syscon, data->syscon_control1_off, reg);
+ reg &= ~PMU_TDC0_SW_RST_MASK;
+ regmap_write(priv->syscon, data->syscon_control1_off, reg);
+
/* Enable the sensor */
regmap_read(priv->syscon, data->syscon_status_off, ®);
reg &= ~PMU_TM_DISABLE_MASK;