Skip to content

Commit 0dda096

Browse files
FDESTMMarc Zyngier
authored andcommitted
irqchip/stm32: Don't clear rising/falling config registers at init
Falling and rising configuration and status registers are not banked. As they are shared with M4 co-processor, they should not be cleared at probe time, else M4 co-processor configuration will be lost. Fixes: f9fc174 ("irqchip/stm32: Add host and driver data structures") Signed-off-by: Loic Pallardy <loic.pallardy@st.com> Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent 24105bf commit 0dda096

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/irqchip/irq-stm32-exti.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -735,11 +735,6 @@ stm32_exti_chip_data *stm32_exti_chip_init(struct stm32_exti_host_data *h_data,
735735
*/
736736
writel_relaxed(0, base + stm32_bank->imr_ofst);
737737
writel_relaxed(0, base + stm32_bank->emr_ofst);
738-
writel_relaxed(0, base + stm32_bank->rtsr_ofst);
739-
writel_relaxed(0, base + stm32_bank->ftsr_ofst);
740-
writel_relaxed(~0UL, base + stm32_bank->rpr_ofst);
741-
if (stm32_bank->fpr_ofst != UNDEF_REG)
742-
writel_relaxed(~0UL, base + stm32_bank->fpr_ofst);
743738

744739
pr_info("%pOF: bank%d\n", h_data->node, bank_idx);
745740

0 commit comments

Comments
 (0)