Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5234530imb; Thu, 7 Mar 2019 10:41:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxcsW+DV2wBdwDafhxKqiCuzTXO+mnOUkaX6MC+HB3lsFz8oOdWOo4nl4fm8I6AeRFDMVoP X-Received: by 2002:a63:e752:: with SMTP id j18mr12574025pgk.313.1551984099514; Thu, 07 Mar 2019 10:41:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551984099; cv=none; d=google.com; s=arc-20160816; b=TwoP36ynMKvGkdrCcGxm+37q/LMdjlJ63YnYhCE/PiQtN9TqBx18G5ZTsr2yZOibJ7 2yWP/euOtwQYMeAMattBvatJIYZHyNoTJDe2ivbjV6FzHZTKwPSAWDbvTUYe7YAFIxFA mkfvy2o3fVAbqRJZ+4LAFQT+toCB3GbnmJexYg75xC9gpFoQ24dc2NgueGzgkWnllEv8 lf6OUAITyh1grsZljbIEd0oredxV895g0dkFNGWfJ98ik66Znq7127utvm/sZ+doy5Bj pH7hQCS0oD92oIKFgrUg3X2yTEl1eev+57JtALwfX2diXnFv7wZf+qJMrjHa5CdkTXKo 7U4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=MHL9If5/ztzZj8xPLpc/Zbx4LqojzSbU7/MX9bD9LHY=; b=kI+72XzboIXzR/oIxdIPgIrTU1f5axZQOa6ak8xyVrCWOycQ/WQ/fwNXhJ30cM8vjo WgQpLleAW3nQdVKRvW3ZENAZOZQEjWIXSpB6/mF8JY09L5W3/BwCSpgWkPYrAgfcNhWk nxJo4RovppS+EjdF9JOjpRHttMmwrmD36lRJiE6TTN0GoyvVkqDWfjcJjIGxAC6m8RLL t/4+yqX+1vZw+mcVZsdZNanU/IX4mpvsGe1nhsKnvfs/G6wuln/HYtIsNGt4JZU2tMef rVq8/kUpNzAVeor2GnAcJr/1aqlAOqDya/9Rv4V7mHt9xqns2StUTSQ4SyyPnFZQl2m2 +Ecw== ARC-Authentication-Results: i=1; mx.google.com; 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 t186si4336358pgd.504.2019.03.07.10.41.22; Thu, 07 Mar 2019 10:41:39 -0800 (PST) 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; 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 S1726442AbfCGSk6 (ORCPT + 99 others); Thu, 7 Mar 2019 13:40:58 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:54135 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726268AbfCGSk6 (ORCPT ); Thu, 7 Mar 2019 13:40:58 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x27IV7Gi025996; Thu, 7 Mar 2019 19:40:47 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2r2ng26gu0-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 07 Mar 2019 19:40:47 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8844531; Thu, 7 Mar 2019 18:40:46 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 65B115832; Thu, 7 Mar 2019 18:40:46 +0000 (GMT) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 7 Mar 2019 19:40:46 +0100 Received: from localhost (10.129.4.33) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 7 Mar 2019 19:40:45 +0100 From: Fabien Dessenne To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Maxime Coquelin , Alexandre Torgue , , , CC: Fabien Dessenne , Benjamin Gaignard Subject: [PATCH v3 1/2] irqchip: stm32: don't clear rising/falling config registers at init Date: Thu, 7 Mar 2019 19:40:35 +0100 Message-ID: <1551984036-23027-2-git-send-email-fabien.dessenne@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1551984036-23027-1-git-send-email-fabien.dessenne@st.com> References: <1551984036-23027-1-git-send-email-fabien.dessenne@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.129.4.33] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-07_10:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: f9fc1745501e ("irqchip/stm32: Add host and driver data structures") Signed-off-by: Loic Pallardy Signed-off-by: Fabien Dessenne --- 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); -- 2.7.4