When STMFX supply is stopped, spurious interrupt can occur. To avoid that, disable the interrupt in suspend before disabling the regulator and re-enable it at the end of resume.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -109,6 +109,7 @@ struct stmfx { · 108 unmodified lines | ||
| 109 | 109 | struct device *dev; |
| 110 | 110 | struct regmap *map; |
| 111 | 111 | struct regulator *vdd; |
| 112 | + int irq; | |
| 112 | 113 | struct irq_domain *irq_domain; |
| 113 | 114 | struct mutex lock; /* IRQ bus lock */ |
| 114 | 115 | u8 irq_src; |