Chengfeng Ye
4caf4cb1ea
i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue
...
iproc_i2c_rd_reg() and iproc_i2c_wr_reg() are called from both
interrupt context (e.g. bcm_iproc_i2c_isr) and process context
(e.g. bcm_iproc_i2c_suspend). Therefore, interrupts should be
disabled to avoid potential deadlock. To prevent this scenario,
use spin_lock_irqsave().
Fixes: 9a1038728037 ("i2c: iproc: add NIC I2C support")
Signed-off-by: Chengfeng Ye <dg573847474@gmail.com>
Acked-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
2023-08-14 18:17:13 +02:00
..
2019-06-19 17:09:55 +02:00
2020-07-04 08:25:13 +02:00
2021-07-02 09:14:46 +02:00
2021-05-27 21:29:26 +02:00
2023-06-05 09:47:37 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2021-04-15 22:24:11 +02:00
2022-11-01 13:41:22 +01:00
2023-06-05 09:47:37 +02:00
2022-11-01 13:41:22 +01:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2022-05-14 15:41:16 +02:00
2020-11-03 21:34:40 +01:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-08-14 18:17:13 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2022-02-15 10:04:53 +01:00
2022-02-15 10:04:53 +01:00
2023-06-05 09:47:37 +02:00
2021-06-20 23:13:34 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-06-23 10:23:49 +02:00
2023-04-20 18:20:05 +08:00
2022-02-11 15:38:23 +01:00
2023-06-05 11:30:28 +02:00
2023-07-02 10:22:38 -07:00
2023-08-14 15:28:39 +02:00
2023-06-14 10:47:11 +02:00
2023-06-05 11:30:28 +02:00
2023-06-05 11:58:20 +02:00
2023-06-05 09:47:37 +02:00
2020-03-24 22:36:59 +01:00
2023-06-05 09:47:37 +02:00
2022-08-11 23:02:51 +02:00
2021-02-22 09:02:24 -08:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2020-07-24 21:31:33 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-08-14 15:39:24 +02:00
2023-06-23 12:08:22 +02:00
2019-05-30 11:26:37 -07:00
2023-06-05 10:13:48 +02:00
2023-06-07 14:11:23 +02:00
2019-05-30 11:26:32 -07:00
2022-08-11 23:02:51 +02:00
2023-07-02 10:22:38 -07:00
2023-08-14 15:21:49 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2019-07-15 21:10:39 -07:00
2023-06-05 09:47:37 +02:00
2022-12-07 21:27:08 +01:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-06-23 12:16:21 +02:00
2023-02-02 22:23:59 +01:00
2023-06-05 10:43:45 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-07-06 21:45:05 +02:00
2023-06-05 09:47:37 +02:00
2023-06-23 11:56:24 +02:00
2023-07-02 10:22:38 -07:00
2023-06-05 09:47:37 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2023-07-06 21:39:14 +02:00
2023-06-05 09:47:37 +02:00
2023-06-14 10:47:11 +02:00
2023-06-23 10:20:40 +02:00
2021-01-17 12:26:55 +01:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-06-23 12:19:34 +02:00
2022-08-11 23:02:51 +02:00
2022-11-12 21:30:16 +01:00
2022-11-12 21:30:16 +01:00
2022-02-15 10:28:34 +01:00
2023-06-23 11:56:34 +02:00
2021-01-26 07:42:27 +01:00
2023-06-05 09:47:37 +02:00
2022-11-01 13:09:33 +01:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2022-12-05 11:00:34 +01:00
2023-06-05 09:47:37 +02:00
2023-06-08 20:52:39 +02:00
2023-06-05 09:47:37 +02:00
2023-07-02 10:22:38 -07:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2021-06-24 22:08:00 +02:00
2023-06-05 12:03:35 +02:00
2023-06-05 09:47:37 +02:00
2023-07-06 22:25:06 -07:00
2023-06-07 14:12:11 +02:00
2023-06-05 09:47:37 +02:00
2020-07-04 08:25:13 +02:00
2023-06-05 09:47:37 +02:00
2019-05-30 11:26:37 -07:00
2022-10-20 23:09:10 +02:00
2019-05-30 11:26:37 -07:00
2023-06-07 12:29:58 +02:00
2023-06-05 09:47:37 +02:00
2020-09-21 11:45:43 +02:00
2019-08-14 14:56:54 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 09:47:37 +02:00
2023-08-14 17:52:58 +02:00
2023-06-05 09:47:37 +02:00
2022-08-11 23:02:51 +02:00
2023-06-05 09:47:37 +02:00
2023-08-14 15:35:45 +02:00
2022-05-21 13:41:28 +02:00
2023-06-07 14:11:23 +02:00
2023-06-23 12:22:34 +02:00
2023-06-23 12:22:41 +02:00
2023-06-14 10:40:09 +02:00
2019-05-30 11:26:37 -07:00
2020-07-23 22:04:08 +02:00
2023-06-05 09:47:37 +02:00
2022-01-14 18:50:52 -05:00
2023-06-14 10:41:17 +02:00
2023-06-05 09:47:37 +02:00
2023-07-06 21:32:50 +02:00
2023-06-05 09:47:37 +02:00
2023-06-05 12:03:35 +02:00
2023-02-17 23:18:20 +01:00
2023-06-05 09:47:37 +02:00