]> Git Repo - linux.git/commit
i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue
authorChengfeng Ye <[email protected]>
Fri, 7 Jul 2023 08:49:41 +0000 (08:49 +0000)
committerWolfram Sang <[email protected]>
Mon, 14 Aug 2023 16:17:13 +0000 (18:17 +0200)
commit4caf4cb1eaed469742ef719f2cc024b1ec3fa9e6
treea257bf88ff4a7a7b9e9653a1a7b142e551b66265
parent7d711966f94c189f38d9e2df05152a2336352ab8
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 <[email protected]>
Acked-by: Ray Jui <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/busses/i2c-bcm-iproc.c
This page took 0.059199 seconds and 4 git commands to generate.