Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp371566pxb; Wed, 24 Feb 2021 04:38:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCQlElKOqyaAGvnqB71Vas8gcRC8kN4cYSGDLLgB9MCgjnI7Ls9moU8sa5AmhPiDppi5C1 X-Received: by 2002:a17:906:fa06:: with SMTP id lo6mr15637907ejb.339.1614170312159; Wed, 24 Feb 2021 04:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614170312; cv=none; d=google.com; s=arc-20160816; b=ikvnzTaVRUAmBc5mm5o7UvAd0OFol9g0EWmHHBOrXNKIpPVwL3Z0Faruc6lZg0ZIft xqTUUC4zu89MbYyOsmy6crAcrvLaTmfleqRwrg4oCTwoaWqdAkeDPJIFykTREk2bU4wR qAfV6cT0PX2CAbfCqb1c07ayw+PGXONfRNB2AGJ2pvpqOXqvOhWvzPSe1sGo5qnc++LR /K0mSk/O7taxeHbQjs9GR4y2omIVT6dS1PJNZvb8YYj0hSIlurecTr8WN2ivi/0QME7i zflekcOgYYTHGoUFC6nnSi7Y0W81JY66sJb6KK4K1H/Pl8XGfkabcUV9VsqUhuaI8EE0 /fGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=mBt9hQTkQ2cxkK5R0jCQwcHRCZkmatR1/Lom7M+wwuw=; b=prBZ0qJPJ6ML9RaibfhzyC6urXzWstJKskMNUQu/mUVtPhzO4muy+A5nyNApHviFpg 6sac+ygJLo2xyJcpPOHoXlSA8/gVzw9TiU62WwrzCfLdPooIe3OU97PlPZTZ00Fz1rZ1 kzQplPfI+ccfEY0bk7p7huggw3BsIDjT/tVCGfIcTjJlrk64puriqHK0zTO/TygOUWf2 kpu3nSA7k98kznZDhVszm8MvfITkTkBKvV5k/1ZS38BgvQWQx9nyy1SJQeq9IIdnIv0a FsdvHRnnsXM6X9Fz/kwYDbq1Sg60FMFcyEclnHT69SPfnf//2qqbkvSdTnK5oOboLbpd jZJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uX+b40Q0; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t16si1142808edi.293.2021.02.24.04.38.09; Wed, 24 Feb 2021 04:38:32 -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=@gmail.com header.s=20161025 header.b=uX+b40Q0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233248AbhBXDo0 (ORCPT + 99 others); Tue, 23 Feb 2021 22:44:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232779AbhBXDoZ (ORCPT ); Tue, 23 Feb 2021 22:44:25 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56C5CC061574; Tue, 23 Feb 2021 19:43:45 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id d11so371885plo.8; Tue, 23 Feb 2021 19:43:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=mBt9hQTkQ2cxkK5R0jCQwcHRCZkmatR1/Lom7M+wwuw=; b=uX+b40Q0fD3rHFTk7H3c8mgoejQ+YTZReMZSKo0BQfJofnsQOa48YFG3hYBGOr8MnZ Rc6OCKntoRsjvFln9DoJfWAeSlV5KrIy3LPJc0BnjVlMU323g2D594GsRfi7vnDbuvKo rZTQ1bFxk3SNnW3TvaMi8zCNC3dX40HsWDkXfMhdP5G2bakOOqy9640KqCDNWTq+rlG1 XtJj7QdFEK5AI0TI1uohW1nCZfSl4QxTxnVvQSk5jVodEk1ELliOp3tQZp1L0yoRJhoy FoVMdaWQZIHbnXKQcv8RHBc+R5TyBr0nqIOnh/m8FElsb3ARoseTGUOuJPrwnkGfwZnG mN/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mBt9hQTkQ2cxkK5R0jCQwcHRCZkmatR1/Lom7M+wwuw=; b=LU3Bj5c8DUTZXlykVUufJAH3+EnYD4V60TfPREFKamu3dkchwD6rkxVjl3bASr/FZ9 nMEtJsyvQJ7IbiuylKG85yKGf8CxmtnAC9XcLu7OW2hnmoi/CBGx7XPFdnZmuvdw9AFt weK0hZ9tfbGpVhUw7CqDMJ8ILCgbwRkWXyIMUY5HrGqciDNot1hqg29R9X9HmvHO4wtY jniCgu4De7kpUm4m5JsNHhWrRrc1APQT6HioqGBk+e/PC3skw5gn/HA+FLIZqAIuiOEI GQPih6TbSpPJm1aGHYjA/M8CT1oiQhGgsd90Do4dUOQ66AZ9yhiv4BwTG+OIXt0FrM5I +rMw== X-Gm-Message-State: AOAM530jg3pXbQPhF9Y8Q5Xf9Cz1+b5HKv+HrHYovwFO4MCqlPZmbZgk ZrWVTfwLT5E12cKZN6sJFxn695bgerg= X-Received: by 2002:a17:90a:cf0e:: with SMTP id h14mr2125850pju.96.1614138224504; Tue, 23 Feb 2021 19:43:44 -0800 (PST) Received: from [10.230.29.30] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id o20sm560518pjt.43.2021.02.23.19.43.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Feb 2021 19:43:44 -0800 (PST) Subject: Re: [PATCH v2 2/2] irqchip: add support for BCM6345 external interrupt controller To: =?UTF-8?Q?=c3=81lvaro_Fern=c3=a1ndez_Rojas?= , Thomas Gleixner , Marc Zyngier , Rob Herring , Jonas Gorski , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-mips@vger.kernel.org References: <20210223180840.28771-1-noltari@gmail.com> <20210223204340.312-1-noltari@gmail.com> <20210223204340.312-3-noltari@gmail.com> From: Florian Fainelli Message-ID: <7de8507d-82dd-291e-1f63-7c1460e6a6b2@gmail.com> Date: Tue, 23 Feb 2021 19:43:29 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210223204340.312-3-noltari@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/23/2021 12:43 PM, Álvaro Fernández Rojas wrote: > This interrupt controller is present on bcm63xx SoCs in order to generate > interrupts based on GPIO status changes. > > Signed-off-by: Álvaro Fernández Rojas > Signed-off-by: Jonas Gorski > --- [snip] > +static int __init bcm6345_ext_intc_of_init(struct device_node *node, > + struct device_node *parent) > +{ > + int num_irqs, ret = -EINVAL; > + unsigned i; > + void __iomem *base; > + int irqs[MAX_IRQS] = { 0 }; > + u32 shift; > + bool toggle_clear_on_ack = false; > + > + num_irqs = of_irq_count(node); > + > + if (!num_irqs || num_irqs > MAX_IRQS) > + return -EINVAL; > + > + if (of_property_read_u32(node, "brcm,field-width", &shift)) > + shift = 4; This property is not documented in the binding, other than that: Reviewed-by: Florian Fainelli -- Florian