All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Sander Speetjens" <sander.speetjens@gmail.com>
Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH v13 3/3] rtc: Add Raspberry Pi 5 RTC driver
Date: Sun, 18 Oct 2026 15:06:22 +0000	[thread overview]
Message-ID: <sashiko-outbox-176229@kernel.org> (raw)
In-Reply-To: <20261018150028.1047172-4-sander.speetjens@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] rtc: Kconfig RTC_DRV_RPI depends on non-existent ARCH_BRCM2835 symbol
--

commit a6bed19cc6f6abde9685896060e26f766fe6119a
Author: Sander Speetjens <sander.speetjens@gmail.com>

rtc: Add Raspberry Pi 5 RTC driver

This commit adds an RTC driver for the Raspberry Pi 5 custom DA9091 RTC,
accessed via the Raspberry Pi firmware mailbox interface.

> diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
> index 05b9233b94189..b4ed5ebea11a1 100644
> --- a/drivers/rtc/Kconfig
> +++ b/drivers/rtc/Kconfig
> @@ -1999,6 +1999,18 @@ config RTC_DRV_R7301
>  	   This driver can also be built as a module. If so, the module
>  	   will be called rtc-r7301.
>  
> +config RTC_DRV_RPI
> +	tristate "Raspberry Pi RTC"
> +	depends on RASPBERRYPI_FIRMWARE || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE)
> +	depends on ARCH_BRCM2835 || COMPILE_TEST
> +	default ARCH_BRCM2835

[Severity: High]
Should ARCH_BRCM2835 be ARCH_BCM2835 here?

No Kconfig symbol named ARCH_BRCM2835 exists in the tree; the platform
symbol defined in arch/arm64/Kconfig.platforms and used by
config RASPBERRYPI_FIRMWARE in drivers/firmware/Kconfig is ARCH_BCM2835:

	depends on ARCH_BCM2835 || COMPILE_TEST
	depends on BCM2835_MBOX
	default ARCH_BCM2835

Because ARCH_BRCM2835 is undefined, Kconfig evaluates it as n, preventing
RTC_DRV_RPI from being selected or defaulted on Raspberry Pi builds unless
COMPILE_TEST is enabled.

> +	help
> +	  If you say yes here you get support for the RTC found on
> +	  Raspberry Pi 5th gen devices.
> +
> +	  This driver can also be built as a module. If so, the module
> +	  will be called rtc-raspberrypi.
> +
>  config RTC_DRV_STM32
>  	tristate "STM32 RTC"
>  	select REGMAP_MMIO

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261018150028.1047172-1-sander.speetjens@gmail.com?part=3

      reply	other threads:[~2026-10-18 15:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-18 15:00 [PATCH v13 0/3] Raspberry Pi 5 RTC driver Sander Speetjens
2026-10-18 15:00 ` [PATCH v13 1/3] dt-bindings: rtc: Add missing type to trickle-voltage-millivolt Sander Speetjens
2026-10-18 15:02   ` sashiko-bot
2026-10-18 15:00 ` [PATCH v13 2/3] dt-bindings: rtc: Add property for Raspberry Pi 5 RTC Sander Speetjens
2026-10-18 15:02   ` sashiko-bot
2026-10-18 15:00 ` [PATCH v13 3/3] rtc: Add Raspberry Pi 5 RTC driver Sander Speetjens
2026-10-18 15:06   ` sashiko-bot [this message]

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-176229@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sander.speetjens@gmail.com \
    --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.