imx7 Sim driver dead after suspend

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx7 Sim driver dead after suspend

265 Views
eoin_oconnell
Contributor I

Hi all,

 

I am using the SIM card driver in the kernel in my imx7 from Toradex. Until now it works perfectly until I do a suspend

I have noticed that the kernel driver stops functioning correctly after the device exits suspend mode.

After exiting suspend mode the SIM card signals are no longer visible, no more SIM clock and reset is low

 

I try this after exiting suspend:

 

i=ioctl(sim_fd, SIM_IOCTL_COLD_RESET);
if (i >= 0)
{
    printf("Cold Reset Pass\n");
    usleep(100000);
    i=ioctl(sim_fd, SIM_IOCTL_GET_ATR, pAtr_data);

 

The final ioctl fails and I also see nothing on the SIM bus.

 

Any ideas about what could be wrong with the imx_sim.c driver?

0 Kudos
0 Replies