All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC sim-ready-v1 PATCH 0/3] ofono_sim_ready_notify
@ 2010-10-18 15:40 Pekka.Pessi
  2010-10-18 15:40 ` [RFC sim-ready-v1 PATCH 1/3] sim: add ofono_sim_ready_notify Pekka.Pessi
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Pekka.Pessi @ 2010-10-18 15:40 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]

Hi all,

Here is my 2nd stab at the ofono_sim_ready_notify().

Main difference from Denis's and Kristen's patch is that the modem
driver now has a way to indicate that is ready or not: if SIM is not
ready, the ofono_sim_driver indicates that with query_passwd_state
callback returning OFONO_SIM_PASSWORD_INVALID. A separate enum and a
string value for PinRequired property for that case would probably be
nice, however, it is not very clear to me how the modems handle the
transition from PIN-locked SIM to SIM-locked modem.

After the driver determines that the SIM is ready, it calls
ofono_sim_ready_notify().

The patches has now been tested with the PIN and PUK codes with mbm and
the new isimodem sim driver by Jukka Saunamaki. IFX seems to be
identical in PIN and PUK cases, too.

The isimodem driver demonstrates also the case where PIN is disabled but
SIM is not ready yet when oFono tries to initialize the modem. The
isimodem driver tries to read some CPHS information in order to
determine if the modem is ready. I'm not sure how that kind of probing
should be implemented in atmodem driver.

--Pekka


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-10-22 18:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-18 15:40 [RFC sim-ready-v1 PATCH 0/3] ofono_sim_ready_notify Pekka.Pessi
2010-10-18 15:40 ` [RFC sim-ready-v1 PATCH 1/3] sim: add ofono_sim_ready_notify Pekka.Pessi
2010-10-18 15:40   ` [RFC sim-ready-v1 PATCH 2/3] isimodem/sim: added PIN and SIM state handling Pekka.Pessi
2010-10-18 15:40     ` [RFC sim-ready-v1 PATCH 3/3] atmodem/sim: use ofono_sim_ready_notify Pekka.Pessi
2010-10-22 18:55       ` Denis Kenzior
2010-10-19  9:43 ` [RFC sim-ready-v1 PATCH 0/3] ofono_sim_ready_notify Marcel Holtmann
2010-10-19  9:56   ` Pekka Pessi
2010-10-22 18:54 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.