summaryrefslogtreecommitdiff
path: root/lib/fdt_wip.c
diff options
context:
space:
mode:
authorJensen Huang <jensenhuang@friendlyarm.com>2023-12-07 16:21:59 +0800
committerWolfram Sang <wsa@kernel.org>2023-12-19 18:23:01 +0100
commit19cde9c92b8d3b7ee555d0da3bcb0232d3a784f4 (patch)
treef96a1a9e1427b5d1cb35d1f4a6ef09a63216a9fa /lib/fdt_wip.c
parent043465b66506e8c647cdd38a2db1f2ee0f369a1b (diff)
i2c: rk3x: fix potential spinlock recursion on poll
Possible deadlock scenario (on reboot): rk3x_i2c_xfer_common(polling) -> rk3x_i2c_wait_xfer_poll() -> rk3x_i2c_irq(0, i2c); --> spin_lock(&i2c->lock); ... <rk3x i2c interrupt> -> rk3x_i2c_irq(0, i2c); --> spin_lock(&i2c->lock); (deadlock here) Store the IRQ number and disable/enable it around the polling transfer. This patch has been tested on NanoPC-T4. Signed-off-by: Jensen Huang <jensenhuang@friendlyarm.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'lib/fdt_wip.c')
0 files changed, 0 insertions, 0 deletions