Skip to content
Snippets Groups Projects
  • Christos Gentsos's avatar
    I2C: Clear error bit on bus error, add STATUS_BYTE and STATUS_CML · dfd58318
    Christos Gentsos authored
    When a bus error happened, the I2C peripheral's error bit remained
    set. This caused it to respond erroneously in future transactions.
    
    Now, when a bus error occurs, we're clearing the error bit and setting
    the error flags in the STATUS_BYTE and STATUS_CML PMBus registers.
    After the user reads those registers (using commands 0x78 and 0x7E),
    their error flags are cleared.
    dfd58318