When Linux on A53 core goes to sleep, each call I2C_RTOS_Transfer() (I2C2) on M4 returns kStatus_I2C_Addr_Nak.
I guess that happens because Linux disables important clock.
drivers/clk/imx/clk-imx8mq.c:
How to reenable I2C2 clock? Or tell Linux to keep it enabled?
kernel branch is 5.4.47-2.2.0
Update:
forget that i2c2 nak issue. Main problem is that M4 stops working if I dont set Axi and Ahb root muxes to Osc25m. And if I do so - linux on A53 core either fails in many places or dont resume at all, even if I switch mux back to syspll just after triggering resume `MU_TriggerInterrupts(MUB, kMU_GenInt0InterruptTrigger);`