pwm: rockchip: State of pwm clock should synchronize with pwm enabled state
[firefly-linux-kernel-4.4.55.git] / drivers / pinctrl / pinctrl-single.c
index 23b6b8c29a99eb9a65b7c2bd11e02da7356afc97..73d8d47ea465a93902fb5702fbf84d6f7afaca5e 100644 (file)
@@ -1576,6 +1576,9 @@ static inline void pcs_irq_set(struct pcs_soc_data *pcs_soc,
                else
                        mask &= ~soc_mask;
                pcs->write(mask, pcswi->reg);
+
+               /* flush posted write */
+               mask = pcs->read(pcswi->reg);
                raw_spin_unlock(&pcs->lock);
        }