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

Commit 43d20cdd authored by Linyu Yuan's avatar Linyu Yuan Committed by Gerrit - the friendly Code Review server
Browse files

usb: pd: always log when state machine work is queued



output a message in kick_sm() when delay time is 0.

Change-Id: Id84f7a49ccd38d24fe561b11e5b25b374415deb7
Signed-off-by: default avatarLinyu Yuan <quic_linyyuan@quicinc.com>
parent 5a13059c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -961,6 +961,7 @@ static void kick_sm(struct usbpd *pd, int ms)
		usbpd_dbg(&pd->dev, "delay %d ms", ms);
		hrtimer_start(&pd->timer, ms_to_ktime(ms), HRTIMER_MODE_REL);
	} else {
		usbpd_dbg(&pd->dev, "queue state work\n");
		queue_work(pd->wq, &pd->sm_work);
	}
}