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

Commit f2489ed4 authored by Sujeev Dias's avatar Sujeev Dias Committed by Gerrit - the friendly Code Review server
Browse files

mhi: dev: uci: trigger a wake-up event if MHI device is wake capable



If MHI device is wake capable, we need to request a wake up event
to abort any pending system suspends so user space clients are
able to process incoming data.

CRs-Fixed: 2348867
Change-Id: Idfba240c8b7c5508a9dc8487d06fe121789164b3
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent fde9229a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -633,6 +633,9 @@ static void mhi_dl_xfer_cb(struct mhi_device *mhi_dev,
	list_add_tail(&buf->node, &uci_chan->pending);
	spin_unlock_irqrestore(&uci_chan->lock, flags);

	if (mhi_dev->dev.power.wakeup)
		__pm_wakeup_event(mhi_dev->dev.power.wakeup, 0);

	wake_up(&uci_chan->wq);
}