Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d560212d authored by Vatsal Bucha's avatar Vatsal Bucha
Browse files

fsa4480: Fix headset not detected during system suspend



Headset is not detected after system goes into suspend
as sufficient delay is not given after pm_stay_awake
for system to wakeup. Implementing freezable workqeueue
after pm_stay_awake resolves the issue.

Change-Id: Ia104a1577004a4242470f3b4150be23698fc92b1
Signed-off-by: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent 766f56fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ static int fsa4480_usbc_event_changed(struct notifier_block *nb,
		dev_dbg(dev, "%s: queueing usbc_analog_work\n",
			__func__);
		pm_stay_awake(fsa_priv->dev);
		schedule_work(&fsa_priv->usbc_analog_work);
		queue_work(system_freezable_wq, &fsa_priv->usbc_analog_work);
		break;
	default:
		break;