i2c: xiic: Fix broken locking on tx_msg
authorMarek Vasut <marex@denx.de>
Mon, 23 Aug 2021 21:41:40 +0000 (23:41 +0200)
committerWolfram Sang <wsa@kernel.org>
Tue, 14 Sep 2021 10:22:41 +0000 (12:22 +0200)
commitc119e7d00c916881913011e6f4c6ac349a41e4e2
tree811e0e6738a4eff03a34e6cabc802ca04e20d7f5
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
i2c: xiic: Fix broken locking on tx_msg

The tx_msg is set from multiple places, sometimes without locking,
which fall apart on any SMP system. Only ever access tx_msg inside
the driver mutex.

Signed-off-by: Marek Vasut <marex@denx.de>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-xiic.c