Re: [PATCH v4 01/20] mfd: bcm2835-pm: Remove member of struct bcm2835_pm that is only used locally
From: Uwe Kleine-König (The Capable Hub)
Date: Wed Nov 11 2026 - 04:40:44 EST
[dropping Ray Jui and Scott Branden from Cc:; their addresses don't
exist any more, adding Stanimir instead]
Hello,
On Tue, Nov 10, 2026 at 10:54:26PM +0100, Uwe Kleine-König (The Capable Hub) wrote:
> struct bcm2835_pm::soc is only used in bcm2835_pm_probe() and thus can be
> replaced by a local variable.
>
> With that change enum bcm2835_soc is only used in the mfd core driver and
> so the definition can move there.
>
> Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
While going through my list of open patches I noticed that I got a
review comment about this patch in v2 by Stanimir Varbanov[1]. He said
in July:
> The original idea was to re-use bcm2835_pm::soc field in bcm2835-power.c
> pmdomain driver where we implicitly decide which DOMAIN_GRAFX_V3D
> register to use (see commit d4aa5960025a "pmdomain: bcm: bcm2835-power:
> Prepare to support BCM2712"). So, instead of !power->asb the intention
> is to use bcm2835_pm::soc == BCM2835_PM_SOC_BCM2712.
>
> Please drop this patch from the series. I'll post a patch soon.
As of next-20261110 drivers/mfd/bcm2835-pm.c is still the only user of
enum bcm2835_soc and
https://lore.kernel.org/all/?q=dfn%3Adrivers%2Fpmdomain%2Fbcm%2Fbcm2835-power.c+soc+d%3A2026-07-10..
suggests that "soon" didn't happen yet. I think it's ok to assume this
request has expired.
Best regards
Uwe
[1] https://lore.kernel.org/b3d228fd-6138-4195-b63c-65b28691e18b@xxxxxxx
Attachment:
signature.asc
Description: PGP signature