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 | struct device *dev; | 109 | struct device *dev; |
| 110 | struct regmap *map; | 110 | struct regmap *map; |
| 111 | struct regulator *vdd; | 111 | struct regulator *vdd; |
| 112 | int irq; | ||
| 112 | struct irq_domain *irq_domain; | 113 | struct irq_domain *irq_domain; |
| 113 | struct mutex lock; /* IRQ bus lock */ | 114 | struct mutex lock; /* IRQ bus lock */ |
| 114 | u8 irq_src; | 115 | u8 irq_src; |