summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorChengfeng Ye <dg573847474@gmail.com>2023-07-07 11:49:41 +0300
committerWolfram Sang <wsa@kernel.org>2023-08-14 19:17:13 +0300
commit4caf4cb1eaed469742ef719f2cc024b1ec3fa9e6 (patch)
treea257bf88ff4a7a7b9e9653a1a7b142e551b66265 /Documentation
parent7d711966f94c189f38d9e2df05152a2336352ab8 (diff)
downloadlinux-4caf4cb1eaed469742ef719f2cc024b1ec3fa9e6.tar.xz
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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions