• J
    i2c-i801: Consolidate polling · 6cad93c4
    Jean Delvare 提交于
    (Based on earlier work by Daniel Kurtz.)
    
    Come up with a consistent, driver-wide strategy for event polling. For
    intermediate steps of byte-by-byte block transactions, check for
    BYTE_DONE or any error flag being set. At the end of every transaction
    (regardless of PEC being used), check for both BUSY being cleared and
    INTR or any error flag being set. This ensures proper action for all
    transaction types.
    Signed-off-by: NJean Delvare <khali@linux-fr.org>
    Cc: Daniel Kurtz <djkurtz@chromium.org>
    6cad93c4
i2c-i801.c 27.8 KB