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

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

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

parents e4addecb 43d20cdd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -771,6 +771,8 @@ static int pd_send_msg(struct usbpd *pd, u8 msg_type, const u32 *data,
	}
	spin_unlock_irqrestore(&pd->rx_lock, flags);

	usbpd_dbg(&pd->dev, "send msg %s\n",
			msg_to_string(msg_type, num_data, false));
	ret = pd_phy_write(hdr, (u8 *)data, num_data * sizeof(u32), sop);
	if (ret) {
		if (pd->pd_connected)
@@ -959,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);
	}
}