]> www.infradead.org Git - nvme.git/commit
i2c: pnx: Fix potential deadlock warning from del_timer_sync() call in isr
authorPiotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
Fri, 28 Jun 2024 15:25:42 +0000 (17:25 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Wed, 3 Jul 2024 22:17:47 +0000 (00:17 +0200)
commitf63b94be6942ba82c55343e196bd09b53227618e
tree5f6640b0fc857d51711a0911ee8ea9a8f909833b
parent22a40d14b572deb80c0648557f4bd502d7e83826
i2c: pnx: Fix potential deadlock warning from del_timer_sync() call in isr

When del_timer_sync() is called in an interrupt context it throws a warning
because of potential deadlock. The timer is used only to exit from
wait_for_completion() after a timeout so replacing the call with
wait_for_completion_timeout() allows to remove the problematic timer and
its related functions altogether.

Fixes: 41561f28e76a ("i2c: New Philips PNX bus driver")
Signed-off-by: Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-pnx.c