Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1329667
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V2 01/16] PM / OPP: get/put regulators from OPP core |
| Date | 2016-02-09 00:00 +0100 |
| Message-ID | <r02WL-3dj-11@gated-at.bofh.it> (permalink) |
| References | <qVQ7M-FX-5@gated-at.bofh.it> <qVQ7N-FX-17@gated-at.bofh.it> <qXz2Q-3Wf-57@gated-at.bofh.it> <qXzPb-4CF-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 02/02, Viresh Kumar wrote: > On 01-02-16, 18:29, Stephen Boyd wrote: > > I'm still lost why we need this API. When the OPP is torn down we > > can call regulator_put there instead. The same style seems to be > > done for supported hw, and prop_name, which doesn't make any > > sense either. Just tear everything down when there aren't any > > more OPPs in the table. > > I explained that earlier as well, but you never replied to that :) > Let me paste that again here: > > Consider this case: > - Platform code sets regulator for cpuX (Create OPP-table struct and > set regulator) > - insmod cpufreq-dt.ko (Fill OPP table) > - rmmod cpufreq-dt.ko (Remove OPP table and struct, according to your > suggestion) > - insmod cpufreq-dt.ko (No regulator found). > > The platform code is supposed to set regulator, supported-hw, > prop-name only once from some init-code. And it should just work out > of the box after that. And so these calls are really required. > Ok the sequence makes sense now that it's clearly explained. I wonder if we should create and destroy OPP tables when a device is created and destroyed instead of triggering that from a driver. I suppose not creating the tables until they're used is good for saving memory though? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH V2 01/16] PM / OPP: get/put regulators from OPP core Viresh Kumar <viresh.kumar@linaro.org> - 2016-01-28 09:30 +0100
Re: [PATCH V2 01/16] PM / OPP: get/put regulators from OPP core Stephen Boyd <sboyd@codeaurora.org> - 2016-02-02 03:40 +0100
Re: [PATCH V2 01/16] PM / OPP: get/put regulators from OPP core Viresh Kumar <viresh.kumar@linaro.org> - 2016-02-02 04:30 +0100
Re: [PATCH V2 01/16] PM / OPP: get/put regulators from OPP core Stephen Boyd <sboyd@codeaurora.org> - 2016-02-09 00:00 +0100
Re: [PATCH V2 01/16] PM / OPP: get/put regulators from OPP core Viresh Kumar <viresh.kumar@linaro.org> - 2016-02-09 05:00 +0100
Re: [PATCH V2 01/16] PM / OPP: get/put regulators from OPP core Viresh Kumar <viresh.kumar@linaro.org> - 2016-02-09 05:00 +0100
csiph-web