Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6313702iob; Tue, 10 May 2022 15:44:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmJKz/QbvixQStDyYDZuRr9aYGsdm97syOfyrsqg01LOxDP97uJXIEOARJ2qHj0LJ2QIwe X-Received: by 2002:a17:906:3e05:b0:6f3:a14a:fd3f with SMTP id k5-20020a1709063e0500b006f3a14afd3fmr20873772eji.640.1652222679866; Tue, 10 May 2022 15:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652222679; cv=none; d=google.com; s=arc-20160816; b=FiobzkeSV63Yk485DpYRQZShtrwsX/CiJC4DEOGzaOTIiLHGpLJp3F0y/pAg/Qx356 8hCGzbRIj2sfTVjydquP0QzijMSNLrr4gAaPlYT6dcJzLJ/d5MeX0CY27ZzWSMWt8aPJ 7amAVzNwFsnExFwRdTSr01SFHFqTPzWQ7EOa96UdB/UFTnkSqXPWj5kE1ysUmg89ro6c bFQJxnZj0MW9OhvyHSgY7+vA+Z6ebJzehlyu+5n8oyrDZUkkrNSLTuhVWXQQiaeNMVH9 di8aa5jgTV0R7A/Rj/KNfVXKTKgLqHQBHYnHdt+Hh6nwQ5KPN23y43E8l0N0RjySjUsA hOEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=TZ2vRbdpLexjtsnkeAyPgd1mzQfmWeXy/SAtNk4HBN8=; b=o8eLY7PUVxKNT3B3eZbMbw+kK8uLBJ7n7djQhGZeYW9LqA82BQ3I8hsQonYo0b+Hsg Z8530TFbALJjByYu070ks3oURTGNwxnVgxbL/shoEa6HrA1ZaDmOWFoLNWMbeg9PHAnh sN1SRiWPENvCjIRu0ZKnTqgsDNd4p4rcOg2aywm6G338mKURKlv+2r83s0KYQxkSaxXS l5kJCv/YDotnYi5mnr9udC3dZvzAUuMFK015bldqTS6f5szyhXr/5mf+bcBl2iXoCINk rRxxB/HH34/AMo/9bhvsEi0arWbbCTMr3w8VJUyPOr7gpCj+wvJE2UIpDZJZ4IkASenR U6Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e6hEDQ93; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn22-20020a1709070d1600b006e8896e1733si558064ejc.760.2022.05.10.15.44.07; Tue, 10 May 2022 15:44:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e6hEDQ93; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349008AbiEJSij (ORCPT + 99 others); Tue, 10 May 2022 14:38:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349006AbiEJSii (ORCPT ); Tue, 10 May 2022 14:38:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A3749B18D for ; Tue, 10 May 2022 11:38:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1770EB81F10 for ; Tue, 10 May 2022 18:38:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9C0BC385C2; Tue, 10 May 2022 18:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652207914; bh=vg/AQo4Tb6myBSReu7aIrGsdQxy3WBI+M6zOfl8oVfg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=e6hEDQ93rEm5p6s157edQCLKPbV4ht/O0WqWtVzty+VBJMoi94JXBad4Bl4H3h/BO yhDuQeYw+EJqkGFFXZSJD9Sv1/T/fRKNDagi5Kbl2g0lCX+YYTeEdHs5sTDLRUSTM6 loeMGMrLdfkRVrLX7ASbeZzqO5Mdx6shGxps9zCH5HZm6bxbsxO5smDepR/kRzUG/F So+3RiPv4b6pMYKrFi4mMcn33MLHkeqxgpkYnQxa5EI4SU7jGGFkBuAgnEJQMce/Aa WJZfF7PUmfUyjmvdemMKvkVntlsoGCaP0SZPlpVS91vV/P6fqpbYkzop5o8GcaUJQX aBb65KjEWz0+g== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1noUki-00AMsa-89; Tue, 10 May 2022 19:38:32 +0100 Date: Tue, 10 May 2022 19:38:32 +0100 Message-ID: <877d6t6xnb.wl-maz@kernel.org> From: Marc Zyngier To: Antonio Borneo Cc: Thomas Gleixner , Maxime Coquelin , Alexandre Torgue , , , , Ludovic Barre , Loic Pallardy , Pascal Paillet Subject: Re: [PATCH 3/7] irqchip/stm32-exti: remove EMR register access for stm32mp15 In-Reply-To: <20220510164123.557921-3-antonio.borneo@foss.st.com> References: <20220510164123.557921-1-antonio.borneo@foss.st.com> <20220510164123.557921-3-antonio.borneo@foss.st.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: antonio.borneo@foss.st.com, tglx@linutronix.de, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, ludovic.barre@foss.st.com, loic.pallardy@foss.st.com, p.paillet@foss.st.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 May 2022 17:41:19 +0100, Antonio Borneo wrote: > > From: Alexandre Torgue > > C1EMRx registers are not accessible on STM32MP15x. And what happens if they are accessed? What are these registers for? (notice a pattern here?) M. > > Signed-off-by: Alexandre Torgue > Signed-off-by: Antonio Borneo > --- > drivers/irqchip/irq-stm32-exti.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c > index 1145f064faa8..c8003f4f0457 100644 > --- a/drivers/irqchip/irq-stm32-exti.c > +++ b/drivers/irqchip/irq-stm32-exti.c > @@ -132,7 +132,6 @@ static const struct stm32_exti_drv_data stm32h7xx_drv_data = { > > static const struct stm32_exti_bank stm32mp1_exti_b1 = { > .imr_ofst = 0x80, > - .emr_ofst = 0x84, > .rtsr_ofst = 0x00, > .ftsr_ofst = 0x04, > .swier_ofst = 0x08, > @@ -142,7 +141,6 @@ static const struct stm32_exti_bank stm32mp1_exti_b1 = { > > static const struct stm32_exti_bank stm32mp1_exti_b2 = { > .imr_ofst = 0x90, > - .emr_ofst = 0x94, > .rtsr_ofst = 0x20, > .ftsr_ofst = 0x24, > .swier_ofst = 0x28, > @@ -152,7 +150,6 @@ static const struct stm32_exti_bank stm32mp1_exti_b2 = { > > static const struct stm32_exti_bank stm32mp1_exti_b3 = { > .imr_ofst = 0xA0, > - .emr_ofst = 0xA4, > .rtsr_ofst = 0x40, > .ftsr_ofst = 0x44, > .swier_ofst = 0x48, > @@ -792,7 +789,8 @@ stm32_exti_chip_data *stm32_exti_chip_init(struct stm32_exti_host_data *h_data, > * clear registers to avoid residue > */ > writel_relaxed(0, base + stm32_bank->imr_ofst); > - writel_relaxed(0, base + stm32_bank->emr_ofst); > + if (stm32_bank->emr_ofst) > + writel_relaxed(0, base + stm32_bank->emr_ofst); > > pr_info("%pOF: bank%d\n", node, bank_idx); > > -- > 2.36.0 > > -- Without deviation from the norm, progress is not possible.