i2c: mlxbf: support lock mechanism
Linux is not the only entity using the BlueField I2C busses so support a lock mechanism provided by hardware to avoid issues when multiple entities are trying to access the same bus. The lock is acquired whenever written explicitely or the lock register is read. So make sure it is always released at the end of a successful or failed transaction. Fixes: b5b5b320 (i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC) Reviewed-by: NKhalil Blaiech <kblaiech@nvidia.com> Signed-off-by: NAsmaa Mnebhi <asmaa@nvidia.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
Showing
想要评论请 注册 或 登录