Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp892486yba; Thu, 18 Apr 2019 11:18:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyH3ITvTE22Vpsvo6ZHD+hS42LpbdBFqQJzG/oilvQrU9fcE/pWhbU0G/G90Q7VFWsG1bu8 X-Received: by 2002:a63:fd06:: with SMTP id d6mr90411906pgh.183.1555611537964; Thu, 18 Apr 2019 11:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555611537; cv=none; d=google.com; s=arc-20160816; b=o5sfZfqu7GJwsf+M8StzxnUB9//HlFc1ityl6KGpdKjRLRKZknbpGXJd5eLNDHjh6b Fh5PRmBU/NgxmGnRC+J/HBQ9yFUjlBoMStjFNLB89aGVBb0GJ1S2AksQk8LTWe/LIXpi IlQri8npaPDNDehZhfAbFBXpwmUhbudf2mHDOxmYoW7Is36RoINgDEpR2NPm0JHNbDDS E/+JHSDFLge7vr8+yaOHFQ20yF/+nYfahqfOzxz+IqFoXWhP4ToIiWjw4cYV68FAzamJ lcxYJriuXGKQLeL+7ZlP5R0obyWLkGqhMAwuS6VxoHb6tuq3LKfCU4vC0uDY3Wen5s2q lxRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=f2KBbkhpdhwVxt1IsQzwfyE44eurx5o0Cg7BKO99020=; b=af77izvL8Z3qM5G6Cn0uSAqZJyNmLjjuk8u4IWpuPLselFYHKZ+xZAJJ9bciOPxZyL JH7h8VZGcPj0a78MfRcDUA2MrhMfA2USyZwXrSHaJqNw2zCW/j5nxsUnF80q4sH+TxNe ap8kw5hXXBA7oPh87buCJb2poKXkuBJj87kzEEu6wXzemD0d2bjy0j3aVdEN1UVq3ZES F0vUm14+J65QbReJRMpJGwgZH9BZWHIGPIzIsR8y0IxtLSgnpFVlQnkl6pGeC2LPKgy8 7HM9+SvFetDNkPBGQMXgKTBY0/ERmyM/WN0U5i+39hpUszN9soMUfnebIhRPzCH0V/iu HENQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ADmZLtMy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k18si2517359pgb.351.2019.04.18.11.18.43; Thu, 18 Apr 2019 11:18:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ADmZLtMy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404234AbfDRSLb (ORCPT + 99 others); Thu, 18 Apr 2019 14:11:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:43720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404226AbfDRSL2 (ORCPT ); Thu, 18 Apr 2019 14:11:28 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6A39320652; Thu, 18 Apr 2019 18:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555611087; bh=T5T+ElXdFMownClrCaGzoY0A3x6xprexCifYw8U5ttM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ADmZLtMyyPLVSdcwqReiRgrdEUyj3+qRD7qz4lHL+gfkeYtCrHChZVPraIclmThGh Np4saKyVwwHEhkuniNSr+Y4IR4eUcrXfEGMmtFumceIclLkYt2/9qLzWZ3hVHkmdVo 1nqvQgE68iTWmMhS87KRtETEcMl2+CGzOGf45k/k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fabien Dessenne , Marc Zyngier , Sasha Levin Subject: [PATCH 5.0 54/93] irqchip/stm32: Dont set rising configuration registers at init Date: Thu, 18 Apr 2019 19:57:32 +0200 Message-Id: <20190418160443.102140041@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418160436.781762249@linuxfoundation.org> References: <20190418160436.781762249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 6a77623d78b307b34d4cf7886da6a907689bf388 ] 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: f9fc1745501e ("irqchip/stm32: Add host and driver data structures") Signed-off-by: Fabien Dessenne Signed-off-by: Marc Zyngier Signed-off-by: Sasha Levin --- 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 162a7f547f9e..7bd1d4cb2e19 100644 --- a/drivers/irqchip/irq-stm32-exti.c +++ b/drivers/irqchip/irq-stm32-exti.c @@ -716,7 +716,6 @@ stm32_exti_chip_data *stm32_exti_chip_init(struct stm32_exti_host_data *h_data, const struct stm32_exti_bank *stm32_bank; struct stm32_exti_chip_data *chip_data; void __iomem *base = h_data->base; - u32 irqs_mask; stm32_bank = h_data->drv_data->exti_banks[bank_idx]; 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, raw_spin_lock_init(&chip_data->rlock); - /* Determine number of irqs supported */ - writel_relaxed(~0UL, base + stm32_bank->rtsr_ofst); - irqs_mask = readl_relaxed(base + stm32_bank->rtsr_ofst); - /* * This IP has no reset, so after hot reboot we should * clear registers to avoid residue -- 2.19.1