<div dir="ltr">Thanks Dan, that's what I thought.<br><br>I understand the problem for shipping this with 1.6, so 1.6.2 for me is fine.<br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 12 May 2016 at 18:17 Dan Williams <<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 2016-05-04 at 17:21 +0200, Carlo Lobrano wrote:<br>
> Hi,<br>
><br>
> I observed a problem in getting the number of unlock retries of some<br>
> SIMs soon after the unlock (the SIM in not completely ready I assume)<br>
> and I saw that some plug-ins inserted a little delay in<br>
> modem_after_sim_unlock to cope with it, but that wouldn't have any<br>
> effect in my case.<br>
><br>
> I could delay directly the AT command I use (+CPIN), but that would<br>
> be<br>
> done every time, not only when the SIM is just unlocked, so I was<br>
> wondering why in mm-iface-modem.c:update_lock_info_context_step<br>
> function the state machine processes load_unlock_retries before<br>
> modem_after_sim_unlock. Is there any known issue in executing<br>
> after_sim_unlock step before load_unlock_retries?<br>
<br>
I took a quick look at the code, and I don't think there'd be a problem<br>
with moving UPDATE_LOCK_INFO_CONTEXT_STEP_RETRIES<br>
after UPDATE_LOCK_INFO_CONTEXT_STEP_AFTER_UNLOCK.  If the SIM is still<br>
locked, then AFTER_UNLOCK won't fire (eg, no effect), and if the modem<br>
is unlocked, then it should be ready by the time it's done.<br>
<br>
Given the impact I don't think we want to land this for 1.6, but right<br>
after and then potentially release as part of 1.6.2?<br>
<br>
Dan<br>
</blockquote></div>