Skip to contentSkip to conversation

APE6EVM and Runtime PM

DISCUSSION Simon Horman 2 participants 7 messages Apr 4, 2013 SuperH

lore
Share & tools
lore
#0 lore raw

Hi Magnus,

in the course of looking look at consolidating our defconfigs I noticed that SMSC ethernet and rcar_thermal seem seem to not work when runtime PM is enabled.

I'm wondering if you have any ideas of what might be the cause of this or if you could give me some guidance on investigating this problem.

I assume that it relates to a clock or clocks not being enabled.

#1 lore raw

Hi Simon

Quoted 8 lines

in the course of looking look at consolidating our defconfigs I noticed that SMSC ethernet and rcar_thermal seem seem to not work when runtime PM is enabled.

I'm wondering if you have any ideas of what might be the cause of this or if you could give me some guidance on investigating this problem.

I assume that it relates to a clock or clocks not being enabled.

About rcar_thermal, it needs my patch which was sent to PM ML.
I got email from Zhang that he accepted my patch (pm_runtime support for thermal). But it seems he didn't push his branch yet...
I guess I explained this on my [PATCH 0/x] email.

Best regards
---
Kuninori Morimoto

#2 lore raw
Quoted 10 lines · Kuninori Morimoto

Hi Simon

Quoted 7 lines

in the course of looking look at consolidating our defconfigs I noticed that SMSC ethernet and rcar_thermal seem seem to not work when runtime PM is enabled.

I'm wondering if you have any ideas of what might be the cause of this or if you could give me some guidance on investigating this problem.

Quoted 6 lines
Quoted 1 line

I assume that it relates to a clock or clocks not being enabled.

About rcar_thermal, it needs my patch which was sent to PM ML.
I got email from Zhang that he accepted my patch (pm_runtime support for thermal). But it seems he didn't push his branch yet...
I guess I explained this on my [PATCH 0/x] email.

Thanks, sorry for missing that.

I guess we are down to just SMSC then.

#3 lore raw

Dear Simon

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

in the course of looking look at consolidating our defconfigs I noticed that SMSC ethernet and rcar_thermal seem seem to not work when runtime PM is enabled.

I'm wondering if you have any ideas of what might be the cause of this or if you could give me some guidance on investigating this problem.

I assume that it relates to a clock or clocks not being enabled.

Quoted 8 lines
Quoted 4 lines

About rcar_thermal, it needs my patch which was sent to PM ML.
I got email from Zhang that he accepted my patch (pm_runtime support for thermal). But it seems he didn't push his branch yet...
I guess I explained this on my [PATCH 0/x] email.

Thanks, sorry for missing that.

I guess we are down to just SMSC then.

I didn't check real board,
but I guess current SMSC IRQ came from IRQC,
and this IRQC needs MSTP 407.
But IRQC driver seems doesn't support PM_RUNTIME at this point.

Does your issue solve by adding MSTP 407 with CLK_ENABLE_ON_INIT ? I'm not sure this is good solution, but quick-hack

Best regards
--
Kuninori Morimoto

#4 lore raw
Quoted 21 lines · Kuninori Morimoto

Dear Simon

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

in the course of looking look at consolidating our defconfigs I noticed that SMSC ethernet and rcar_thermal seem seem to not work when runtime PM is enabled.

I'm wondering if you have any ideas of what might be the cause of this or if you could give me some guidance on investigating this problem.

I assume that it relates to a clock or clocks not being enabled.

Quoted 8 lines
Quoted 4 lines

About rcar_thermal, it needs my patch which was sent to PM ML.
I got email from Zhang that he accepted my patch (pm_runtime support for thermal). But it seems he didn't push his branch yet...
I guess I explained this on my [PATCH 0/x] email.

Thanks, sorry for missing that.

I guess we are down to just SMSC then.

Quoted 7 lines

I didn't check real board,
but I guess current SMSC IRQ came from IRQC,
and this IRQC needs MSTP 407.
But IRQC driver seems doesn't support PM_RUNTIME at this point.

Does your issue solve by adding MSTP 407 with CLK_ENABLE_ON_INIT ? I'm not sure this is good solution, but quick-hack

Thanks!

I will post a patch to add pm_runtime support to the IRQC Driver. It seems to allow SMSC + RUNTIME_PM to function on the APE6EVM.

#5 lore raw
Quoted 27 lines · Simon Horman
Quoted 26 lines · Kuninori Morimoto

Dear Simon

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

in the course of looking look at consolidating our defconfigs I noticed that SMSC ethernet and rcar_thermal seem seem to not work when runtime PM is enabled.

I'm wondering if you have any ideas of what might be the cause of this or if you could give me some guidance on investigating this problem.

I assume that it relates to a clock or clocks not being enabled.

Quoted 8 lines
Quoted 4 lines

About rcar_thermal, it needs my patch which was sent to PM ML.
I got email from Zhang that he accepted my patch (pm_runtime support for thermal). But it seems he didn't push his branch yet...
I guess I explained this on my [PATCH 0/x] email.

Thanks, sorry for missing that.

I guess we are down to just SMSC then.

I didn't check real board,
but I guess current SMSC IRQ came from IRQC,
and this IRQC needs MSTP 407.
But IRQC driver seems doesn't support PM_RUNTIME at this point.

Quoted 7 lines
Quoted 2 lines

Does your issue solve by adding MSTP 407 with CLK_ENABLE_ON_INIT ? I'm not sure this is good solution, but quick-hack

Thanks!

I will post a patch to add pm_runtime support to the IRQC Driver. It seems to allow SMSC + RUNTIME_PM to function on the APE6EVM.

For reference, I have posted "irqchip: irqc: Add runtime PM support"

#6 lore raw
In reply to Simon Horman

Hi Simon

Quoted 5 lines
Quoted 5 lines

I didn't check real board,
but I guess current SMSC IRQ came from IRQC,
and this IRQC needs MSTP 407.
But IRQC driver seems doesn't support PM_RUNTIME at this point.

Quoted 7 lines
Quoted 2 lines

Does your issue solve by adding MSTP 407 with CLK_ENABLE_ON_INIT ? I'm not sure this is good solution, but quick-hack

Thanks!

I will post a patch to add pm_runtime support to the IRQC Driver. It seems to allow SMSC + RUNTIME_PM to function on the APE6EVM.

Cool !!
Thanks

Best regards
---
Kuninori Morimoto