[RAMEN9610-12641][COMMON][9610] ccic : fix ccic for turbo charger
authorKim Taejeong <tj.kim@samsung.com>
Wed, 27 Feb 2019 06:09:04 +0000 (15:09 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:19 +0000 (20:23 +0300)
Cause :
The VBUS Short check function was removed for usbpd compliance,
and ID_TA notification that was sent to MUIC after vbus short check
was completed does not come anymore ,
The flag that was checked before the muic TURBO TA HVDCP recognition was proceeded was not set.

CounterMeasure :
Send ID_TA to muic when SINK attach.

Change-Id: I150e15a9ee9b46fc16fb0487f39a98775225da05
Signed-off-by: Junhan Bae <junan84.bae@samsung.com>
drivers/ccic/s2mu106-usbpd.c

index 4784cd7c6bcb1708d784d9af251da89d63e32899..71cd0b22d1f76512b6491db0280bdfb9a1a97f83 100644 (file)
@@ -2317,6 +2317,8 @@ static int s2mu106_check_port_detect(struct s2mu106_usbpd_data *pdic_data)
                /* muic */
                ifconn_event_work(pdic_data, IFCONN_NOTIFY_MUIC,
                                IFCONN_NOTIFY_ID_ATTACH, IFCONN_NOTIFY_EVENT_ATTACH, NULL);
+               ifconn_event_work(pdic_data, IFCONN_NOTIFY_MUIC,
+                               IFCONN_NOTIFY_ID_TA, IFCONN_NOTIFY_EVENT_ATTACH, NULL);
                if (!(pdic_data->rid == REG_RID_523K || pdic_data->rid == REG_RID_619K)) {
                        if (pdic_data->is_client == CLIENT_OFF && pdic_data->is_host == HOST_OFF) {
                                /* usb */