linux/drivers/i3c
Jarkko Nikula 4e40642cdb i3c: mipi-i3c-hci: Fix race between bus cleanup and interrupt
If there is a transfer error during i3c_master_bus_init() and code goes
doing the bus cleanup in i3c_hci_bus_cleanup() there is possibility that
i3c_hci_irq_handler() is running in parallel with hci->io->cleanup()
which can be racy.

Prevent this by waiting there is no pending interrupt on other CPU
before doing the IO cleanup.

This was observed with ring headers where first transfer failed and
sometimes transfer error or ring transfer abort interrupt was coming
simultaneously with the bus cleanup path.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Link: https://lore.kernel.org/r/20230921055704.1087277-8-jarkko.nikula@linux.intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-09-25 23:35:14 +02:00
..
master i3c: mipi-i3c-hci: Fix race between bus cleanup and interrupt 2023-09-25 23:35:14 +02:00
device.c driver core: make struct device_type.uevent() take a const * 2023-01-27 13:45:36 +01:00
internals.h i3c: export SETDASA method 2022-12-11 21:25:58 +01:00
Kconfig
Makefile
master.c i3c: master: Inherit DMA masks and parameters from parent device 2023-09-25 23:35:14 +02:00