Skip to contentSkip to conversation

qmimodem: Notify when SIM is initialized

PATCH Applied Nicolas Serafini 2 participants 2 messages Jan 25, 2019 – Feb 8, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qmimodem: Notify when SIM is initialized

Since the commit that introduced the notification API of a SIM inserted and initialized I can not unlock the SIM card on a WP7607 modem.

The previously mentioned commit: 54d56d763e40bc44c99a9b24aa0477bd373ea085

---
 drivers/qmimodem/sim-legacy.c | 1 +
 drivers/qmimodem/sim.c        | 1 +
 2 files changed, 2 insertions(+)
drivers/qmimodem/sim-legacy.c +1 -0
index af857693..30eb4613 100644
@@ -250,6 +250,7 @@ static void process_uim_state(struct ofono_sim *sim, uint8_t state)
 	switch (state) {
 	case QMI_DMS_UIM_STATE_INIT_COMPLETE:
 		ofono_sim_inserted_notify(sim, TRUE);
+		ofono_sim_initialized_notify(sim);
 		break;
 	case QMI_DMS_UIM_STATE_INIT_FAILED:
 	case QMI_DMS_UIM_STATE_NOT_PRESENT:
drivers/qmimodem/sim.c +1 -0
index 8edabb80..e91c6578 100644
@@ -791,6 +791,7 @@ static void get_card_status_cb(struct qmi_result *result, void *user_data)
 		break;
 	case 0x01:	/* Present */
 		ofono_sim_inserted_notify(sim, TRUE);
+		ofono_sim_initialized_notify(sim);
 		break;
 	}
 }
Signature · 1 line
2.20.1
#1 lore raw

Hi Nicolas,

Quoted 6 lines · Nicolas Serafini

Since the commit that introduced the notification API of a SIM inserted and initialized I can not unlock the SIM card on a WP7607 modem.

The previously mentioned commit: 54d56d763e40bc44c99a9b24aa0477bd373ea085

No Signed-off-by please. We do not use these.

Quoted 5 lines
---
  drivers/qmimodem/sim-legacy.c | 1 +
  drivers/qmimodem/sim.c        | 1 +
  2 files changed, 2 insertions(+)

Applied, thanks.

Regards,
-Denis