From patchwork Sun Jan 27 15:50:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 10782917 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 16F9A91E for ; Sun, 27 Jan 2019 15:53:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0126E2AC4E for ; Sun, 27 Jan 2019 15:53:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5E9A2AC56; Sun, 27 Jan 2019 15:53:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CD1C2AC4E for ; Sun, 27 Jan 2019 15:53:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726423AbfA0PxH (ORCPT ); Sun, 27 Jan 2019 10:53:07 -0500 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25399 "EHLO sender-pp-092.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726386AbfA0PxH (ORCPT ); Sun, 27 Jan 2019 10:53:07 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1548604334; cv=none; d=zoho.com; s=zohoarc; b=EJOX2Dz5Qk23mRDD9iw7qB2fXekOvJd2Y0LFeO4xSja5UKNsGttxTDVLZga8X0LDT/+FSfrbXvvLjSyaH2zCprrcYbBmU7N5y5o4ScJj+d43yGan+ym8KCWUAG4YSgzTFgbOnYCTb19On6UZ4N0G7yUu8MNMRr/9cvrMh4W1R7k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1548604334; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=fS0yRkbzH9fVLj6C/Pe7HRSxwOu33FbiKfbgLgSukDg=; b=bdtMpZbg5keroTCMXofcF42eoGtvbQN5bVd7RJCSqrmIcCbgdhqOELRgwxMTJI6s3xB/g17asxhICDxSz+DnMgt2MIn5IS3Xbf12IPPoD756qG5oElNAynsim+xa57g7QspCbrHUf3AtbOX8pk7a5ZXL119WbbUsSjTmB2BcaDc= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=TXe4KiuLYH9Aj5UsCZcT4V7IIXAGOPk19Gq2h1W1HZdzcsqcNiGrq/7u5Ddzg7F14aWlkxe3QyiG YLOmq1wpohAmh4Rg2OSmX2qpVNEQreWr034DXqv8N99jL7pZ+Vxq DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1548604334; s=default; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=3378; bh=fS0yRkbzH9fVLj6C/Pe7HRSxwOu33FbiKfbgLgSukDg=; b=C0AGu6W/HYBgIoOw0pG0PVS2DSxDwJ1a6YnP51bR8GMAD35EuQoS/GOv4dldQeby eg1XE8n/n5WlH57t59idjd/eY8NG9UGJjZaSFON2aJktOs0k2DLh8Cu4YC/hTKJTgSp sqBHjzGklvyTiXYPb7zIoSDKht7GzYKYz9JRFu38= Received: from localhost.localdomain (171.221.112.7 [171.221.112.7]) by mx.zohomail.com with SMTPS id 1548604333280114.7926673127456; Sun, 27 Jan 2019 07:52:13 -0800 (PST) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, mark.rutland@arm.com, marc.zyngier@arm.com, jason@lakedaemon.net, tglx@linutronix.de, syq@debian.org, jiaxun.yang@flygoat.com, 772753199@qq.com Subject: [PATCH v2 1/4] Irqchip: Ingenic: Change interrupt handling form cascade to chained_irq. Date: Sun, 27 Jan 2019 23:50:29 +0800 Message-Id: <1548604232-19159-2-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548604232-19159-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-2-git-send-email-zhouyanjie@zoho.com> <1548604232-19159-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The interrupt handling method is changed from old-style cascade to chained_irq which is more appropriate. Also, it can process the corner situation that more than one irq is coming to a single chip at the same time. Signed-off-by: Zhou Yanjie --- drivers/irqchip/irq-ingenic.c | 48 +++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/irqchip/irq-ingenic.c b/drivers/irqchip/irq-ingenic.c index 2ff0898..5f775a1 100644 --- a/drivers/irqchip/irq-ingenic.c +++ b/drivers/irqchip/irq-ingenic.c @@ -1,16 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2009-2010, Lars-Peter Clausen - * JZ4740 platform IRQ support - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 675 Mass Ave, Cambridge, MA 02139, USA. - * + * Ingenic XBurst platform IRQ support */ #include @@ -19,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -41,22 +33,34 @@ struct ingenic_intc_data { #define JZ_REG_INTC_PENDING 0x10 #define CHIP_SIZE 0x20 -static irqreturn_t intc_cascade(int irq, void *data) +static void ingenic_chained_handle_irq(struct irq_desc *desc) { - struct ingenic_intc_data *intc = irq_get_handler_data(irq); - uint32_t irq_reg; + struct ingenic_intc_data *intc = irq_desc_get_handler_data(desc); + struct irq_chip *chip = irq_desc_get_chip(desc); + bool have_irq = false; + uint32_t pending; unsigned i; + chained_irq_enter(chip, desc); for (i = 0; i < intc->num_chips; i++) { - irq_reg = readl(intc->base + (i * CHIP_SIZE) + + pending = readl(intc->base + (i * CHIP_SIZE) + JZ_REG_INTC_PENDING); - if (!irq_reg) + if (!pending) continue; - generic_handle_irq(__fls(irq_reg) + (i * 32) + JZ4740_IRQ_BASE); + have_irq = true; + while (pending) { + int bit = __fls(pending); + + generic_handle_irq(bit + (i * 32) + JZ4740_IRQ_BASE); + pending &= ~BIT(bit); + } } - return IRQ_HANDLED; + if (!have_irq) + spurious_interrupt(); + + chained_irq_exit(chip, desc); } static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) @@ -79,11 +83,6 @@ void ingenic_intc_irq_resume(struct irq_data *data) intc_irq_set_mask(gc, gc->mask_cache); } -static struct irqaction intc_cascade_action = { - .handler = intc_cascade, - .name = "SoC intc cascade interrupt", -}; - static int __init ingenic_intc_of_init(struct device_node *node, unsigned num_chips) { @@ -148,7 +147,8 @@ static int __init ingenic_intc_of_init(struct device_node *node, if (!domain) pr_warn("unable to register IRQ domain\n"); - setup_irq(parent_irq, &intc_cascade_action); + irq_set_chained_handler_and_data(parent_irq, + ingenic_chained_handle_irq, intc); return 0; out_unmap_irq: From patchwork Sun Jan 27 15:50:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 10782919 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ABF17139A for ; Sun, 27 Jan 2019 15:53:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A8A92AC4E for ; Sun, 27 Jan 2019 15:53:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B76D2AC56; Sun, 27 Jan 2019 15:53:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33CE42AC4E for ; Sun, 27 Jan 2019 15:53:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726633AbfA0Pxi (ORCPT ); Sun, 27 Jan 2019 10:53:38 -0500 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25412 "EHLO sender-pp-092.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726859AbfA0Pxi (ORCPT ); Sun, 27 Jan 2019 10:53:38 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1548604342; cv=none; d=zoho.com; s=zohoarc; b=a1ChEj4cC4n0KVcBzGVjQI7P3f2L/3IeohYjWIqONJ11pqxTrPPPbCAqO9+0UKW29byopb+G/pM6aIJ6K6jp4PyIxLiaN5hKOOfStX8bRXIbt41RG/FrDEwGE7qZ82c6Dfha5zy+r4IAb0bpRWgoHG8EFB+4R0txvUfB8HgmCiQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1548604342; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=7HzIeaQSUx5xlWAQFwdRtQNLI5/1C3CnMswaPfoyJVs=; b=W9RnTAtkcJuuA6Qd/q3WV2GjhDUKlzjlqDzG1oCsuuU5mNyKRHaPGfZaax7/Wq8yqRV1VUnILURyvzEABP9b1DqA0PBWmAupAxglMxD86B7DFf0IIsrN0u3QwnQA1mL2T72QTyE769JD1E1ZhBZnd/fnp+equGj7NlibA8PKmZk= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=j1Fx6FVWJ6FOFyGO6rfCqdq8jWwYnbNIl3vet8/QxIR5i4b7vKI/Ge+9YQEuVhQ/ZywdE5yBFApv p3njBRyAayU24uXIo204H2fR6kikZdHkp7Sw4XwvXKbajgav0wXv DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1548604342; s=default; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=1406; bh=7HzIeaQSUx5xlWAQFwdRtQNLI5/1C3CnMswaPfoyJVs=; b=TZKtfR0e5kFrO0a+OYNg1Yc94OX/rAJrMzEacRz6MUTCBFLDu9peuoH3Mp03BZF1 1ez+zZCCrpDqYFSizGBT6PrQ4rfzLYL6TVzdpdPPYZfF+JQ489ADe3qtKStiltthRJl AndaaNLPNJ4pUHKTM/md+duiKJ06wriIupqFgwS8= Received: from localhost.localdomain (171.221.112.7 [171.221.112.7]) by mx.zohomail.com with SMTPS id 1548604340770526.6169555892552; Sun, 27 Jan 2019 07:52:20 -0800 (PST) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, mark.rutland@arm.com, marc.zyngier@arm.com, jason@lakedaemon.net, tglx@linutronix.de, syq@debian.org, jiaxun.yang@flygoat.com, 772753199@qq.com Subject: [PATCH v2 2/4] Irqchip: Ingenic: Unify the function name prefix to "ingenic_intc_". Date: Sun, 27 Jan 2019 23:50:30 +0800 Message-Id: <1548604232-19159-3-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548604232-19159-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-2-git-send-email-zhouyanjie@zoho.com> <1548604232-19159-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For the sake of uniform style, function "intc_irq_set_mask" is changed to "ingenic_intc_intc_irq_set_mask". Signed-off-by: Zhou Yanjie --- drivers/irqchip/irq-ingenic.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-ingenic.c b/drivers/irqchip/irq-ingenic.c index 5f775a1..32d090a 100644 --- a/drivers/irqchip/irq-ingenic.c +++ b/drivers/irqchip/irq-ingenic.c @@ -63,7 +63,8 @@ static void ingenic_chained_handle_irq(struct irq_desc *desc) chained_irq_exit(chip, desc); } -static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) +static void ingenic_intc_irq_set_mask(struct irq_chip_generic *gc, + uint32_t mask) { struct irq_chip_regs *regs = &gc->chip_types->regs; @@ -74,13 +75,13 @@ static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) void ingenic_intc_irq_suspend(struct irq_data *data) { struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); - intc_irq_set_mask(gc, gc->wake_active); + ingenic_intc_irq_set_mask(gc, gc->wake_active); } void ingenic_intc_irq_resume(struct irq_data *data) { struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); - intc_irq_set_mask(gc, gc->mask_cache); + ingenic_intc_irq_set_mask(gc, gc->mask_cache); } static int __init ingenic_intc_of_init(struct device_node *node, From patchwork Sun Jan 27 15:50:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 10782921 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0CC0691E for ; Sun, 27 Jan 2019 15:53:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED0522856E for ; Sun, 27 Jan 2019 15:53:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC87E285D4; Sun, 27 Jan 2019 15:53:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FE2D2856E for ; Sun, 27 Jan 2019 15:53:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726468AbfA0Px6 (ORCPT ); Sun, 27 Jan 2019 10:53:58 -0500 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25421 "EHLO sender-pp-092.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726313AbfA0Px6 (ORCPT ); Sun, 27 Jan 2019 10:53:58 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1548604350; cv=none; d=zoho.com; s=zohoarc; b=e402abOJhfYEdqEx7IR6MNQhTy0pXk5BAj7ssgLZoYQIKnJDhU4bdmCZ9VNOavoKONFQON0U3ByLYIjejaS+t2j/xRRjgoCXsugdUhiRc+Dn9zWvcyJyd9HrIlZw0flrMOei1yEYGTZxQ2Ae5Bkhv8XXASM1LQCPV1yBTIsZRb0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1548604350; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=Lfws+SrUczlVhQeNpWQFRPeyRaEDp8ULidmj4Ev13yc=; b=XD6FvV1ZDNLABzrfK14vLkfFfeQYtX7gYfKJ8MTlG9r9fKMSU+xU04KfHNOtwmXhJ7skZMNMAeIgf+YAhOCm4okqdf6B2b7C5ikUnp+gO9XA/Da5NSA703PwpKZbW11d+V7A9HFJl4CwMkLda3GSCrVlie5GAjDBLqxXJ932rQc= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=oIRtoUId1HBg2MuxNmGdL2ER5HWWXS2FqZ+Y0R990krx0FJtRepcQs0VsOotxGi+UcVq7r2RdKWm nKYqkj9B/d+XEjY0koWeNZ0QRtuhpeMFFAW4r1RAfqEDJrX058DV DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1548604350; s=default; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=770; bh=Lfws+SrUczlVhQeNpWQFRPeyRaEDp8ULidmj4Ev13yc=; b=d1XwGHkVSm2u/fjlJMzKnncO/XGrSFOnFL8lkq3/FQqjLI1fW+e3JHkOaiKw/qyN PdiDjIqZ3VDdcJAU439YKvAz5iGwFjo3h4yhRDQWcRf28QnN4XyVSvSDTY17iNb9eZn 0sHyCD6ZtDMF0qShknjDH7FOaGuJBSImySmWPa6U= Received: from localhost.localdomain (171.221.112.7 [171.221.112.7]) by mx.zohomail.com with SMTPS id 1548604348459936.5804509612525; Sun, 27 Jan 2019 07:52:28 -0800 (PST) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, mark.rutland@arm.com, marc.zyngier@arm.com, jason@lakedaemon.net, tglx@linutronix.de, syq@debian.org, jiaxun.yang@flygoat.com, 772753199@qq.com Subject: [PATCH v2 3/4] Irqchip: Ingenic: Add support for the X1000. Date: Sun, 27 Jan 2019 23:50:31 +0800 Message-Id: <1548604232-19159-4-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548604232-19159-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-2-git-send-email-zhouyanjie@zoho.com> <1548604232-19159-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for probing the irq-ingenic driver on the X1000 Soc. Signed-off-by: Zhou Yanjie --- drivers/irqchip/irq-ingenic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-ingenic.c b/drivers/irqchip/irq-ingenic.c index 32d090a..814c68c 100644 --- a/drivers/irqchip/irq-ingenic.c +++ b/drivers/irqchip/irq-ingenic.c @@ -176,3 +176,4 @@ static int __init intc_2chip_of_init(struct device_node *node, IRQCHIP_DECLARE(jz4770_intc, "ingenic,jz4770-intc", intc_2chip_of_init); IRQCHIP_DECLARE(jz4775_intc, "ingenic,jz4775-intc", intc_2chip_of_init); IRQCHIP_DECLARE(jz4780_intc, "ingenic,jz4780-intc", intc_2chip_of_init); +IRQCHIP_DECLARE(x1000_intc, "ingenic,x1000-intc", intc_2chip_of_init); From patchwork Sun Jan 27 15:50:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 10782923 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D806591E for ; Sun, 27 Jan 2019 15:54:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C762B288C4 for ; Sun, 27 Jan 2019 15:54:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA65228A1F; Sun, 27 Jan 2019 15:54:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63DA7288C4 for ; Sun, 27 Jan 2019 15:54:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726386AbfA0PyV (ORCPT ); Sun, 27 Jan 2019 10:54:21 -0500 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25435 "EHLO sender-pp-092.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726313AbfA0PyU (ORCPT ); Sun, 27 Jan 2019 10:54:20 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1548604356; cv=none; d=zoho.com; s=zohoarc; b=R6/ZdaMgNOF9pkw0bLVsNrpse8OEETmN4ZArUey8KW//SP16rP932NJrozwqeE1Q1Ntd0+cc/HCWLodUVbcG+/xBYZ5mMSx+pJxwM9UMTdo+TssDbbZU6TDGfbA5V6vKIoB7411OItZ0ORCa3PrNniqrX9xqH4iIN2yG09yADDU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1548604356; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=rY/XavGAwUpYPVOpnXYmGfQXmo2eWhWeTg/xV/xoD0k=; b=ZEODltv9czxVgPZuAjOv3eCAq/x3iUQHtCvqFtuxE75iIbEMm1MayhvhcJ9zMla5IAmC1QzFPEXxEQniOvuBHh2chNzwBWbfqQ36EwkvKJHrIis+WuqvSjMeuGXApsvSrd1EHQZ2nnRx5uaBRgPXfG8vOwxB8gaKP6wyLfymQfQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=d/13z0UZMZlmc+qHCciFDkPvjTbdVaNNS4K2aHMGUYHEM2jKI8ZLIQe6eEEPs38bqYx1XclxH/3L twb3otmKKcM7pT3CUOxtdZwlojxt8Vd2eBDVuAXnnWCZ8qXMfW4i DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1548604356; s=default; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=940; bh=rY/XavGAwUpYPVOpnXYmGfQXmo2eWhWeTg/xV/xoD0k=; b=BeAE2/jMCtKLZpV4oJLekFrgcLlBROEbqbHK+olAQ0A+aK12zGdbZT5DPHJDmmRA dtBFD3q7xIgDs1hh9dAgGLfeGU03DMMVRZ9ueuTGjNQAZ0M5maW7lxuSvx8XK++9c60 8JBCsuxBD3G9gZcr5/4AL4VmbFcegqBysUC8lkEs= Received: from localhost.localdomain (171.221.112.7 [171.221.112.7]) by mx.zohomail.com with SMTPS id 1548604355986950.1175891927965; Sun, 27 Jan 2019 07:52:35 -0800 (PST) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, mark.rutland@arm.com, marc.zyngier@arm.com, jason@lakedaemon.net, tglx@linutronix.de, syq@debian.org, jiaxun.yang@flygoat.com, 772753199@qq.com Subject: [PATCH v2 4/4] Irqchip: Ingenic: Add support for the X1000. Date: Sun, 27 Jan 2019 23:50:32 +0800 Message-Id: <1548604232-19159-5-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548604232-19159-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-2-git-send-email-zhouyanjie@zoho.com> <1548604232-19159-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for probing the irq-ingenic driver on the X1000 Soc. Signed-off-by: Zhou Yanjie Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt b/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt index d4373d0..fa69b3f 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt @@ -8,6 +8,7 @@ Required properties: ingenic,jz4770-intc ingenic,jz4775-intc ingenic,jz4780-intc + ingenic,x1000-intc - reg : Specifies base physical address and size of the registers. - interrupt-controller : Identifies the node as an interrupt controller - #interrupt-cells : Specifies the number of cells needed to encode an