Skip to content
Snippets Groups Projects
  • Jean Delvare's avatar
    i2c-i801: Fix handling of error conditions · cf898dc5
    Jean Delvare authored
    
    Move the check of pre-transaction and post-transaction conditions to
    separate functions, and adjust them a bit. Having dedicated functions
    for that ensures that errors are handled in a consistent way.
    
    Bit HOST_BUSY of the status register is read-only, so writing to it is
    certainly not going to clear it. If this bit is set then we simply
    don't want to start the transaction, as it means that somebody else
    (ACPI, SMM?) is already using the controller.
    
    Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
    cf898dc5
Code owners
Assign users and groups as approvers for specific file changes. Learn more.