Skip to content

RTC battery backup not used #67

@kevinmoll14

Description

@kevinmoll14

@jnettlet: Commit df7f7ef introduces a bug where the battery backup for the RTC is disabled.

On first-ever powerup of the PCF, the chip returns a random time and battery backup is not enabled. The kernel driver enables the battery backup. However, if the random time is outside the checked range introduced by this commit, the kernel driver does a software reset of the PCF. This causes the battery backup to be disabled again.

This is a problem because every time the user removes power from the device, on next boot a random time will be returned and battery backup disabled. This keeps happening until the random time just happens to fall within the valid range of times you've constrained the clock to have.

The software reset should be performed before the battery backup is enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions