Chengfeng Ye
3259e2d878
i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue
...
commit 4caf4cb1eaed469742ef719f2cc024b1ec3fa9e6 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-30 16:27:15 +02:00
..
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-05 17:37:16 +02:00
2020-06-07 13:18:50 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-05 17:37:10 +02:00
2020-05-06 08:15:08 +02:00
2019-03-25 15:21:17 +01:00
2019-03-25 15:21:17 +01:00
2020-10-01 13:18:14 +02:00
2019-08-01 22:24:16 +02:00
2022-06-14 18:11:43 +02:00
2019-03-24 22:41:51 +01:00
2019-03-27 14:09:53 +01:00
2019-05-30 11:26:37 -07:00
2019-08-29 21:07:30 +02:00
2022-03-08 19:07:45 +01:00
2023-08-30 16:27:15 +02:00
2022-02-23 12:00:00 +01:00
2022-08-25 11:17:47 +02:00
2021-12-08 09:01:11 +01:00
2019-09-04 23:11:26 +02:00
2020-10-07 08:01:29 +02:00
2019-09-02 11:33:42 +01:00
2019-05-30 11:26:37 -07:00
2018-10-30 09:15:31 -07:00
2022-06-22 14:11:22 +02:00
2019-03-20 17:57:18 +01:00
2019-08-06 22:23:24 +02:00
2022-01-27 09:19:48 +01:00
2022-06-22 14:11:22 +02:00
2019-08-29 20:47:42 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:10 +02:00
2019-06-05 17:37:10 +02:00
2019-06-19 17:09:55 +02:00
2020-07-22 09:32:53 +02:00
2019-05-30 11:26:37 -07:00
2021-05-14 09:44:29 +02:00
2019-09-04 23:13:16 +02:00
2020-06-30 15:37:02 -04:00
2020-03-18 07:17:56 +01:00
2021-09-15 09:47:32 +02:00
2020-04-01 11:01:56 +02:00
2019-05-30 11:26:37 -07:00
2022-11-25 17:42:12 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-06-24 17:50:41 +02:00
2021-05-14 09:44:29 +02:00
2023-06-28 10:18:42 +02:00
2020-12-11 13:23:31 +01:00
2021-09-15 09:47:35 +02:00
2019-07-15 21:10:39 -07:00
2019-05-30 11:26:41 -07:00
2023-01-18 11:41:26 +01:00
2021-05-14 09:44:29 +02:00
2019-06-05 17:36:38 +02:00
2019-05-30 11:26:32 -07:00
2020-10-14 10:33:01 +02:00
2020-07-09 09:37:54 +02:00
2022-01-27 09:19:47 +01:00
2021-09-15 09:47:36 +02:00
2022-05-25 09:14:38 +02:00
2020-09-23 12:40:43 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2020-04-01 11:02:10 +02:00
2023-04-20 12:07:37 +02:00
2021-01-27 11:47:47 +01:00
2023-05-17 11:35:33 +02:00
2019-05-24 17:39:01 +02:00
2020-10-14 10:33:01 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2022-04-20 09:19:39 +02:00
2019-05-30 11:26:37 -07:00
2020-04-17 10:49:59 +02:00
2020-06-24 17:50:08 +02:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2023-01-18 11:41:25 +01:00
2020-06-24 17:50:24 +02:00
2021-06-10 13:37:16 +02:00
2020-12-11 13:23:33 +01:00
2021-03-17 17:03:41 +01:00
2019-09-28 20:44:12 +02:00
2023-06-09 10:29:01 +02:00
2021-06-30 08:47:50 -04:00
2021-09-15 09:47:35 +02:00
2019-06-05 17:37:10 +02:00
2021-05-14 09:44:30 +02:00
2021-06-03 08:59:08 +02:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:07 +02:00
2019-05-21 11:28:40 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2023-06-14 10:59:58 +02:00
2020-04-17 10:49:59 +02:00
2020-01-26 10:01:06 +01:00
2019-08-14 14:56:54 +02:00
2021-12-08 09:01:11 +01:00
2019-05-30 11:29:22 -07:00
2019-09-03 20:17:27 +02:00
2019-09-24 16:48:02 -07:00
2021-01-27 11:47:39 +01:00
2020-10-01 13:17:59 +02:00
2022-06-06 08:33:49 +02:00
2019-06-05 17:37:10 +02:00
2019-09-05 22:34:37 +02:00
2019-09-05 22:34:37 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:32 -07:00
2019-05-24 17:36:47 +02:00
2023-04-05 11:16:41 +02:00
2023-07-27 08:37:24 +02:00
2021-11-17 09:48:46 +01:00
2019-06-19 17:09:55 +02:00
2022-03-08 19:07:46 +01:00
2019-08-29 21:04:11 +02:00
2019-05-30 11:26:37 -07:00