usbpd:Samsung usbpd too many detachment issue fix
authora17671 <a17671@motorola.com>
Tue, 27 Nov 2018 09:47:34 +0000 (17:47 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:23 +0000 (17:30 +0800)
Samsung usbpd driver issue too many DETACH notification
That cause adb connection problem after reboot

Change-Id: I281e1d5570bf3a1d6d8b08dc07e3240eee4946a5
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1274124
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/ccic/s2mu106-usbpd.c

index 28a791d81672c591aad25c6a58cef74b492ad12e..966108dca7cf9b6a626a96042950acfa0d624136 100644 (file)
@@ -2196,12 +2196,6 @@ static void s2mu106_usbpd_notify_detach(struct s2mu106_usbpd_data *pdic_data)
 {
        struct device *dev = pdic_data->dev;
 #if defined(CONFIG_IFCONN_NOTIFIER)
-       /* MUIC */
-       ifconn_event_work(pdic_data, IFCONN_NOTIFY_MUIC, IFCONN_NOTIFY_ID_ATTACH,
-                                                               IFCONN_NOTIFY_EVENT_DETACH, NULL);
-
-       ifconn_event_work(pdic_data, IFCONN_NOTIFY_MUIC, IFCONN_NOTIFY_ID_RID,
-                                                               IFCONN_NOTIFY_EVENT_DETACH, NULL);
 
        if (pdic_data->is_host > HOST_OFF || pdic_data->is_client > CLIENT_OFF) {
 #if defined(CONFIG_DUAL_ROLE_USB_INTF)
@@ -2231,9 +2225,6 @@ static void s2mu106_usbpd_notify_detach(struct s2mu106_usbpd_data *pdic_data)
                pdic_data->typec_power_role = TYPEC_SINK;
                pdic_data->typec_data_role = TYPEC_DEVICE;
 #endif
-               /* USB */
-               ifconn_event_work(pdic_data, IFCONN_NOTIFY_USB, IFCONN_NOTIFY_ID_USB,
-                                                                               IFCONN_NOTIFY_EVENT_DETACH, NULL);
        }
 #else
        usbpd_manager_plug_detach(dev, 1);