• R
    i2c: Timeouts reach -1 · a746b578
    Roel Kluin 提交于
    With a postfix decrement these timeouts reach -1 rather than 0, but
    after the loop it is tested whether they have become 0.
    
    As pointed out by Jean Delvare, the condition we are waiting for should
    also be tested before the timeout. With the current order, you could
    exit with a timeout error while the job is actually done.
    Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
    Signed-off-by: NJean Delvare <khali@linux-fr.org>
    a746b578
i2c-pxa.c 26.5 KB