Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp600902pxu; Fri, 11 Dec 2020 09:39:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxp6LAYTja4SnhJba2rAMAVjH7JTKvhk5p9maQJmlv/1OB+xiBahskAohzkIVF5f8rHeAnW X-Received: by 2002:a17:907:3e85:: with SMTP id hs5mr12282168ejc.548.1607708378388; Fri, 11 Dec 2020 09:39:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607708378; cv=none; d=google.com; s=arc-20160816; b=HdryGqI4u/xVV0AL2Bj34B/MYHSJ969b6LN2sCzk3Bvjj+nV9qrRYNZMQxAVHqtf3G z9kyRZymqTxXGHmMpQZPTQqMNrmLAXeVQbRO5ENJrNt1R1SRk9g92S9rvR5UOk00xGv6 Aa33AeWZ4VMVWGUShnsPQYzFWWI2Jf/ncvDKIb+Fo6WHpE/+lYWVk0tm0vUSgPND498a EjldHdG+W+8+CAkzBmoDpIDEAXAFSUCJkuhZUyC6HZ+prm7P0mWEn5sGmADmr24/7CWF PzakDq/1n3NiOaL3/UIrnDr4EwTaunGL1oktSH2RRHDtufBoG6eRP+acVRe9yF2ejK0/ Xnyw== 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=Hn35IJ7qfEnzrjq5Ynner1pzwSEPn+cmitzn+HnpFEY=; b=Xz05niZtrIVboh9xXsQF0NVSq49S9hMSxXaq2icib35J8Ziww2gwQ7cNZQP5kHqnk3 rlnDm/LROkUePNZW4DENjb4sXDnPVz+SAql3+20X5KXeCUGbQY8vBsfGmxGZgqM7zH23 rtbDag1b1eJz9vWUFLqVDS5q8/+22Lc1ns+zERDlln4NM5/cYmGHCJPm8i329fhgtDie 0wrKkIRF6jroBWmhDs/x+bLbmdY08hWwyP1NqvMK6e1EaP0FSahPXv9MQ2mmPmGNImbQ D54Wd6V8zMsZBys6FunO6T1kfGTmNxN+f6jUvsYkYAhcFek34cFzWiG5LRZ0+wy9jSIC LbFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4r87xE1C; dkim=neutral (no key) header.i=@linutronix.de header.b=khHB8mbW; 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 c3si5850425edm.45.2020.12.11.09.39.15; Fri, 11 Dec 2020 09:39:38 -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=4r87xE1C; dkim=neutral (no key) header.i=@linutronix.de header.b=khHB8mbW; 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 S2406489AbgLKPAC (ORCPT + 99 others); Fri, 11 Dec 2020 10:00:02 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:35740 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406451AbgLKO7i (ORCPT ); Fri, 11 Dec 2020 09:59:38 -0500 Date: Fri, 11 Dec 2020 14:58:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607698726; 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=Hn35IJ7qfEnzrjq5Ynner1pzwSEPn+cmitzn+HnpFEY=; b=4r87xE1Cc7emsEJdTWWKQZG83cqNSk8yjpb8R6HV6GpwejvJENDCpyIvYnKmgxyOwqoapi XZz7X7dMIB3bmFqqdoRf01EIbQM5Wup2m5hp5HqPuj9NFRw0hApof3WYjzQCv5/Q120QkQ txLla8IiJkZEsERf3vYKtJ1W/sxmsJI/63JLiQ0j9OVmS7WNDdVpRCoQUfHiq+evCWVEun 6SU/K/XIHYiNPVTY9H0Mv7043mmwouxKPnDMdwXvqqsg7HgAj7wpHk04VPL+lohqiwybBs VRM/LdIW3pNIIkQ4x+36hM8W7Iq/Vhd4TCUZ4Y3994yEIz7sWwjArA+vIwj1wg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607698726; 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=Hn35IJ7qfEnzrjq5Ynner1pzwSEPn+cmitzn+HnpFEY=; b=khHB8mbWFhU8B3cj85LQ8OeDIwZdWycDmc9+PM/0QM8L+UwDO9sQfe98PSb5AYO2B5xQZN MjsHm1oMlVYZqoAg== From: "irqchip-bot for Hou Zhiqiang" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/ls-extirq: Add LS1043A, LS1088A external interrupt support Cc: Hou Zhiqiang , Biwen Li , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20201130101515.27431-1-biwen.li@oss.nxp.com> References: <20201130101515.27431-1-biwen.li@oss.nxp.com> MIME-Version: 1.0 Message-ID: <160769872598.3364.907526307601900970.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 X-Spam: Yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: b16a1caf4686895427c810219d4b2f796e676160 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/b16a1caf4686895427c810219d4b2f796e676160 Author: Hou Zhiqiang AuthorDate: Mon, 30 Nov 2020 18:15:05 +08:00 Committer: Marc Zyngier CommitterDate: Fri, 11 Dec 2020 14:43:16 irqchip/ls-extirq: Add LS1043A, LS1088A external interrupt support Add an new IRQ chip declaration for LS1043A and LS1088A, and cleanup the use of the "bit_reverse" property, now gated on the Soc type. Signed-off-by: Hou Zhiqiang Signed-off-by: Biwen Li Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20201130101515.27431-1-biwen.li@oss.nxp.com --- drivers/irqchip/irq-ls-extirq.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/irqchip/irq-ls-extirq.c b/drivers/irqchip/irq-ls-extirq.c index 4d1179f..f94f974 100644 --- a/drivers/irqchip/irq-ls-extirq.c +++ b/drivers/irqchip/irq-ls-extirq.c @@ -18,7 +18,7 @@ struct ls_extirq_data { struct regmap *syscon; u32 intpcr; - bool bit_reverse; + bool is_ls1021a_or_ls1043a; u32 nirq; struct irq_fwspec map[MAXIRQ]; }; @@ -30,7 +30,7 @@ ls_extirq_set_type(struct irq_data *data, unsigned int type) irq_hw_number_t hwirq = data->hwirq; u32 value, mask; - if (priv->bit_reverse) + if (priv->is_ls1021a_or_ls1043a) mask = 1U << (31 - hwirq); else mask = 1U << hwirq; @@ -174,14 +174,8 @@ ls_extirq_of_init(struct device_node *node, struct device_node *parent) if (ret) goto out; - if (of_device_is_compatible(node, "fsl,ls1021a-extirq")) { - u32 revcr; - - ret = regmap_read(priv->syscon, LS1021A_SCFGREVCR, &revcr); - if (ret) - goto out; - priv->bit_reverse = (revcr != 0); - } + priv->is_ls1021a_or_ls1043a = of_device_is_compatible(node, "fsl,ls1021a-extirq") || + of_device_is_compatible(node, "fsl,ls1043a-extirq"); domain = irq_domain_add_hierarchy(parent_domain, 0, priv->nirq, node, &extirq_domain_ops, priv); @@ -195,3 +189,5 @@ out: } IRQCHIP_DECLARE(ls1021a_extirq, "fsl,ls1021a-extirq", ls_extirq_of_init); +IRQCHIP_DECLARE(ls1043a_extirq, "fsl,ls1043a-extirq", ls_extirq_of_init); +IRQCHIP_DECLARE(ls1088a_extirq, "fsl,ls1088a-extirq", ls_extirq_of_init);