Linux RTC
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Fil Dunsky" <filipp.dunsky@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 2/3] rtc: Add Cortina Systems CS7542 RTC driver
Date: Mon, 23 Nov 2026 18:51:18 +0000	[thread overview]
Message-ID: <sashiko-outbox-229879@kernel.org> (raw)
In-Reply-To: <20261123-b4-cs7542-rtc-v1-2-6c53761ffa03@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] rtc: misplaced RTC_DRV_CS75XX in Kconfig and unsorted entry in
  Makefile
--

commit 60817476625dfa4e7c3a4d8e71f7e7cf8d4f7e0d
Author: Fil Dunsky <filipp.dunsky@gmail.com>

rtc: Add Cortina Systems CS7542 RTC driver

This commit adds an RTC driver for the Cortina Systems CS7542 SoC,
supporting calendar read and set operations in the 2000-2099 range.

> diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
> index 73ec9230edfd0..0878ec33c6db8 100644
> --- a/drivers/rtc/Kconfig
> +++ b/drivers/rtc/Kconfig
> @@ -2212,4 +2212,14 @@ config RTC_DRV_HID_SENSOR_TIME
>  	  If this driver is compiled as a module, it will be named
>  	  rtc-hid-sensor-time.
>  
> +
> +config RTC_DRV_CS75XX
> +	tristate "Cortina Systems CS7542 RTC"
> +	depends on OF && HAS_IOMEM
> +	help
> +	  Support the calendar clock of the Cortina Systems CS7542 SoC.
> +	  Read and set dates in the 2000-2099 range.
> +	  Alarm interrupts are not supported.
> +	  The module will be named rtc-cs75xx.
> +
>  endif # RTC_CLASS
> diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
> index 46f1a0fc24165..bc73db37bdea1 100644
> --- a/drivers/rtc/Makefile
> +++ b/drivers/rtc/Makefile
> @@ -200,3 +200,4 @@ obj-$(CONFIG_RTC_DRV_WM8350)	+= rtc-wm8350.o
>  obj-$(CONFIG_RTC_DRV_X1205)	+= rtc-x1205.o
>  obj-$(CONFIG_RTC_DRV_XGENE)	+= rtc-xgene.o
>  obj-$(CONFIG_RTC_DRV_ZYNQMP)	+= rtc-zynqmp.o
> +obj-$(CONFIG_RTC_DRV_CS75XX)		+= rtc-cs75xx.o

[Severity: Low]
This isn't a bug, but placing RTC_DRV_CS75XX after RTC_DRV_HID_SENSOR_TIME
puts this on-SoC RTC under the "HID Sensor RTC drivers" heading instead of
the "on-CPU RTC drivers" section (see commit a5a19e80b235 ("rtc: Kconfig:
move symbols to proper section")).  Also, drivers/rtc/Makefile asks to
keep the driver list ordered alphabetically, so CONFIG_RTC_DRV_CS75XX
belongs between CONFIG_RTC_DRV_CROS_EC and CONFIG_RTC_DRV_CV1800.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-b4-cs7542-rtc-v1-0-6c53761ffa03@gmail.com?part=2

  reply	other threads:[~2026-11-23 18:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 18:41 [PATCH 0/3] rtc: Add Cortina Systems CS7542 calendar clock support Fil Dunsky via B4 Relay
2026-11-23 18:41 ` [PATCH 1/3] dt-bindings: rtc: Add Cortina Systems CS7542 RTC Fil Dunsky via B4 Relay
2026-11-23 18:41 ` [PATCH 2/3] rtc: Add Cortina Systems CS7542 RTC driver Fil Dunsky via B4 Relay
2026-11-23 18:51   ` sashiko-bot [this message]
2026-11-23 18:41 ` [PATCH 3/3] MAINTAINERS: Add Cortina Systems CS7542 RTC support Fil Dunsky via B4 Relay
2026-11-23 18:51 ` [PATCH 0/3] rtc: Add Cortina Systems CS7542 calendar clock support sashiko-bot

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