MLK-17416 imx8: sim: add usleep_range() before reading SPDP Bit
authorGao Pan <pandy.gao@nxp.com>
Fri, 19 Jan 2018 03:12:15 +0000 (11:12 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:53:09 +0000 (14:53 -0500)
commit450b60c0bb0dc10a8f510353182e91099568b15f
tree3dfd2191d58a16e14e02e2c68995343f1116fb32
parent875f3aad77bc16b97cc96f6ef8757addb124458c
MLK-17416 imx8: sim: add usleep_range() before reading SPDP Bit

Card Presence Detect Status Bit SPDP in EMV_SIM_PCSR is
synchronized by two posedge of low_ref_clk which is 32KHz.

So there should be 1.5 low_ref_clk cycles(about 90us) before
reading SPDP Bit.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
drivers/mxc/sim/imx_emvsim.c