[PATCH v3 1/7] syscore: Pass context data to callbacks

Rafael J. Wysocki rafael at kernel.org
Fri Nov 14 06:18:10 AEDT 2025


On Thu, Nov 13, 2025 at 7:32 PM Thierry Reding <thierry.reding at gmail.com> wrote:
>
> On Wed, Nov 05, 2025 at 05:52:01PM +0100, Thierry Reding wrote:
> > On Mon, Nov 03, 2025 at 05:18:08PM +0100, Rafael J. Wysocki wrote:
> > > On Wed, Oct 29, 2025 at 5:33 PM Thierry Reding <thierry.reding at gmail.com> wrote:
> > > >
> > > > From: Thierry Reding <treding at nvidia.com>
> > > >
> > > > Several drivers can benefit from registering per-instance data along
> > > > with the syscore operations. To achieve this, move the modifiable fields
> > > > out of the syscore_ops structure and into a separate struct syscore that
> > > > can be registered with the framework. Add a void * driver data field for
> > > > drivers to store contextual data that will be passed to the syscore ops.
> > > >
> > > > Signed-off-by: Thierry Reding <treding at nvidia.com>
> > >
> > > This change is fine with me, so I can apply it unless somebody has any
> > > specific heartburn related to it (Greg?), but in case you want to
> > > route it differently
> > >
> > > Acked-by: Rafael J. Wysocki (Intel) <rafael at kernel.org>
> >
> > I have a few follow-up patches for the Tegra PMC driver that depend on
> > this. 6.19 is what I was targetting, so if we could put this into a
> > stable branch that'd be the best solution. I can set that up via the
> > Tegra tree if you and Greg are okay with it.
> >
> > If that's all too complicated, I can probably wait until the next cycle
> > to merge the PMC changes.
>
> I've added this single patch to a branch based off of v6.18-rc1 that I
> plan to feed into linux-next so it can get some broader exposure.
>
> I can keep that branch stable so it can go through multiple trees if
> needed. If anyone's interested, the branch is here:
>
>         https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git/log/?h=for-6.19/syscore

You beat me to this, sorry about the delay.


More information about the Linuxppc-dev mailing list