From 175fc7829049e39129a27994560020c6356832f8 Mon Sep 17 00:00:00 2001 From: Linyu Yuan Date: Wed, 4 Nov 2020 09:37:52 +0800 Subject: [PATCH] Revert "usb: typec: ucsi: check partner changed flag during notification" This reverts commit 1bed1828a2130b18b4d57c7f7958f8ae4e14a9e8. 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 --- drivers/usb/typec/ucsi/ucsi_glink.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi_glink.c b/drivers/usb/typec/ucsi/ucsi_glink.c index 13a1b73dd156..4c9343aa7333 100644 --- a/drivers/usb/typec/ucsi/ucsi_glink.c +++ b/drivers/usb/typec/ucsi/ucsi_glink.c @@ -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;