From: sashiko-bot@kernel.org
To: "Linus Walleij" <linusw@kernel.org>
Cc: mfd@lists.linux.dev, devicetree@vger.kernel.org,
linux-clk@vger.kernel.org, linux-hwmon@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org, lee@kernel.org
Subject: Re: [PATCH v3 5/7] reset: Add BCMBCA block resets through the PMB
Date: Fri, 06 Nov 2026 08:35:14 +0000 [thread overview]
Message-ID: <sashiko-outbox-201070@kernel.org> (raw)
In-Reply-To: <20261106-xg6846b-bcmbca-xrdp-reset-v3-5-d6adeb71afc9@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] reset: bcmbca-pmb: redundant reset callback in
bcmbca_pmb_reset_group
--
commit cb99ec1412a9c3107e489e88034ee115dfafb214
Author: Linus Walleij <linusw@kernel.org>
reset: Add BCMBCA block resets through the PMB
This commit adds a reset controller driver for Broadcom BCMBCA blocks
controlled through the PMC3 Processor Monitor Bus regmap, implementing
the BCM6846 XRDP reset group and PVTMON acquisition reset.
> diff --git a/drivers/reset/reset-bcmbca-pmb.c b/drivers/reset/reset-bcmbca-pmb.c
> new file mode 100644
> index 0000000000000..e8e079c9ccb56
> --- /dev/null
> +++ b/drivers/reset/reset-bcmbca-pmb.c
> @@ -0,0 +1,243 @@
[ ... ]
> +struct bcmbca_pmb_reset;
> +
> +struct bcmbca_pmb_reset_group {
> + const char *name;
> + int (*reset)(struct bcmbca_pmb_reset *rst,
> + const struct bcmbca_pmb_reset_group *group);
> + const struct bcmbca_pmb_reset_block *blocks;
> + unsigned int num_blocks;
> + /* Minimum reset assertion hold time in microseconds. */
> + unsigned int assert_hold_us;
> +};
[ ... ]
> +static const struct bcmbca_pmb_reset_group bcm6846_pmb_reset_groups[] = {
> + [BCM6846_RESET_XRDP] = {
> + .name = "XRDP",
> + .reset = bcmbca_pmb_reset_sequence,
> + .blocks = bcm6846_xrdp_resets,
> + .num_blocks = ARRAY_SIZE(bcm6846_xrdp_resets),
> + .assert_hold_us = 10,
> + },
> + [BCM6846_RESET_PVTMON] = {
> + .name = "PVTMON",
> + .reset = bcmbca_pmb_reset_sequence,
> + .blocks = &bcm6846_pvtmon_reset,
> + .num_blocks = 1,
> + .assert_hold_us = 1000,
> + },
> +};
[ ... ]
> +static int bcmbca_pmb_reset(struct reset_controller_dev *rcdev, unsigned long id)
> +{
> + struct bcmbca_pmb_reset *rst = container_of(rcdev, struct bcmbca_pmb_reset, rcdev);
> + const struct bcmbca_pmb_reset_group *group;
> +
> + if (id >= rst->variant->num_groups)
> + return -EINVAL;
> + group = &rst->variant->groups[id];
> + if (!group->reset)
> + return -EINVAL;
> +
> + guard(mutex)(&rst->lock);
> + return group->reset(rst, group);
> +}
[Severity: Low]
As reported by Philipp Zabel on RFC [1], is the reset callback pointer in
struct bcmbca_pmb_reset_group still needed now that XRDP zone power
transitions live in the PMB power domain driver?
Every entry in bcm6846_pmb_reset_groups[] sets .reset to
bcmbca_pmb_reset_sequence, so bcmbca_pmb_reset() could call
bcmbca_pmb_reset_sequence(rst, group) directly and drop the callback field
along with the forward declarations of struct bcmbca_pmb_reset and
bcmbca_pmb_reset_sequence().
[1] https://lore.kernel.org/r/90c5efa22600044657e67b9e1297bda2fb53f60c.camel@pengutronix.de
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261106-xg6846b-bcmbca-xrdp-reset-v3-0-d6adeb71afc9@kernel.org?part=5
next prev parent reply other threads:[~2026-11-06 8:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 8:26 [PATCH v3 0/7] BCMBCA PMB power, clock, reset and hardware monitoring support Linus Walleij
2026-11-06 8:26 ` [PATCH v3 1/7] dt-bindings: mfd: Describe the BCM6846 PMC complex Linus Walleij
2026-11-06 8:36 ` sashiko-bot
2026-11-06 12:57 ` Rob Herring (Arm)
2026-11-06 8:26 ` [PATCH v3 2/7] dt-bindings: soc: Describe the BCM6846 Processor Monitor Bus Linus Walleij
2026-11-06 8:43 ` sashiko-bot
2026-11-06 17:03 ` William Zhang
2026-11-06 8:26 ` [PATCH v3 3/7] mfd: bcmbca-pmb: Add a shared BCMBCA PMC3 PMB transport Linus Walleij
2026-11-06 8:39 ` sashiko-bot
2026-11-06 8:26 ` [PATCH v3 4/7] pmdomain: bcm: Add BCMBCA PMB power domains Linus Walleij
2026-11-06 8:26 ` [PATCH v3 5/7] reset: Add BCMBCA block resets through the PMB Linus Walleij
2026-11-06 8:35 ` sashiko-bot [this message]
2026-11-06 11:59 ` Philipp Zabel
2026-11-06 8:26 ` [PATCH v3 6/7] clk: bcm: Add BCMBCA PMB clocks Linus Walleij
2026-11-06 8:26 ` [PATCH v3 7/7] hwmon: Add Broadcom PMB PVTMON monitoring Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-201070@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox