i2c: Limit core locking to the necessary sections
The i2c-core code tends to hold the core lock for longer than it should. Limit locking to the necessary sections for both performance and clarity. This is also a requirement to support I2C multiplexers in the future. Signed-off-by: NJean Delvare <khali@linux-fr.org> Tested-by: NRodolfo Giometti <giometti@linux.it> Cc: David Brownell <dbrownell@users.sourceforge.net>
Showing
想要评论请 注册 或 登录