Skip to content

Commit

Permalink
input: qpnp-power-on: Fix WARN_ON() after pressing the power button
Browse files Browse the repository at this point in the history
Maybe kthreads aren't supposed to be IRQ safe, but at the very
least this gets rid of warning every time power button is up.

Fixes: OnePlusOSS/android_kernel_oneplus_sm8350#2
Change-Id: Ib2030f730d3fc79663a77ae4a2b56a8a08da3ad8
  • Loading branch information
luk1337 authored and elginsk8r committed Jun 18, 2022
1 parent 9105491 commit 8da1e46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/misc/qpnp-power-on.c
Original file line number Diff line number Diff line change
Expand Up @@ -2785,6 +2785,7 @@ static int qpnp_pon_probe(struct platform_device *pdev)
INIT_DELAYED_WORK(&pon->bark_work, bark_work_func);
#ifdef CONFIG_OEM_FORCE_DUMP
kthread_init_delayed_work(&pon->press_work, press_work_func);
pon->press_work.timer.flags |= TIMER_IRQSAFE;
pon->kworker = kthread_create_worker(0, "press_worker");
if (IS_ERR(pon->kworker))
return -ENOMEM;
Expand Down

0 comments on commit 8da1e46

Please sign in to comment.