Skip to contentSkip to conversation

thermal: armada: fix register offsets for AXP

PATCH Superseded Zak Hays 2 participants 7 messages Dec 5, 2019 – Dec 9, 2019 2 messages not in the archive

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Zak Hays

author
#1 lore raw

PATCH v2 1/2 thermal: armada: fix register offsets for AXP

In reply to a message not in the archive

As shown in its device tree, Armada XP has the control1 register at 0x184d0, not 0x182d0.

---
v2: update commit title and add "Signed-off-by"

---
 drivers/thermal/armada_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/armada_thermal.c +1 -1
index 709a22f455e9..88363812033c 100644
@@ -578,7 +578,7 @@ static const struct armada_thermal_data armadaxp_data = {
        .coef_m = 10000000ULL,
        .coef_div = 13825,
        .syscon_status_off = 0xb0,
-       .syscon_control1_off = 0xd0,
+       .syscon_control1_off = 0x2d0,
 };
 
 static const struct armada_thermal_data armada370_data = {

--
2.7.4

author
#8 lore raw

Re: [PATCH v2 2/2] thermal: armada: clear reset in armadaxp_init

In reply to a message not in the archive

The reset bit needs to be cleared in the init sequence otherwise it holds the block in reset.

---
v2: update commit title and add "Signed-off-by"

---
 drivers/thermal/armada_thermal.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/thermal/armada_thermal.c +3 -0
index 88363812033c..8c4d1244ee7a 100644
@@ -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);
        reg &= ~PMU_TM_DISABLE_MASK;

--
2.7.4

#2 lore raw
In reply to Zak Hays

Hi Zak,

what patch to pick up? V2 or V2?

What email is the correct one?

Zachary Hays <[email protected]>
or
Zak Hays <[email protected]>

Also waiting for Miquel to ack the patch.

Thanks

-- Daniel

Quoted 26 lines · Zak Hays

As shown in its device tree, Armada XP has the control1 register at 0x184d0, not 0x182d0.

---
v2: update commit title and add "Signed-off-by"

---
 drivers/thermal/armada_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/armada_thermal.c +1 -2
