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>
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);
mbox_sw_reset(MCU_CP);
}
+ mc->phone_state = STATE_OFFLINE;
+ ld->mode = LINK_MODE_OFFLINE;
+
usleep_range(10000, 11000);
mif_err("---\n");