Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp402876imu; Tue, 20 Nov 2018 00:49:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/WZFQZ4EJ3WgVgAayPgF0iOFfhigFAoUNRSYt2lbRWuSc6zCvyJ5rUhcb6gDYAe18CHS7Ec X-Received: by 2002:a63:ba48:: with SMTP id l8mr1118817pgu.72.1542703789637; Tue, 20 Nov 2018 00:49:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542703789; cv=none; d=google.com; s=arc-20160816; b=djZoEPSYu5h+1p6qjiOzy6J2vbSQTdsvPbp8/Z/dDDVFW766whpHhf5F9wb/y6dnwP IMHyBmbMGjSOFjkK5HTfy8TwrT+e5O93GdTkVk8xNaXtm3luRSv2K4aBZ8GX4OKKZuKT E1Lmt6D3LxL6t9nH50qUH08G9YgNwOpizC4cUnjzD5rC5qW6JubPrjHjqOrFTys5IF7S XQ/YD9tjBdltS7qDInHUBTMWAEyFAS9B1GoQWyY5eYf9bVXFelhLorY0SPgYBpPaIeyi YTyC8nNNkTYSyayG9sl/aaleVA0ZhmPdOKRW6Q0Evxx2M//thfDRCCw4ILzpByCbTAAr n9Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=xJQJoN/wCT2xEtRZBTo5JIYEJOokt5JxC2cucHMPRFI=; b=wKEcgNNCptl+kK8lUzlRnJUT2c3EAeEqyNuuNbKOWCu5vhXF6YYNgg1UNpWA9bDhlG z60sUzTfW3jIkv1586AL8E9MYPXXQUJYU73eU61hCaaoct/F/tA4q9Uzt+ZUixpHitaM oBMdWuB2pA1kXVzA3tVL+J1DHb5EUnVsgXlb7LaYx5xUzvf04aSkt9Y4b4K+QHjcmwD/ fZsloXL5dGWiHSBE48ZBvJ04vMnaxwPIYEN62ocdpjifxdb823zy/aptiBmK6lV2drwX CUJUN1BRXbjJY9gVY9U13ANR8tGhSOzlVte6wXVRL5lPYLl0TJACHb+2rGopWjQnSkr8 Kahw== 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 l1-v6si20567622plg.274.2018.11.20.00.49.35; Tue, 20 Nov 2018 00:49:49 -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 S1726851AbeKTTQ0 (ORCPT + 99 others); Tue, 20 Nov 2018 14:16:26 -0500 Received: from mail.bootlin.com ([62.4.15.54]:50164 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725898AbeKTTQ0 (ORCPT ); Tue, 20 Nov 2018 14:16:26 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 7212C20D29; Tue, 20 Nov 2018 09:48:25 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-13-146.w90-88.abo.wanadoo.fr [90.88.134.146]) by mail.bootlin.com (Postfix) with ESMTPSA id 38F0020D29; Tue, 20 Nov 2018 09:48:15 +0100 (CET) Date: Tue, 20 Nov 2018 09:48:15 +0100 From: Maxime Ripard To: Mesih Kilinc Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com, Chen-Yu Tsai , Russell King , Daniel Lezcano , Marc Zyngier , Linus Walleij , Icenowy Zheng , Rob Herring , Julian Calaby Subject: Re: [RFC PATCH v2 05/14] irqchip/sun4i: add support for suniv interrupt controller Message-ID: <20181120084815.rvh63cvvhxj6sbs2@flea> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7nbopu3lgekzonta" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --7nbopu3lgekzonta Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Sun, Nov 18, 2018 at 05:17:04PM +0300, Mesih Kilinc wrote: > The new F-series SoCs (suniv) from Allwinner use an stripped version of > the interrupt controller in A10/A13. >=20 > Add support for it in irq-sun4i driver. >=20 > Signed-off-by: Icenowy Zheng > Signed-off-by: Mesih Kilinc > --- > drivers/irqchip/irq-sun4i.c | 47 +++++++++++++++++++++++++++++++++++++++= +----- > 1 file changed, 42 insertions(+), 5 deletions(-) >=20 > diff --git a/drivers/irqchip/irq-sun4i.c b/drivers/irqchip/irq-sun4i.c > index e3e5b91..2abf662 100644 > --- a/drivers/irqchip/irq-sun4i.c > +++ b/drivers/irqchip/irq-sun4i.c > @@ -23,13 +23,26 @@ > =20 > #include > =20 > +enum sun4i_irq_type { > + sun4i_ic, > + suniv_ic > +}; > + > +static enum sun4i_irq_type sun4i_irq_type; You don't really need that type. It's completely redundant with the compatible. > +static int sun4i_irq_enable_reg_offset; > +static int sun4i_irq_mask_reg_offset; Ideally, this should be a structure so that we can easily extend it without adding more and more global variables. And the type shouldn't be signed. Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --7nbopu3lgekzonta Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW/PKTwAKCRDj7w1vZxhR xX31AP9cLbpcCqphd/eOd4ob256OaUp7pz46X9v96mDinDTYdgD+N8eX9d44CrCn pEFKZp41gVJDnK0vUBTp/MAc0VWTrAs= =PEAx -----END PGP SIGNATURE----- --7nbopu3lgekzonta--