summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-i801.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2021-08-23 23:41:45 +0200
committerWolfram Sang <wsa@kernel.org>2021-09-14 12:22:54 +0200
commit294b29f15469e90893c2b72a738a962ee02a12eb (patch)
treeafa534f6aa9756dfb1979eea5456b17a531f5835 /drivers/i2c/busses/i2c-i801.c
parentd12e4bbb190b9edb47b31511e624f2a90f35f443 (diff)
i2c: xiic: Fix RX IRQ busy check
In case the XIIC does TX/RX transfer, make sure no other kernel thread can start another TX transfer at the same time. This could happen since the driver only checks tx_msg for being non-NULL and returns -EBUSY in that case, however it is necessary to check also rx_msg for the same. Signed-off-by: Marek Vasut <marex@denx.de> Acked-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-i801.c')
0 files changed, 0 insertions, 0 deletions