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

Commit 175fc782 authored by Linyu Yuan's avatar Linyu Yuan
Browse files

Revert "usb: typec: ucsi: check partner changed flag during notification"



This reverts commit 1bed1828.

When boot up without USB cable, UCSI_GET_CONNECTOR_STATUS command
will return all zero message,

Example UCSI IPC log:
40.319381997:   sync_write: CONTROL: 12 00 01 00 00 00 00 00
40.319507987:   read: CCI: 00 09 00 80
40.319620018:   read: MSG_IN: 00 00 00 00 00 00 00 00 00

the change will block this message notify client, so revert it.

Change-Id: Ic0f575f1676a03c4ef88ff92a7a38bc2ac74050d
Signed-off-by: default avatarLinyu Yuan <linyyuan@codeaurora.org>
parent 06a7c1db
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -370,13 +370,6 @@ static void ucsi_qti_notify(struct ucsi_dev *udev, unsigned int offset,
	mutex_unlock(&udev->notify_lock);

	if (cmd_requested && offset == UCSI_MESSAGE_IN) {
		/*
		 * when Connector Partner Type or Flags changes,
		 * Connector Partner Changed bit shall be set.
		 */
		if (!(status->change & UCSI_CONSTAT_PARTNER_CHANGE))
			return;

		cancel_work_sync(&udev->notify_work);

		udev->constat_info.partner_usb = false;