Created attachment 277943 [details]
Since v4.18, SOiX is working for my Meegopad T02 but when waking up, the irq for the power button is behaving stangely.
1/normal behaviour :
power button press : 1 irq at axp20x-pek-dbf
power button release : 1 irq at axp20x-pek-dbr
2/after wakeup by pressing power button:
axp20x-pek-dbr increases by 1
axp20x-pek-dbf doesn't change
3/after freeze :
power button press : 5000 irq/s at axp20x-pek-dbr, 0 irq at axp20x-pek-dbf
power button release : nothing
After 3, if I try to freeze, it wakes up immediatly.
To stop the irq firing continuously I can unload/reload axp20x_pek module or clear the axp20x-pek-dbr interupt with i2cset.
Then I can freeze and when it wakes up it is in the 2/ state.
Note, that a long press (16s) to the power button halts the Meegopad T02, this behavior is not affected by the freeze.
Created attachment 277945 [details]
Created attachment 277947 [details]
Created attachment 277949 [details]
Created attachment 277951 [details]
Created attachment 277953 [details]
Created attachment 277955 [details]
Created attachment 277957 [details]
Created attachment 277959 [details]
Created attachment 277961 [details]
Created attachment 277963 [details]
Created attachment 277965 [details]
Created attachment 277967 [details]
Created attachment 277969 [details]
Created attachment 277971 [details]
Created attachment 277973 [details]
Created attachment 277975 [details]
Created attachment 278197 [details]
[PATCH] i2c: designware: Re-init controllers with pm_disabled set on resume
Thank you for bringing this to our attention, I believe that this patch fixes this.
Thank you for the patch, I've just tested it on top of v4.18 in cold boot and reboot conditions doing several 'freeze'/wake up in a row and it fixes the problem.