public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] rtc: bq32000: Add settle delay for aggressive polling
@ 2026-04-16  9:24 Adriana Stancu
  2026-04-16  9:24 ` [PATCH v1 1/2] dt-bindings: rtc: ti,bq32k: Add delay on rtc reads Adriana Stancu
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Adriana Stancu @ 2026-04-16  9:24 UTC (permalink / raw)
  To: alexandre.belloni
  Cc: linux-rtc, devicetree, linux-kernel, robh, krzk+dt, conor+dt,
	Adriana Stancu

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-04-16 11:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-16  9:24 [PATCH v1 0/2] rtc: bq32000: Add settle delay for aggressive polling Adriana Stancu
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox