Hi all,
Here is my stab at the ofono_sim_ready_notify().
If SIM is not ready, the ofono_sim_driver indicates that with
query_passwd_state callback returning OFONO_SIM_PASSWORD_INVALID.
After the driver determines that the SIM is ready, it calls
ofono_sim_ready_notify().
The patches has been tested with the mbm and the new isimodem sim driver
by Jukka Saunamaki. The isimodem driver demonstrates also the case where
PIN is disabled and SIM gets eventually ready.
--Pekka