Re: [PATCH v2 1/2] irqchip: stm32: don't clear rising/falling config registers at init

From: Marc Zyngier
Date: Thu Mar 07 2019 - 13:11:47 EST


On 07/03/2019 17:36, Fabien Dessenne wrote:
> 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.
>
> Signed-off-by: Loic Pallardy <loic.pallardy@xxxxxx>
> Signed-off-by: Fabien Dessenne <fabien.dessenne@xxxxxx>
> ---
> drivers/irqchip/irq-stm32-exti.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
> index 6edfd4b..dab37fb 100644
> --- a/drivers/irqchip/irq-stm32-exti.c
> +++ b/drivers/irqchip/irq-stm32-exti.c
> @@ -735,11 +735,6 @@ stm32_exti_chip_data *stm32_exti_chip_init(struct stm32_exti_host_data *h_data,
> */
> writel_relaxed(0, base + stm32_bank->imr_ofst);
> writel_relaxed(0, base + stm32_bank->emr_ofst);
> - writel_relaxed(0, base + stm32_bank->rtsr_ofst);
> - writel_relaxed(0, base + stm32_bank->ftsr_ofst);
> - writel_relaxed(~0UL, base + stm32_bank->rpr_ofst);
> - if (stm32_bank->fpr_ofst != UNDEF_REG)
> - writel_relaxed(~0UL, base + stm32_bank->fpr_ofst);
>
> pr_info("%pOF: bank%d\n", h_data->node, bank_idx);
>
>

As for the initial patch, I'm asking for a "Fixes:" tag.

M.
--
Jazz is not dead. It just smells funny...