char *buff;
void __user *user_buff;
unsigned long size;
- int val;
switch (cmd) {
case IOCTL_MODEM_ON:
if (mc->ops.modem_on) {
mif_err("%s: IOCTL_MODEM_ON\n", iod->name);
- if (arg) {
- user_buff = (void __user *)arg;
-
- if (copy_from_user(&val, user_buff, sizeof(val)))
- return -EFAULT;
-
- mc->sim_slot_cnt = val;
- }
return mc->ops.modem_on(mc);
}
mif_err("%s: !mc->ops.modem_on\n", iod->name);
mif_err("get_hw_rev() ERROR\n");
}
- if (mc->sim_slot_cnt > 0) {
- mbox_update_value(MCU_CP, mbx_ap_status, mc->sim_slot_cnt,
- sbi_ds_det_mask, sbi_ds_det_pos);
- mif_err("System sim config: %d\n", mc->sim_slot_cnt);
+ ds_det = get_sim_socket_detection(np);
+ if (ds_det >= 0) {
+ mbox_update_value(MCU_CP, mbx_ap_status, ds_det,
+ sbi_ds_det_mask, sbi_ds_det_pos);
} else {
- ds_det = get_sim_socket_detection(np);
-
- if (ds_det >= 0) {
- mbox_update_value(MCU_CP, mbx_ap_status, ds_det,
- sbi_ds_det_mask, sbi_ds_det_pos);
- mif_err("SIM Socket Detection %d\n", ds_det);
- } else {
- mif_err("get_sim_socket_detection() ERROR\n");
- }
+ mif_err("get_sim_socket_detection() ERROR\n");
}
mif_err("System Revision %d\n", sys_rev);
+ mif_err("SIM Socket Detection %d\n", ds_det);
spin_unlock_irqrestore(&mc->ap_status_lock, flags);
unsigned int gpio_reset_req_n;
unsigned int gpio_cp_reset;
- /* for checking number of usim slot by rild*/
- int sim_slot_cnt;
-
/* for broadcasting AP's PM state (active or sleep) */
unsigned int gpio_pda_active;
unsigned int mbx_pda_active;