[RAMEN9610-8952][COMMON] drivers: modem_if: Change CP reset sequence.
authorJiyoung Jeong <ji_0.jeong@samsung.com>
Wed, 28 Nov 2018 06:16:15 +0000 (15:16 +0900)
committerhskang <hs1218.kang@samsung.com>
Fri, 30 Nov 2018 08:56:57 +0000 (17:56 +0900)
before: ld->mode = LINK_MODE_OFFLINE next cp power off
after : cp power off next ld->mode = LINK_MODE_OFFLINE

Change-Id: I551be1d4e21887d7221907659d74f5d46b1e3070
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
drivers/misc/modem_if/modem_modemctl_device_sh333ap.c

index f650638facfc0bf8df06710284ba9db983652525..3eec88e320b4845b64af03c4a4294cb7eaf3f0a8 100644 (file)
@@ -427,9 +427,6 @@ static int sh333ap_reset(struct modem_ctl *mc)
        if (cp_online(mc))
                modem_notify_event(MODEM_EVENT_RESET);
 
-       mc->phone_state = STATE_OFFLINE;
-       ld->mode = LINK_MODE_OFFLINE;
-
        if (cal_cp_status() > 0) {
                mif_err("CP aleady Power on, try reset\n");
                mbox_set_interrupt(MCU_CP, mc->int_cp_wakeup);
@@ -439,6 +436,9 @@ static int sh333ap_reset(struct modem_ctl *mc)
                mbox_sw_reset(MCU_CP);
        }
 
+       mc->phone_state = STATE_OFFLINE;
+       ld->mode = LINK_MODE_OFFLINE;
+
        usleep_range(10000, 11000);
 
        mif_err("---\n");