I2C not working after waking up from suspend by touchscreen interrupt

No idea, hopefully someone from Toradex could help us. I haven’t worked with this problem because there is many other on my desk, and I’m hoping to see solution for this. In my case update of edt driver was not solution therefore I assume this patching work is just wasting of time.

Meanwhile, while waiting Toradex support, you should clarify why all those ‘err -22’ are there after patching. Maybe you can first try to compile with simple patch file which actually does nothing but add some debug message into edt driver.

Br Vesa

@veskola Can you please tell me if I understood you correctly? I have made a simple patch by adding a printk instruction in the function edt_ft5x06_ts_identify. I have attached the patch file.

Yes, and now if you apply this patch and still see those ‘err -22’ errors it means something went wrong with kernel compilation.

BTW: I’m using Linux version 5.4.154-5.4.0-devel+git.f92dfe36065c , probably edt_ft5x06 from mainline should be ok also with 5.2.xxx version

@veskola I have updated the kernel with the one patched with the simple patch and I get the same “err -22” messages.

What could be the problem? Is the kernel (zImage) update solution wrong and I need to reinstall the entire image?

I’m not from Toradex, probably better to ask question related to zImage update problem in separate thread.

~1y ago I tried to follow Toradex instructions how to update iMX8MM but not succeeded, since that day I have update kernel and u-boot with Yocto build.

I have assumed with iMX6 it should be doable task.

@veskola I managed to apply the patch. It was a problem with the Yocto build (you can see this post).

@smagrian I applied the patch (created using the entire file), but the result is the same. The only difference is that when waking up from sleep I get 3 error messages (Unable to fetch data, error: -13) instead of 5 (as shown in my first post).

[  167.215901] PM: suspend entry (deep)
[  167.243174] Filesystems sync: 0.027 seconds
[  167.319858] Freezing user space processes ... (elapsed 0.005 seconds) done.
[  167.325077] OOM killer disabled.
[  167.325091] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  167.332023] mwifiex_sdio mmc1:0001:1: info: successfully disconnected from 28:ee:52:33:87:6f: reason code 3
[  167.335490] mwifiex_sdio mmc1:0001:1: None of the WOWLAN triggers enabled
[  167.440770] PM: suspend devices took 0.110 seconds
[  167.446311] Disabling non-boot CPUs ...
[  167.449487] imx-i2c 21a0000.i2c: Unbalanced pm_runtime_enable!
[  167.458815] edt_ft5x06 0-0038: Unable to fetch data, error: -13
[  167.471181] edt_ft5x06 0-0038: Unable to fetch data, error: -13
[  167.487238] edt_ft5x06 0-0038: Unable to fetch data, error: -13
[  167.625183] rtc-pcf8563 0-0051: pcf8563_read_block_data: read error
[  167.697134] PM: resume devices took 0.250 seconds
[  167.697159] OOM killer enabled.
[  167.697167] Restarting tasks ... done.
[  167.729568] PM: suspend exit

What should I try to resolve this problem?