Message ID | cover.1736248242.git.viresh.kumar@linaro.org |
---|---|
Headers | show |
Series | Rust bindings for cpufreq and OPP core + sample driver | expand |
On 07-01-25, 12:58, Greg KH wrote: > On Tue, Jan 07, 2025 at 04:51:34PM +0530, Viresh Kumar wrote: > > The Rust implementation needs these APIs for its working. Expose them. > > Why is the rust code unique here? Why does C code not need these > exported? > > And that first sentance isn't really good grammer :) > > Also, you created a new function here and didn't document it anywhere, > nor do you mention it here in the changelog text, making this a > non-starter right off :( How about this ? PM / OPP: Add reference counting helpers for Rust implementation To ensure that resources such as OPP tables or OPP nodes are not freed while in use by the Rust implementation, it is necessary to increment their reference count from Rust code. This commit introduces a new helper function, `dev_pm_opp_get_opp_table_ref()`, to increment the reference count of an OPP table and declares the existing helper `dev_pm_opp_get()` in `pm_opp.h`.
On Wed, Jan 8, 2025 at 6:20 AM Viresh Kumar <viresh.kumar@linaro.org> wrote: > > On 07-01-25, 12:47, Danilo Krummrich wrote: > > On Tue, Jan 07, 2025 at 04:51:33PM +0530, Viresh Kumar wrote: > > > I would like to get some of this (if not all) merged now into the rust/dev > > > > You mean rust-dev or staging/dev? > > Right. I think something was missing there :) i.e. which one? In any case, for upstreaming eventually, then this should ideally go through the relevant maintainers. So I guess that means yourself in a few cases here. Cheers, Miguel