Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2760393pxx; Sun, 1 Nov 2020 09:02:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVgL6Y9uZQOIkpE4A+kH72obi4WGPfWUQNJvrQtoP7o8DFO6gC4F50h4z9uEuATFiF6KJP X-Received: by 2002:a17:906:b010:: with SMTP id v16mr12184505ejy.163.1604250130561; Sun, 01 Nov 2020 09:02:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604250130; cv=none; d=google.com; s=arc-20160816; b=Nwme0EimNLuHN33VLrroq+Tth23Sx6jLohWP7CoGXAduCwN/Wh0iq/500xrz9SUvBy dOGp9+fYTAzvME1N5/Gt5KSwVVG1/YxIYwrBLHWNJl+lUO2owtT8XbMqwvs9p94dZNPW wx5MZ8iGovrxBm0xZtijgWgFO0Kjn3CAvfmyG7ncMNN99tOrM8VxQIgluM4Rzk1NbdDR CpLXoHOacjylhZB/FjP/IgV5yYUJf1jIv5CFIC442VJJ2hVNuIpWbldkOcURKgR/rDap kiA3RrP0I0da4EG+ZtrmAos8fYkjw8TGD+qF/oZcauwQMo0q8XfdCsR5PVxQ7GIEqVLl VugQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=eMqVqtc2C4auwzMu8GaTt+B0rSb97C4C/gdI6Z46Klw=; b=kOn4uMAZlUITlgSciNgeps1uvZrdPxYkDKy/Tx8UWOVhAabnLaTV0gCQahzwe2FB5h gRtVqVgyBiGm4V1izR6cTH9sKNKE0pxP7L9xvYh7Gm01A4YwrK2twcZX0pQDYdfbWqRK YBIBFLZcrYM807G9gzAjSQj6svYigiLROopFjcmo4QTVdGTMK65I304Ae/nxwnBubSJh /ijDT4mLq1EVjp07leXg+cUawyVyh+6d06/aKq/Q09hxEhce+z+Koz1MyxdFuWM86t6g GqQHkVTkGZz9hISAtYj2Wd9tTSou6soWaOU1cVASvdUupdQuerV2mcMYKxoWTgEHEVxW sCOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xMQeAGEz; dkim=neutral (no key) header.i=@linutronix.de; 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=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si9022279ejz.214.2020.11.01.09.01.48; Sun, 01 Nov 2020 09:02:10 -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=@linutronix.de header.s=2020 header.b=xMQeAGEz; dkim=neutral (no key) header.i=@linutronix.de; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727105AbgKARAP (ORCPT + 99 others); Sun, 1 Nov 2020 12:00:15 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:53826 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726790AbgKARAM (ORCPT ); Sun, 1 Nov 2020 12:00:12 -0500 Date: Sun, 01 Nov 2020 17:00:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1604250009; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eMqVqtc2C4auwzMu8GaTt+B0rSb97C4C/gdI6Z46Klw=; b=xMQeAGEzydEt9enP/Evk6F/hDUj3C4gkgwoNLAwxU9ilta6mZ1x+SN0syeVuUgbi1aHCgz hm1HME3rfLdCROxUsZiufrV2eLTYKAU8xzAf6pxah/gF3yQ8RF6hI+rs7pAXxqrLs0uOme D00gtTQK3AHTKQEqiJR8MjRZBylP3uqKLR7COytFIsdkCDzCf+AqXbkdExwGq5eCLwI0YH D1wsHS234ECA2iPcBpfwIDXRzdrUv7SV8CuoKxMRm1WpS0/5OP13lGTNpvbE1R60rCuv7J 6NeFF63OLO1qnAIswn51d4HgH2xUsG4zAvpw8B8PJt6Yjer9Mf+LFV93ywWfhA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1604250009; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eMqVqtc2C4auwzMu8GaTt+B0rSb97C4C/gdI6Z46Klw=; b=CspyW5yjv3je8vQlirOZSjZ2JtdjITsPlFWxCIzpYv/Xj7RwVmIaNR4VET7iz9uAJneBtz oLqWkLdTiSZqNMDg== From: "tip-bot2 for Geert Uytterhoeven" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/urgent] irqchip/renesas-intc-irqpin: Merge irlm_bit and needs_irlm Cc: Geert Uytterhoeven , Marc Zyngier , x86 , LKML In-Reply-To: <20201028153955.1736767-1-geert+renesas@glider.be> References: <20201028153955.1736767-1-geert+renesas@glider.be> MIME-Version: 1.0 Message-ID: <160425000858.397.1155944274384830993.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/urgent branch of tip: Commit-ID: b388bdf2bac7aedac9bde5ab63eaf7646f29fc00 Gitweb: https://git.kernel.org/tip/b388bdf2bac7aedac9bde5ab63eaf7646f29fc00 Author: Geert Uytterhoeven AuthorDate: Wed, 28 Oct 2020 16:39:55 +01:00 Committer: Marc Zyngier CommitterDate: Sun, 01 Nov 2020 11:59:22 irqchip/renesas-intc-irqpin: Merge irlm_bit and needs_irlm Get rid of the separate flag to indicate if the IRLM bit is present in the INTC/Interrupt Control Register 0, by considering -1 an invalid irlm_bit value. Signed-off-by: Geert Uytterhoeven Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20201028153955.1736767-1-geert+renesas@glider.be --- drivers/irqchip/irq-renesas-intc-irqpin.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-renesas-intc-irqpin.c b/drivers/irqchip/irq-renesas-intc-irqpin.c index 3819185..cb7f60b 100644 --- a/drivers/irqchip/irq-renesas-intc-irqpin.c +++ b/drivers/irqchip/irq-renesas-intc-irqpin.c @@ -71,8 +71,7 @@ struct intc_irqpin_priv { }; struct intc_irqpin_config { - unsigned int irlm_bit; - unsigned needs_irlm:1; + int irlm_bit; /* -1 if non-existent */ }; static unsigned long intc_irqpin_read32(void __iomem *iomem) @@ -349,11 +348,10 @@ static const struct irq_domain_ops intc_irqpin_irq_domain_ops = { static const struct intc_irqpin_config intc_irqpin_irlm_r8a777x = { .irlm_bit = 23, /* ICR0.IRLM0 */ - .needs_irlm = 1, }; static const struct intc_irqpin_config intc_irqpin_rmobile = { - .needs_irlm = 0, + .irlm_bit = -1, }; static const struct of_device_id intc_irqpin_dt_ids[] = { @@ -470,7 +468,7 @@ static int intc_irqpin_probe(struct platform_device *pdev) } /* configure "individual IRQ mode" where needed */ - if (config && config->needs_irlm) { + if (config && config->irlm_bit >= 0) { if (io[INTC_IRQPIN_REG_IRLM]) intc_irqpin_read_modify_write(p, INTC_IRQPIN_REG_IRLM, config->irlm_bit, 1, 1);