From 6722b2b0ad9940bc7722ac611399fab96269cc21 Mon Sep 17 00:00:00 2001 From: a17671 Date: Tue, 27 Nov 2018 17:47:34 +0800 Subject: [PATCH] usbpd:Samsung usbpd too many detachment issue fix Samsung usbpd driver issue too many DETACH notification That cause adb connection problem after reboot Change-Id: I281e1d5570bf3a1d6d8b08dc07e3240eee4946a5 Signed-off-by: a17671 Reviewed-on: https://gerrit.mot.com/1274124 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/ccic/s2mu106-usbpd.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/ccic/s2mu106-usbpd.c b/drivers/ccic/s2mu106-usbpd.c index 28a791d81672..966108dca7cf 100644 --- a/drivers/ccic/s2mu106-usbpd.c +++ b/drivers/ccic/s2mu106-usbpd.c @@ -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); -- 2.20.1