Skip to content
Commit 46ba5e55 authored by Corey Wharton's avatar Corey Wharton Committed by Carles Cufí
Browse files

drivers: i2c: i2c_dw: add bus mutex



This change adds a mutex to protect against simultaneous access to the bus
instead of returning an error during transfers. Since most I2C code doesn't
handle retries (especially with a -EIO code) not blocking on a mutex can
cause a number of problems.

Signed-off-by: default avatarCorey Wharton <xodus7@cwharton.com>
parent 6433e204
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment