From: Adriana Stancu <adriana@arista.com>
To: alexandre.belloni@bootlin.com
Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
Adriana Stancu <adriana@arista.com>
Subject: [PATCH v1 0/2] rtc: bq32000: Add settle delay for aggressive polling
Date: Thu, 16 Apr 2026 02:24:12 -0700 [thread overview]
Message-ID: <20260416092414.3210383-1-adriana@arista.com> (raw)
This series addresses a limitation in the TI BQ32000 RTC where aggressive
I2C polling (done by userspace tools like hwclock on systems where the
interrupt line is not connected to the CPU) can prevent the refresh of
RTC registers.
This results in stale data reads or select() timeouts in userspace.
The series introduces a configurable "settle delay" via device tree
to ensure the hardware has sufficient idle time between read attempts.
Patch 1: Adds the 'ti,read-settle-us' property to the YAML bindings.
Patch 2: Implements the delay in the driver using usleep_range.
Adriana Stancu (2):
dt-bindings: rtc: ti,bq32k: Add delay on rtc reads
rtc: bq32000: add configurable delay between RTC reads
.../devicetree/bindings/rtc/ti,bq32000.yaml | 5 +++
drivers/rtc/rtc-bq32k.c | 34 +++++++++++++++----
2 files changed, 33 insertions(+), 6 deletions(-)
--
2.51.0
next reply other threads:[~2026-04-16 9:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-16 9:24 Adriana Stancu [this message]
2026-04-16 9:24 ` [PATCH v1 1/2] dt-bindings: rtc: ti,bq32k: Add delay on rtc reads Adriana Stancu
2026-04-16 9:27 ` Krzysztof Kozlowski
2026-04-16 9:24 ` [PATCH v1 2/2] rtc: bq32000: add configurable delay between RTC reads Adriana Stancu
2026-04-16 9:57 ` [PATCH v2 0/2] rtc: bq32000: Add settle delay for aggressive polling Adriana Stancu
2026-04-16 9:57 ` [PATCH v2 1/2] dt-bindings: rtc: ti,bq32k: Add delay on rtc reads Adriana Stancu
2026-04-16 10:03 ` Alexandre Belloni
2026-04-16 10:33 ` Adriana Nicolae
2026-04-16 11:00 ` Krzysztof Kozlowski
2026-04-16 11:14 ` Adriana Nicolae
2026-04-16 9:57 ` [PATCH v2 2/2] rtc: bq32000: add configurable delay between RTC reads Adriana Stancu
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=20260416092414.3210383-1-adriana@arista.com \
--to=adriana@arista.com \
--cc=alexandre.belloni@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--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