<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello guys,<div><br></div><div>attached is a patch that fixes a few issues regarding SIM reader in Motorola phones (tested on C123), description:</div><div><br></div><div><ul class="MailOutline"><li>if there’s a lot of reading from SIM it happens a FIFO gets full, IMHO the right way is to read until the FIFO is empty (while-loop added)</li><li>FETCH APDU has to be handled in the same way as GET RESPONSE (added)</li><li>once REG_SIM_IT_SIM_NATR is triggered it should set the rxDoneFlag to 1 because otherwise there’s trouble recognising NO SIM state on L1 if SIM isn’t present</li><li>in calypso_sim_powerup() and calypso_sim_reset() should set state to IDLE and put sim_len to 0 because if you do powerdown/powerup the state machine gets messed up</li><li>unsetting CONFBYPASS should make the CONFSVCCLEV and CONFSRSTLEV irrelevant but it doesn’t, calypso_sim_powerdown() fixed based on calypso spec</li><li>both calypso_sim_powerup() and calypso_sim_powerup() now return ATR as it should be when you poweron/reset the card</li><li>some minor debug messages fixed to keep all the messages consistent</li></ul><div><br></div></div><div>Patch is apply-able on the current master.</div><div><br></div><div>Cheers!</div><div>Lukas</div><div><br></div><div></div></body></html>