All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about OPP regulator for Panfrost Devfreq
@ 2020-05-09 19:56 Clément Péron
  2020-05-11  5:25 ` Viresh Kumar
  0 siblings, 1 reply; 11+ messages in thread
From: Clément Péron @ 2020-05-09 19:56 UTC (permalink / raw)
  To: Viresh Kumar, Nishanth Menon, Stephen Boyd
  Cc: open list:ALLWINNER CPUFREQ DRIVER, Steven Price, Mark Brown

Dear OPP Maintainers,

I'm working on adding DVFS support using the generic OPP framework to Panfrost.
I'm using the dev_pm_opp_set_regulators() to let OPP framework get and
manage the regulator.
https://github.com/clementperon/linux/commit/be310c37b82010e293b7f129ccdcb711a2abb2ce

However it seems that this function only get the regulator but never enable it.
This result that the regulator is disabled later by the
regulator_late_cleanup().

In a previous version I let the Panfrost driver to get and enable the
regulator in addition to OPP but this create a conflict in debugFS
because the regulator is "get" two times.

Quick discussion with Mark Brown point that we should try to avoid
getting two times a regulator as it can create "confusion in your code
with two different parts of the device controlling the same supply
independently."

Is my understanding correct? If yes,
Should we not add a call to regulator_enable() in the
dev_pm_opp_set_regulators() ?

My WIP branch :
https://github.com/clementperon/linux/commits/panfrost_devfreq

Thanks for your help,
Clement

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-05-13 11:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-09 19:56 Question about OPP regulator for Panfrost Devfreq Clément Péron
2020-05-11  5:25 ` Viresh Kumar
2020-05-12 20:51   ` Clément Péron
2020-05-13  5:46     ` Viresh Kumar
2020-05-13  8:18       ` Clément Péron
2020-05-13  9:19         ` Viresh Kumar
2020-05-13 10:18           ` Mark Brown
2020-05-13 10:40             ` Viresh Kumar
2020-05-13 11:00               ` Mark Brown
2020-05-13 11:03                 ` Viresh Kumar
2020-05-13 11:36                   ` Clément Péron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.