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

Commit c2e80749 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 9bd352ef 0c110427
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3623,8 +3623,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);