aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorJensen Huang <[email protected]>2023-12-07 16:21:59 +0800
committerWolfram Sang <[email protected]>2023-12-19 18:23:01 +0100
commit19cde9c92b8d3b7ee555d0da3bcb0232d3a784f4 (patch)
treef96a1a9e1427b5d1cb35d1f4a6ef09a63216a9fa /lib/test-string_helpers.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 <[email protected]> Reviewed-by: Heiko Stuebner <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions