mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Fredrik M Olsson <fredriol@axis.com>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Fredrik M Olsson <fredrik.m.olsson@axis.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Nobuhiro Iwamatsu <nobuhiro.iwamatsu.x90@mail.toshiba>,
	linux-rtc@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, kernel@axis.com
Subject: Re: [PATCH v3] rtc: ds1307: Add driver for Epson RX8901CE
Date: Thu, 22 Oct 2026 13:16:54 +0200	[thread overview]
Message-ID: <6a54d7f7-ae22-4ce7-b417-ac9efc7464cb@axis.com> (raw)
In-Reply-To: <202610192034497aeb0da5@mail.local>

On 10/19/26 22:34, Alexandre Belloni wrote:
> Hello,
> 
> On 16/10/2026 09:41:14+0200, Fredrik M Olsson wrote:
>> On 6/29/26 17:13, Fredrik M Olsson wrote:
>>> Adds support for:
>>> - Reading and writing time to/from the RTC.
>>> - Changing Backup Switch Mode (BSM) to DISABLED/DIRECT/LEVEL using the
>>>     RTC_PARAM_SET ioctl.
>>> - Optionally enabling battery charging.
>>> - Reading the battery voltage low status using the RTC_VL_READ ioctl
>>>     (only supported in LEVEL BSM), which also reports invalid time
>>>     information if the VLF flag is set.
>>>
>>> Signed-off-by: Fredrik M Olsson<fredrik.m.olsson@axis.com>
>>> ---
>>> Add basic support for the Epson RX8901CE RTC.
>>> Datasheet:https://download.epsondevice.com/td/pdf/app/RX8901CE_en.pdf
>>>
>>> Also includes a bug fix for an issue with reading the weekday from the
>>> RTC which affects both the existing rx8130 and this rx8901 driver.
>>> ---
>>> Changes in v3:
>>> - Clear CHGEN when trickle battery charging is disabled.
>>> - Link to v2:https://lore.kernel.org/r/20260520-ds1307-rx8901-add-v2-0-
>>> e069ea32e1db@axis.com
>>>
>>> Changes in v2:
>>> - Squashed the Voltage Low status patch into the driver patch
>>> - Switch from dev_err to dev_dbg
>>> - Implement Backup Switch Mode (BSM) ioctl instead of hard coding
>>>     switching mode.
>>> - Change the prototype for the do_trickle_setup function pointer in
>>>     order to make it possible to propagate error codes from the added
>>>     PWSW_CFG register read operation. This read operation is added so not
>>>     to override previously set register fields.
>>> - Link to v1:https://lore.kernel.org/r/20251219-ds1307-rx8901-add-v1-0-
>>> b13f346ebe93@axis.com
>>
>> [...]
>>
>> Friendly ping.
> 
> This was dropped from the queue because kbuild reported warnings and
> smatch issues on the patch.
> 
> Also, I feel like this should actually be a separate driver instead of
> growing ds1307 larger than it already is.
> 
> 
Thanks for the feedback.

I will look into the kbuild warnings and smatch issues.

Could you clarify what you have in mind for a separate RX8901 driver, 
and what the main concern you have with adding RX8901 support to ds1307? 
Is the concern mainly with the changes made to support BSM handling?


-- 
/Fredrik

      reply	other threads:[~2026-10-22 11:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-29 15:13 Fredrik M Olsson
2026-06-29 20:15 ` kernel test robot
2026-06-29 21:10 ` kernel test robot
2026-06-29 21:10 ` kernel test robot
2026-06-30  2:07 ` kernel test robot
2026-10-16  7:41 ` Fredrik M Olsson
2026-10-19 20:34   ` Alexandre Belloni
2026-10-22 11:16     ` Fredrik M Olsson [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=6a54d7f7-ae22-4ce7-b417-ac9efc7464cb@axis.com \
    --to=fredriol@axis.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fredrik.m.olsson@axis.com \
    --cc=kernel@axis.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=nobuhiro.iwamatsu.x90@mail.toshiba \
    --cc=robh@kernel.org \
    /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

all inboxes | Powered by JetHome®