All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Improve support for card hot-swapping
@ 2015-06-18 11:46 Tommi Kenakkala
  2015-06-18 11:46 ` [PATCH 1/2] [sim] Emit LockedPins after pin_type is queried Tommi Kenakkala
  2015-06-18 11:46 ` [PATCH 2/2] [sim] Reset pin_type on card remove Tommi Kenakkala
  0 siblings, 2 replies; 7+ messages in thread
From: Tommi Kenakkala @ 2015-06-18 11:46 UTC (permalink / raw)
  To: ofono

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

Events after inserting a card are as follows. Problem is
async steps 2 and 3+4 complete independently so client can't
rely on Present, CardIdentifier or other properties to know 
when PinRequired and LockedPins are updated.
1. ofono_sim_inserted_notify > emit "Present" ==> sim_initialize
2. sim_iccid_read_cb > emit "CardIdentifier"
3. sim_efpl_read_cb > __ofono_sim_recheck_pin
4. sim_pin_query_cb
    ==> "PinRequired" emitted at startup but not on pin-enabled hotswaps
    ==> "LockedPins" never emitted 

These patches improve the situation.

Tommi Kenakkala (2):
  [sim] Emit LockedPins after pin_type is queried
  [sim] Reset pin_type on card remove

 src/sim.c |   27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

-- 
1.7.9.5


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

end of thread, other threads:[~2015-06-22 13:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-18 11:46 [PATCH 0/2] Improve support for card hot-swapping Tommi Kenakkala
2015-06-18 11:46 ` [PATCH 1/2] [sim] Emit LockedPins after pin_type is queried Tommi Kenakkala
2015-06-18  4:07   ` Denis Kenzior
2015-06-22 13:37     ` [PATCH 2/2] " Tommi Kenakkala
2015-06-18 19:59       ` Denis Kenzior
2015-06-18 11:46 ` [PATCH 2/2] [sim] Reset pin_type on card remove Tommi Kenakkala
2015-06-18  4:09   ` 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.