Skip to content

Commit 6a77623

Browse files
FDESTMMarc Zyngier
authored andcommitted
irqchip/stm32: Don't set rising configuration registers at init
The rising configuration status register (rtsr) is not banked. As it is shared with the co-processor, it should not be written at probe time, else the co-processor configuration will be lost. Fixes: f9fc174 ("irqchip/stm32: Add host and driver data structures") Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent 0dda096 commit 6a77623

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
@@ -716,7 +716,6 @@ stm32_exti_chip_data *stm32_exti_chip_init(struct stm32_exti_host_data *h_data,
716716
const struct stm32_exti_bank *stm32_bank;
717717
struct stm32_exti_chip_data *chip_data;
718718
void __iomem *base = h_data->base;
719-
u32 irqs_mask;
720719

721720
stm32_bank = h_data->drv_data->exti_banks[bank_idx];
722721
chip_data = &h_data->chips_data[bank_idx];
@@ -725,10 +724,6 @@ stm32_exti_chip_data *stm32_exti_chip_init(struct stm32_exti_host_data *h_data,
725724

726725
raw_spin_lock_init(&chip_data->rlock);
727726

728-
/* Determine number of irqs supported */
729-
writel_relaxed(~0UL, base + stm32_bank->rtsr_ofst);
730-
irqs_mask = readl_relaxed(base + stm32_bank->rtsr_ofst);
731-
732727
/*
733728
* This IP has no reset, so after hot reboot we should
734729
* clear registers to avoid residue

0 commit comments

Comments
 (0)