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

Commit 22367921 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

parents e7c9bb08 f2489ed4
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -138,6 +138,12 @@ mhi channel node properties:
	driver probe is complete. This should be only set true if initial
	driver probe is complete. This should be only set true if initial
	handshake iniaitead by external modem.
	handshake iniaitead by external modem.


- mhi,wake-capable
  Usage: optional
  Value type: <bool>
  Definition: Time sensitive data channel, host should process all pending data
	before system suspend.

==========================
==========================
mhi event node properties:
mhi event node properties:
==========================
==========================
+3 −0
Original line number Original line 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);
	list_add_tail(&buf->node, &uci_chan->pending);
	spin_unlock_irqrestore(&uci_chan->lock, flags);
	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);
	wake_up(&uci_chan->wq);
}
}