All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Linus Walleij" <linusw@kernel.org>
Cc: mfd@lists.linux.dev, devicetree@vger.kernel.org, robh@kernel.org,
	conor+dt@kernel.org, lee@kernel.org
Subject: Re: [PATCH RFC 4/5] bus: Add a shared BCMBCA PMC3 PMB transport
Date: Wed, 14 Oct 2026 09:55:47 +0000	[thread overview]
Message-ID: <sashiko-outbox-171108@kernel.org> (raw)
In-Reply-To: <20261014-xg6846b-bcmbca-xrdp-reset-v1-4-daf5d177e113@kernel.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] bus: Missing sparse lock annotations for transport lock functions
--

commit f8e671cc4d072dbd3353e224bb3d5cee80468de7
Author: Linus Walleij <linusw@kernel.org>

bus: Add a shared BCMBCA PMC3 PMB transport

This commit adds a bus driver for shared access to the Processor Monitor Bus
(PMB) of the third generation Platform Management Controller (PMC3), initially
for BCM6846. It serializes complete register sequences with a mutex and a
hardware lock.

> diff --git a/include/linux/soc/bcm/bcmbca-pmb.h b/include/linux/soc/bcm/bcmbca-pmb.h
> new file mode 100644
> index 0000000000000..f95523d52e01b
> --- /dev/null
> +++ b/include/linux/soc/bcm/bcmbca-pmb.h
[ ... ]
> +/*
> + * Processor Monitor Bus (PMB) operations sleep. Hold the transport lock
> + * across a complete sequence, including read/modify/write operations.
> + * A successful lock must be paired with unlock, including on errors.
> + */
> +int bcmbca_pmb_lock(struct bcmbca_pmb *pmb);
> +void bcmbca_pmb_unlock(struct bcmbca_pmb *pmb);

[Severity: Low]
Does this code need sparse lock annotations for the transport lock functions?

Without __acquires(&pmb->lock) and __releases(&pmb->lock) on these
prototypes, sparse will report context imbalance warnings when child drivers
call bcmbca_pmb_lock() and bcmbca_pmb_unlock() (when built with C=1). While
sparse has limited strictness with mutexes compared to spinlocks, adding
the annotations can prevent build-time context imbalance warnings.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261014-xg6846b-bcmbca-xrdp-reset-v1-0-daf5d177e113@kernel.org?part=4

  reply	other threads:[~2026-10-14  9:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-14  9:48 [PATCH RFC 0/5] BCMBCA PMB reset controller Linus Walleij
2026-10-14  9:48 ` [PATCH RFC 1/5] dt-bindings: mfd: Describe the BCM6846 PMC complex Linus Walleij
2026-10-14  9:48 ` [PATCH RFC 2/5] dt-bindings: soc: Describe the BCM6846 Processor Monitor Bus Linus Walleij
2026-10-14  9:48 ` [PATCH RFC 3/5] dt-bindings: reset: Describe the BCMBCA PMB reset controller Linus Walleij
2026-10-14 10:23   ` Philipp Zabel
2026-10-14  9:48 ` [PATCH RFC 4/5] bus: Add a shared BCMBCA PMC3 PMB transport Linus Walleij
2026-10-14  9:55   ` sashiko-bot [this message]
2026-10-14  9:48 ` [PATCH RFC 5/5] reset: Add BCMBCA block resets through the PMB Linus Walleij
2026-10-14 11:13   ` Philipp Zabel

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-171108@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=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.