Re: [PATCH RFC] rtc: m41t80: Support SMBus adapters without I2C block transfers

From: Florian Fainelli

Date: Tue Nov 17 2026 - 12:46:29 EST


On 11/3/26 14:50, Florian Fainelli wrote:
The M41T81 on the Broadcom BCM91250E (Sentosa) is connected to the
SiByte SMBus controller. The controller supports SMBus byte and word
transactions, but not the I2C block transfers required by rtc-m41t80,
so the driver refuses to probe.

Use the I2C core's block-read emulation and provide a byte-write
fallback, retaining native block transfers when the adapter supports
them. Propagate transfer errors and reject short reads.

Individual byte or word reads do not latch the complete clock register
set. Recheck seconds after reading the time on adapters without block
reads and retry up to three times if the clock rolled over. Return
-EAGAIN if a consistent sample cannot be obtained.

Maciej W. Rozycki proposed SMBus-only support for this RTC family in
2008. The same SiByte limitation was discussed again in 2018, including
register latching, seconds rechecks and a possible regmap conversion.
This change revisits that approach using the current I2C helpers.

RTC access and date retention across a reboot were verified on a
BCM91250E. Host tests with mocked SMBus transfers covered native and
fallback paths, rollover retries, short reads and transfer errors.
Alarm operation and retention after a power-cycle were not tested.

Link: https://lkml.rescloud.iu.edu/hypermail/linux/kernel/0805.1/1778.html
Link: https://lkml.rescloud.iu.edu/1811.1/07408.html
Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
---

Maciej, Alexandre, any feedback on this approach?
--
Florian