Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7696272imu; Mon, 3 Dec 2018 17:52:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/X8uhV/amd94WPvsJbmoCJ2rckZ3jb3uXMYePkhzj6ibGGP1LbnaWLWhFACzw2l9i97IfXe X-Received: by 2002:a62:113:: with SMTP id 19mr17896354pfb.176.1543888331324; Mon, 03 Dec 2018 17:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543888331; cv=none; d=google.com; s=arc-20160816; b=G2Qzn7hBu+7IELvZq8tFlivydniblbAIoxjNnAq6c8aEI/2QCT3ckImzrv+zZzCqy/ R3LZa1utsBsCHoAoNie5R8NSC/5a5m7oOIfIIxakZBn0rIYIjT6EXaXflUriycoP5Kb6 UGWB+iMqIA2XX4icMDMYSp81kZVbsmuPh+x/LIvQvdxujkXcc5Lv+8v5BLAZSlNdHXQH LzSo9H5omW56bt63dMABoz6wMCAPofVoLH+BQ5lUx+0+qjEsCgAR2r+0VXcar3kY8Juu 75sPpmhDEGsI4tYUVk8O/RaIYU+WBvs/Q5V18wfJcxCxIaq9nSTiCQjvJR342RIrbi9c Jd4Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=WsnOH9EfwcxL7K6nV3lfrI2aLNBUkHll11c3hE/9jdU=; b=GlPRWutN9FMqBRxz+P+sKdKgtahhYo5tqL3bff6WZAygMWyo0BL/nVXDCGnqCiF9Y6 n6qguWE5XbQYK8i2ZowRN5CeC26RvaMniTWYekZ3ALwiGMl6NvzcLT4V4K5FQ68t2v/H lhfd9ymGKA3VGOTPtfr+dX1k6Swc5NEiHY6ClHs7zGKBzwdv36PxSw6hMM8ocolDLxEB K7dNGbGQVbj7u+hfyVBRr9C9AXmONkbzqlBJ1xH6gJnbHjb7xR+8sDvf9qx8lrG1yG6X j69znzxVqboKgrf08I8mB7x6KF84lNP7GWHaFzyfXPOGX5wkbeFf9TCbJOzU71WvOwkY 9zQQ== 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 d36si16384114pla.216.2018.12.03.17.51.55; Mon, 03 Dec 2018 17:52:11 -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 S1725976AbeLDBvV (ORCPT + 99 others); Mon, 3 Dec 2018 20:51:21 -0500 Received: from mail-sz2.amlogic.com ([211.162.65.114]:49444 "EHLO mail-sz2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725937AbeLDBvU (ORCPT ); Mon, 3 Dec 2018 20:51:20 -0500 Received: from [10.28.18.81] (10.28.18.81) by mail-sz2.amlogic.com (10.28.11.6) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 4 Dec 2018 09:51:28 +0800 Subject: Re: [PATCH 2/2] irqchip/meson-gpio: Add support for Meson-G12A SoC To: Neil Armstrong , Jerome Brunet , Marc Zyngier , Jason Cooper , Thomas Gleixner , Kevin Hilman CC: Rob Herring , Jianxin Pan , , Carlo Caione , , , Heiner Kallweit References: <20181203061324.36248-1-xingyu.chen@amlogic.com> <20181203061324.36248-3-xingyu.chen@amlogic.com> <7a2f88d849ada782de6e27676518d0b9897e30e7.camel@baylibre.com> <4fc0694c-4c00-5abd-5336-ef85ad36d9b5@baylibre.com> From: Xingyu Chen Message-ID: <47b58f29-7424-63f4-44fe-0f99a4756862@amlogic.com> Date: Tue, 4 Dec 2018 09:51:28 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <4fc0694c-4c00-5abd-5336-ef85ad36d9b5@baylibre.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Originating-IP: [10.28.18.81] X-ClientProxiedBy: mail-sz2.amlogic.com (10.28.11.6) To mail-sz2.amlogic.com (10.28.11.6) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/12/3 18:06, Neil Armstrong wrote: > On 03/12/2018 10:28, Xingyu Chen wrote: >> >> >> On 2018/12/3 17:19, Jerome Brunet wrote: >>> On Mon, 2018-12-03 at 14:13 +0800, Xingyu Chen wrote: >>>> The Meson-G12A SoC uses the same GPIO interrupt controller IP block as the >>>> other Meson SoCs, A totle of 100 pins can be spied on, which is the sum of: >>>> >>>> - 223:100 undefined (no interrupt) >>>> - 99:97   3 pins on bank GPIOE >>>> - 96:77   20 pins on bank GPIOX >>>> - 76:61   16 pins on bank GPIOA >>>> - 60:53   8 pins on bank GPIOC >>>> - 52:37   16 pins on bank BOOT >>>> - 36:28   9 pins on bank GPIOH >>>> - 27:12   16 pins on bank GPIOZ >>>> - 11:0    12 pins in the AO domain >>>> >>>> Signed-off-by: Xingyu Chen >>>> Signed-off-by: Jianxin Pan >>>> --- >>>>   drivers/irqchip/irq-meson-gpio.c | 5 +++++ >>>>   1 file changed, 5 insertions(+) >>>> >>>> diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson- >>>> gpio.c >>>> index 7b531fd075b8..971e8dea069a 100644 >>>> --- a/drivers/irqchip/irq-meson-gpio.c >>>> +++ b/drivers/irqchip/irq-meson-gpio.c >>>> @@ -67,12 +67,17 @@ static const struct meson_gpio_irq_params axg_params = { >>>>       .nr_hwirq = 100, >>>>   }; >>>>   +static const struct meson_gpio_irq_params g12a_params = { >>>> +    .nr_hwirq = 100, >>>> +}; >>>> + >>> >>> Same comment as on i2c, the g12 seems compatible with the axg. >>> Is this patchset patchset really necessary ? >>> >> Although the total number of pins is the same as the Meson-AXG SoC, the gpio banks and irq numbers are different. To avoid confusion on use, i think the new compatible string is needed. > > OK for the new compatible, but you can re-use the same struct like for i2c. > > Neil > Thanks for your comment, I will fix it in the next version. >>>>   static const struct of_device_id meson_irq_gpio_matches[] = { >>>>       { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params }, >>>>       { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params >>>> }, >>>>       { .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params >>>> }, >>>>       { .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params }, >>>>       { .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params }, >>>> +    { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &g12a_params >>>> }, >>>>       { } >>>>   }; >>>> >>> >>> >>> . >>> >> >> _______________________________________________ >> linux-amlogic mailing list >> linux-amlogic@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-amlogic > > . >