index 709a22f455e9..88363812033c 100644
@@ -578,7 +578,7 @@ static const struct armada_thermal_data armadaxp_data = {
        .coef_m = 10000000ULL,
        .coef_div = 13825,
        .syscon_status_off = 0xb0,
-       .syscon_control1_off = 0xd0,
+       .syscon_control1_off = 0x2d0,
 };
 
 static const struct armada_thermal_data armada370_data = {
--

2.7.4

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
author
#3 lore raw

Hi Daniel,

Quoted 3 lines

Hi Zak,

what patch to pick up? V2 or V2?

I'm not sure I entirely understand your question. There are two patches:

Zachary Hays thermal: armada: fix register offsets for AXP Zachary Hays thermal: armada: clear reset in armadaxp_init

Version 2 of each patch updates the commit message to add a "Signed-off-by"
and cleans up the commit message per Miquèl's earlier comments. Otherwise the patches are the same as they were in version 1. The patch below is version 2 of that first patch.

Does that answer your question?

Quoted 7 lines

What email is the correct one?

Zachary Hays <[email protected]>
or
Zak Hays <[email protected]>

Both addresses route to the same place but "Zachary Hays <[email protected]>" is preferable. Sorry for the confusion.

Quoted 34 lines

Also waiting for Miquel to ack the patch.

Thanks

-- Daniel

Quoted 26 lines · Zak Hays

As shown in its device tree, Armada XP has the control1 register at 0x184d0, not 0x182d0.

---
v2: update commit title and add "Signed-off-by"

---
 drivers/thermal/armada_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/armada_thermal.c +1 -2
index 709a22f455e9..88363812033c 100644
@@ -578,7 +578,7 @@ static const struct armada_thermal_data armadaxp_data = {
        .coef_m = 10000000ULL,
        .coef_div = 13825,
        .syscon_status_off = 0xb0,
-       .syscon_control1_off = 0xd0,
+       .syscon_control1_off = 0x2d0,
 };
 
 static const struct armada_thermal_data armada370_data = {
--

2.7.4

#4 lore raw
Quoted 9 lines · Zak Hays

Hi Daniel,

Quoted 3 lines

Hi Zak,

what patch to pick up? V2 or V2?

I'm not sure I entirely understand your question. There are two patches:

Zachary Hays thermal: armada: fix register offsets for AXP Zachary Hays thermal: armada: clear reset in armadaxp_init

I'm seeing multiple posting of the V2 and reply to V2 with I guess a changelog added.

It is very difficult to deal with patches when it is unclear, duplicate series with different changelog.

In the future, post a resend version explaining what was missing, so it is easier to understand what is happening. Or send a V3.

Quoted 48 lines

Version 2 of each patch updates the commit message to add a "Signed-off-by"
and cleans up the commit message per Miquèl's earlier comments. Otherwise the patches are the same as they were in version 1. The patch below is version 2 of that first patch.

Does that answer your question?

Quoted 7 lines

What email is the correct one?

Zachary Hays <[email protected]>
or
Zak Hays <[email protected]>

Both addresses route to the same place but "Zachary Hays <[email protected]>" is preferable. Sorry for the confusion.

Quoted 34 lines

Also waiting for Miquel to ack the patch.

Thanks

-- Daniel

Quoted 26 lines · Zak Hays

As shown in its device tree, Armada XP has the control1 register at 0x184d0, not 0x182d0.

---
v2: update commit title and add "Signed-off-by"

---
 drivers/thermal/armada_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/armada_thermal.c +1 -2
index 709a22f455e9..88363812033c 100644
@@ -578,7 +578,7 @@ static const struct armada_thermal_data armadaxp_data = {
        .coef_m = 10000000ULL,
        .coef_div = 13825,
        .syscon_status_off = 0xb0,
-       .syscon_control1_off = 0xd0,
+       .syscon_control1_off = 0x2d0,
 };
 
 static const struct armada_thermal_data armada370_data = {
--

2.7.4

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
author
#5 lore raw
Quoted 11 lines · Zak Hays
Quoted 9 lines

Hi Daniel,

Quoted 3 lines

Hi Zak,

what patch to pick up? V2 or V2?

I'm not sure I entirely understand your question. There are two patches:

Zachary Hays thermal: armada: fix register offsets for AXP Zachary Hays thermal: armada: clear reset in armadaxp_init

Quoted 8 lines

I'm seeing multiple posting of the V2 and reply to V2 with I guess a changelog added.

It is very difficult to deal with patches when it is unclear, duplicate series with different changelog.

In the future, post a resend version explaining what was missing, so it is easier to understand what is happening. Or send a V3.

Ah. I understand now. I've been fighting email issues trying to get these patches sent and inadvertently sent out multiple versions of the same patches. The most recent patches are correct. Sorry for that spam. Shouldn't happen again.

Would you like me to resend as V3 for clarity or would you prefer to continue with the V2 patches?

Quoted 49 lines
Quoted 49 lines

Version 2 of each patch updates the commit message to add a "Signed-off-by"
and cleans up the commit message per Miquèl's earlier comments. Otherwise the patches are the same as they were in version 1. The patch below is version 2 of that first patch.

Does that answer your question?

Quoted 7 lines

What email is the correct one?

Zachary Hays <[email protected]>
or
Zak Hays <[email protected]>

Both addresses route to the same place but "Zachary Hays <[email protected]>" is preferable. Sorry for the confusion.

Quoted 34 lines

Also waiting for Miquel to ack the patch.

Thanks

-- Daniel

Quoted 26 lines · Zak Hays

As shown in its device tree, Armada XP has the control1 register at 0x184d0, not 0x182d0.

---
v2: update commit title and add "Signed-off-by"

---
 drivers/thermal/armada_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/armada_thermal.c +1 -2
index 709a22f455e9..88363812033c 100644
@@ -578,7 +578,7 @@ static const struct armada_thermal_data armadaxp_data = {
        .coef_m = 10000000ULL,
        .coef_div = 13825,
        .syscon_status_off = 0xb0,
-       .syscon_control1_off = 0xd0,
+       .syscon_control1_off = 0x2d0,
 };
 
 static const struct armada_thermal_data armada370_data = {
--

2.7.4

#6 lore raw
Quoted 20 lines · Zak Hays
Quoted 11 lines · Zak Hays
Quoted 9 lines

Hi Daniel,

Quoted 3 lines

Hi Zak,

what patch to pick up? V2 or V2?

I'm not sure I entirely understand your question. There are two patches:

Zachary Hays thermal: armada: fix register offsets for AXP Zachary Hays thermal: armada: clear reset in armadaxp_init

Quoted 8 lines

I'm seeing multiple posting of the V2 and reply to V2 with I guess a changelog added.

It is very difficult to deal with patches when it is unclear, duplicate series with different changelog.

In the future, post a resend version explaining what was missing, so it is easier to understand what is happening. Or send a V3.

Quoted 6 lines

Ah. I understand now. I've been fighting email issues trying to get these patches sent and inadvertently sent out multiple versions of the same patches. The most recent patches are correct. Sorry for that spam. Shouldn't happen again.

Would you like me to resend as V3 for clarity or would you prefer to continue with the V2 patches?

A V3 please, so I can pick them up without ambiguity from patchwork.

Thanks!

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog