Hi Kalle, On 08/13/2010 03:15 AM, Kalle Valo wrote: > Hi Denis, > > Denis Kenzior writes: > >> So this problem affects multiple modem families and I think we should >> solve it a bit better. What I'm proposing is to introduce a new >> function to include/sim.h. Something like: >> >> void ofono_sim_ready_notify(struct ofono_sim *sim); >> >> The way it should work is as follows: >> >> When oFono determines the SIM PIN is READY, it checks whether >> ofono_sim_ready_notify has been called. If it hasn't, then it stalls >> the initialization procedure (and calling post_sim) until >> ofono_sim_ready_notify is called. >> >> This way if the SIM is not PIN locked, the driver can call sim_inserted >> and sim_ready at once. If the PIN is locked, the driver can notify >> sim_ready later. > > Sounds good to me. Do you want to implement it? ;) I'm a bit busy right > now and it might take some time before I can find time for this. > I'm a bit swamped at the moment. I have added a TODO task for this feature so we don't forget. Regards, -Denis