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

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

Merge "usb: pd: Process request message as soon as it is received"

parents 2fe50fd4 7e6c1dfa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3686,8 +3686,10 @@ static void usbpd_sm(struct work_struct *w)
	spin_unlock_irqrestore(&pd->rx_lock, flags);

	/* requeue if there are any new/pending RX messages */
	if (!ret && !pd->sm_queued)
	if (!ret) {
		usbpd_dbg(&pd->dev, "Requeuing new/pending RX messages\n");
		kick_sm(pd, 0);
	}

	if (!pd->sm_queued)
		pm_relax(&pd->dev);