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

This reverts commit 1bed1828a2.

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: Linyu Yuan <linyyuan@codeaurora.org>
This commit is contained in:
Linyu Yuan 2020-11-04 09:37:52 +08:00
commit 175fc78290

View file

@ -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;