Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp40805pxb; Mon, 2 Nov 2020 13:24:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIBh8+P9LNOcvZ9oP4WiZTOKX64zlq6Mp/kniDMmcLEs6Q+jE34aBNyg+mjVtc56Z8DlsE X-Received: by 2002:a17:906:158e:: with SMTP id k14mr16681881ejd.496.1604352270302; Mon, 02 Nov 2020 13:24:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1604352270; cv=pass; d=google.com; s=arc-20160816; b=SOr4WgZrBVZByqmbzGefD6aCP6qVCs1rt+4t7F9zSmLinyUk3Dyd0ImNAgPF0QJ9hP HGwii0pSwGqTKxeDc55W26j1sombdDzMGa1vYYCZH0ApXg2Q3ZmIzKugcF9+xoeeVPpM MnwDbStoN/ycSEsHsZ8QRNmKdNzl6TY76UG7QZ9NtztkwULPxogPK74fcQy+ojVWEgaa mYBc7vrBpLWeyIpk8W4KujfzxP5b0JWrBRM2PXLyZWJSQsxQMS9qQUG56o4ftO54ZjCW K7LWP4302KyTmKgR8No61eXiWU5q/aYOt2qYpltbuWcm35iNdreEKY/kH3BN3tpwMnSn F8Pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=TtujdME18y3D/U9hmU8PbqZuX2Uk2QL8ocY+OSAT/34=; b=RJcQqDZZMcGEbsjnQ3eBP4vf2tGuaWcYU1besnaVeasXOjssifo5DI329oHlH7TBdC TXFRoLuA4EANNt4gA7VA1H7xY6H/ZCKuJt/QzOjcduYO8o6yYcvd1i3Cp8YhQX6b78cj XoOX9UXyCXQTtKzjpwizRtkyepk3GkOhjsGZNUhRWH6BH9mzVgusIrYH16XnZLM+PYr1 GUvc1R4AGoYrO77e1npC943syET7P2cF7Y+E/AQgpd3iqWeDh4BlOY25QM6ekMOsBtmU oAQWvyqYyHNIubq0i1euVjMEI0OB7MSj/h21iTMZrJJboR6+HagdeUQ8VXhqYAGX3KVZ ohCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Rv/hwf+c"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si11692611edv.126.2020.11.02.13.24.05; Mon, 02 Nov 2020 13:24:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Rv/hwf+c"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725980AbgKBVWg (ORCPT + 99 others); Mon, 2 Nov 2020 16:22:36 -0500 Received: from mail-eopbgr60046.outbound.protection.outlook.com ([40.107.6.46]:56828 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725833AbgKBVWf (ORCPT ); Mon, 2 Nov 2020 16:22:35 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iQQ+Lcl9B4qiVvdsiQvAwm5hIj0nAo7phvK8l6qMCnzLfTx0zc0SWS+nuShhFeDPAo6quWl6Z0qe4lXOUr445CUF7jTpH4YdqPsQtvN5kGfuHZ9p/f3eokru8qwB86+WQgfPtpiM9DXhVtUW2Q2nGGmDiRcUicfKSTUsu46URT9li6iR6t5tGt6Bu7gPAqIjj1iwp0f5U8tMtpc7xwEpMmB0XQ/JlsFWErIViISfNMW05mNw6kKr7oUoEe/0Ir3yY/WU/P9hGqiHadTkkYGX3Os4wyvYwsB/BX5zgtzJm3z4oF5h+et9kRf3xK1M2EwIBrQdxc1EKxlj54SMhXTKqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TtujdME18y3D/U9hmU8PbqZuX2Uk2QL8ocY+OSAT/34=; b=IsR6gjfpl65XzsmRiU4FgvP+6tEFJy5dsHujwIl6GjcPw5rTMjkhLjIQIJspEv2Z8KJ/cBM+Or8yreAthsGlzJ0hXCy36kqiewSXG9zj+0kjK2WD67uQCMO+/A1xC+vohJTVFZk6lIWPBPtPnpX/XvcdQhAGnAfAX5tS2w+rOYlAXLfS2bYOOHIY0gc2BfAtu8iKabQp2HuAo1e7qwXoFzM1XilKngDNWoyyX5aYIEaqtx58PKA+TAqY+OqrpqyWpQbTpduQRWHcqnTTBGTJ/GIeVkWnfavhGf7620moFlP9rIuQFjGsJfZyr6v2xAtZ9E5Comw97C3gLcsyKHgb5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TtujdME18y3D/U9hmU8PbqZuX2Uk2QL8ocY+OSAT/34=; b=Rv/hwf+c6bEaFwYIeLo/O5iduxSju294VjhBRE9hKNRn3zZ03NBVzrT/N7AVkR5ICsi0M+XV+a15X265Qq/LyHs2BEF2OTczYKHrGwIiptnLrgIov0ro7Uke3icfl0bDNoYFEZPuiNGF+2YQ3NsqrD88LgJvVLCKD50AMzCaet8= Received: from VE1PR04MB6687.eurprd04.prod.outlook.com (2603:10a6:803:121::30) by VI1PR04MB5950.eurprd04.prod.outlook.com (2603:10a6:803:cd::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.27; Mon, 2 Nov 2020 21:22:30 +0000 Received: from VE1PR04MB6687.eurprd04.prod.outlook.com ([fe80::b106:ac49:e3c7:6dc8]) by VE1PR04MB6687.eurprd04.prod.outlook.com ([fe80::b106:ac49:e3c7:6dc8%7]) with mapi id 15.20.3499.030; Mon, 2 Nov 2020 21:22:30 +0000 From: Leo Li To: "Biwen Li (OSS)" , Rasmus Villemoes , "shawnguo@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "Z.q. Hou" , "tglx@linutronix.de" , "jason@lakedaemon.net" , "maz@kernel.org" CC: "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jiafei Pan , Xiaobo Xie , "linux-arm-kernel@lists.infradead.org" Subject: RE: [EXT] Re: [v2 01/11] irqchip: ls-extirq: Add LS1043A, LS1088A external interrupt Thread-Topic: [EXT] Re: [v2 01/11] irqchip: ls-extirq: Add LS1043A, LS1088A external interrupt Thread-Index: AQHWrB1r8C3YTVD4gUGfvnOjzP6Q2amrEJ2AgAACOICAANrToIAIeRcAgAD4mMA= Date: Mon, 2 Nov 2020 21:22:30 +0000 Message-ID: References: <20201027044619.41879-1-biwen.li@oss.nxp.com> <5b1f2911-98b3-511f-404b-7d0fa44cc0c2@rasmusvillemoes.dk> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: oss.nxp.com; dkim=none (message not signed) header.d=none;oss.nxp.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [136.49.1.200] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 350cfef9-609a-462a-dc42-08d87f75680e x-ms-traffictypediagnostic: VI1PR04MB5950: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1417; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /czYB39G8wUSSFfIuCYhx6Miy5M2p3FRYXm0yhUmfe79tzpYRNZWStpI09hkjmid+5HocPLEzjwcQY2s1urXDl7Y9yzZTKBcXRgYDOPv745xa/CMTMG7hBYBvpwKWIIXVVKz9T1ycXbeTwSqCeBaZ06BKkKFntBv1o8m0YMIrpJ8kBPcl1prIayE03RMU8QpHNmzUXyG8Yu7JDexkLQKg8zNAXn5XejRFVaOMR/W7iHSLiPLUvsD0D/bT7323AsUJMOwdXDfBes1PEiPYJz4Wc99bSooC9JubgQR3IawyH6sa91+WwrbQd1m+vtlTjGTlvGUwy2MkrJfqIWOCgaSvg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6687.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(376002)(136003)(346002)(396003)(39850400004)(8676002)(55016002)(71200400001)(316002)(9686003)(6506007)(76116006)(64756008)(66946007)(66476007)(2906002)(66556008)(83380400001)(53546011)(5660300002)(8936002)(4326008)(66446008)(7696005)(54906003)(110136005)(52536014)(186003)(86362001)(478600001)(7416002)(26005)(33656002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: BcNK0c85s0Qjl8ilkehbOeIabZz6yDTpJXLs2WdjpNLr+ZnjrokbB/2ze0SI08Ehbc0qHbwlOltxVmUzS+9llN1Yicz+jHM9TPcfMYVyRF3duKkvOwmJuG/T0In0T5cTeUKHdJZ8xUIaWKQxEpNdJuRJP23+X0bK5y8Ixmj7EVwhhG39qygiU2th9hvUCjDHcN9mz4dzifO283oedtfSBI63KdecXqTFlO5IFuPHr+ELu4cxLoprKqGIHmxeydYyAfyqEHNiYl4ISzXmULfaTU6Dsb1N5DYc+oJTrvl/g1VKjEpeXiJy1BLLDiOdYP4zEEipJWMeL+bkXaBXT+ie/uzFNIdoGUJHLnp/tnwOqGcZ56Y+XCO8F6QIQD9dA4QIKpTeyCtXHkaJ2MrrRkevii3VacTvN/laqVghi4tcP9Jw/Uvt7uS+rm8buwQ350FaUISzHXlOe0k6foggANH52CqEYAFKvNG6EBcpbOCKWNCsoS1QK4tpkLN42+9ksnUUJKieCVoGqcKMWAim9/uKl7D4FtImWt+7cGHDEd4OQKid5P9bnbAetifi1B9uPp2QpDxWu0oRwmo/uymOx3faRF/TLZ5lTQ28Z1LxFMYvDhikIobp7xmva0v7p7y4i09dRLRM0X0Biz+cAuGvzQstqA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6687.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 350cfef9-609a-462a-dc42-08d87f75680e X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2020 21:22:30.4641 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: x4xcuG22UhMJBM07QpC0UMlP32r0Crm/B3nSu1TiibvzdCriimyZa3SUcEJ+/V5Wv2Qw1oXV1Ay//PRxDnVBuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5950 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Biwen Li (OSS) > Sent: Monday, November 2, 2020 12:15 AM > To: Leo Li ; Rasmus Villemoes > ; Biwen Li (OSS) ; > shawnguo@kernel.org; robh+dt@kernel.org; mark.rutland@arm.com; Z.q. > Hou ; tglx@linutronix.de; jason@lakedaemon.net; > maz@kernel.org > Cc: devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; Jiafei Pan > ; Xiaobo Xie ; linux-arm- > kernel@lists.infradead.org > Subject: RE: [EXT] Re: [v2 01/11] irqchip: ls-extirq: Add LS1043A, LS1088= A > external interrupt >=20 > > > > > > > > Caution: EXT Email > > > > > > > > On 27/10/2020 05.46, Biwen Li wrote: > > > > > From: Hou Zhiqiang > > > > > > > > > > Add an new IRQ chip declaration for LS1043A and LS1088A > > > > > - compatible "fsl,ls1043a-extirq" for LS1043A, LS1046A. > > SCFG_INTPCR[31:0] > > > > > of these SoCs is stored/read as SCFG_INTPCR[0:31] defaultly(bit > > > > > reverse) > > > > > > > > s/defaultly/by default/ I suppose. But what does that mean? Is it > > > > still configurable, just now through some undocumented register? > > > > If that register still exists, does it now have a reset value of > > > > all-ones as opposed to the ls1021 case? If it's not configurable, > > > > then describing the situation as "by default" is confusing and > > > > wrong, it should just say "On LS1043A, LS1046A, SCFG_INTPCR is > > > > stored/read bit- > > > reversed." > > > Okay, got it. Will update it in v3. Thanks. > > > > Hi Biwen, > > > > Where did you get this information that the register on LS1043 and > > LS1046 is bit reversed? I cannot find such information in the RM. > > And does this mean all other SCFG registers are also bit reversed? If > > this is some information that is not covered by the RM, we probably > > should clarify it in the code and the commit message. > Hi Leo, >=20 > I directly use the same logic to write the bit(field IRQ0~11INTP) of the > register SCFG_INTPCR in LS1043A and LS1046A. > Such as, > if I want to control the polarity of IRQ0(field IRQ0INTP, IRQ0 is active = low) of > LS1043A/LS1046A, then I just need write a value 1 << (31 - 0) to it. > The logic depends on register's definition in LS1043A/LS1046A's RM. Ok. The SCFG_SCFGREVCR seems to be a one-off fixup only existed on LS1021.= And it is mandatory to be bit_reversed according to the RM which is alrea= dy taken care of in the RCW. So the bit reversed case should be the only c= ase supported otherwise a lot of other places for SCFG access should be fai= led. I think we should remove the bit_reverse thing all together from the driver= for good. This will prevent future confusion. Rasmus, what do you think? Regards, Leo >=20 > Regards, > Biwen >=20 > > > > Regards, > > Leo > > > > > > > > > > > > > > > - compatible "fsl,ls1088a-extirq" for LS1088A, LS208xA, LX216xA > > > > > > > > > > Signed-off-by: Hou Zhiqiang > > > > > Signed-off-by: Biwen Li > > > > > --- > > > > > Change in v2: > > > > > - add despcription of bit reverse > > > > > - update copyright > > > > > > > > > > drivers/irqchip/irq-ls-extirq.c | 10 +++++++++- > > > > > 1 file changed, 9 insertions(+), 1 deletion(-) > > > > > > > > > > diff --git a/drivers/irqchip/irq-ls-extirq.c > > > > > b/drivers/irqchip/irq-ls-extirq.c index > > > > > 4d1179fed77c..9587bc2607fc > > > > > 100644 > > > > > --- a/drivers/irqchip/irq-ls-extirq.c > > > > > +++ b/drivers/irqchip/irq-ls-extirq.c > > > > > @@ -1,5 +1,8 @@ > > > > > // SPDX-License-Identifier: GPL-2.0 > > > > > - > > > > > +/* > > > > > + * Author: Rasmus Villemoes > > > > > > > > If I wanted my name splattered all over the files I touch or add, > > > > I'd add it myself, TYVM. The git history is plenty fine for > > > > recording authorship as far as I'm concerned, and I absolutely > > > > abhor having to skip over any kind of legalese boilerplate when ope= ning > a file. > > > Okay, got it. Will drop it in v3. Thanks. > > > > > > > > Rasmus