• B
    rtc: rv8803: Always apply the I²C workaround · d522649e
    Benoît Thébaudeau 提交于
    The I²C NACK issue of the RV-8803 may occur after any I²C START
    condition, depending on the timings. Consequently, the workaround must
    be applied for all the I²C transfers.
    
    This commit abstracts the I²C transfer code into register access
    functions. This avoids duplicating the I²C workaround everywhere. This
    also avoids the duplication of the code handling the return value of
    i2c_smbus_read_i2c_block_data(). Error messages are issued in case of
    definitive register access failures (if the workaround fails). This
    change also makes the I²C transfer return value checks consistent.
    Signed-off-by: NBenoît Thébaudeau <benoit@wsystem.com>
    Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
    d522649e
rtc-rv8803.c 13.8 KB