Skip to content
Commit 3d32327f authored by Piotr Wojtaszczyk's avatar Piotr Wojtaszczyk Committed by Greg Kroah-Hartman
Browse files

i2c: pnx: Fix potential deadlock warning from del_timer_sync() call in isr

[ Upstream commit f63b94be ]

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: 41561f28

 ("i2c: New Philips PNX bus driver")
Signed-off-by: default avatarPiotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7069aa6d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment