History

mfd: stmfx: Disable IRQ in suspend to avoid spurious interrupt

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.

Amelie Delaunay committed 6 years ago

Commit 97eda5d1 parent 60c2c4b2 files · +7 −0Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/mfd/stmfx.h+1−0
@@ -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;