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

Commit 5a13059c authored by Linyu Yuan's avatar Linyu Yuan
Browse files

usb: pd: add usbpd_dbg() in pd_send_msg()



enable ipc log to check what message is sent.

Change-Id: I5e9d494fe219d8f52ea6ddf8419e4f7b97c356cf
Signed-off-by: default avatarLinyu Yuan <quic_linyyuan@quicinc.com>
parent 2753cc58
Loading
Loading
Loading
Loading
+2 −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)