Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1470880ybv; Thu, 20 Feb 2020 21:15:14 -0800 (PST) X-Google-Smtp-Source: APXvYqz8BU3QqSpJqbEP5k3bbusO1RhAjPDN7AbEQh9x1hJDzl+UpAc44PcgffUW5+zpWEx45H31 X-Received: by 2002:a9d:6c58:: with SMTP id g24mr28052409otq.229.1582262114680; Thu, 20 Feb 2020 21:15:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582262114; cv=none; d=google.com; s=arc-20160816; b=ETSZj9M9AA3mR7bfGI99kNlqLWmnVRtxwt7dicSUhik8AmR5IWqOjtmmOOCp12mpXg HKuxhPMmhP6f5jbwwvl7rgvao6/6nlX4ZpsoHwuJEQrisY+Z0budd+DFDXgWHD+WqPjr gs9mQTcK2WNRDh/yBVPjW5AdPD3qfIKydwEdslsE5LPx7Tbh09Y1jdGI5PaL4pVPb7g3 2MCcgPShgQeWNoqvtG+r8q0dr1joCn09Kjw7I8bW3cKe3HxvPa5skUQc2bv7zVY6lD0l hwxGmu+VF63xuZZfIKZNG2OgXkcOUPBFlv8Pl5Lwbzbw9X4KTe+Z+rwmt+2XNkVRoQTW R3tg== 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:mime-version :references:in-reply-to:date:subject:message-id:cc:to:from :dkim-signature; bh=bdM/oVyHvlwhaJ5mV14mps3hkzcUh+yTBLugxOhi99k=; b=onqfAcUHJMnPUSMr8HhA2+XhYyXm6P2ufZljIBbrzGV2fFtSCKIv7jNjU9m/jnDIX8 bLDAaCiv1d10/9ftb+zt5bd2KmxdSB999N1zFxo7Fn+ARL7q42nEQUwZ4gAQ8RweC2f6 LU2iH8FGvbyz4yRWpvKK6jWorMDN54JZc2QoyckUIctsCQdXGMoZG54BuvteL1pUqA91 bgcxvKewSn9tX1E3to5dZD0Y35Np2oRdo81zMSG5JFPYYljJGbG4JKdmpd6nMQp1X30S ZWItOxLRoPnW3d/VPg31rG/ou7uoahSx4zW/8HnWM6Jkht9blKmf4gMjcyul+LsfJ/iv x0Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=bErcOkfH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si892854otn.293.2020.02.20.21.15.03; Thu, 20 Feb 2020 21:15:14 -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; dkim=pass header.i=@flygoat.com header.s=mail header.b=bErcOkfH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727876AbgBUFNd (ORCPT + 99 others); Fri, 21 Feb 2020 00:13:33 -0500 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17847 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbgBUFNd (ORCPT ); Fri, 21 Feb 2020 00:13:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1582261967; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=bdM/oVyHvlwhaJ5mV14mps3hkzcUh+yTBLugxOhi99k=; b=bErcOkfHUJnWWmCo2NBtyQLLXMx3HYhVN4/FOMnguKhn+yjub9eVpAdqm33Z7oyK 3yBhjvYSu8+rb1/x4h3GT46adlqGdbe1Utiqa4t3Qx10VirAbZuuU9CwtijT+ATXNdD VHv/9oKg27NkTMxgcZ7OEQ3oEn4dnaHleLpUdIzg= Received: from localhost.localdomain (39.155.141.144 [39.155.141.144]) by mx.zoho.com.cn with SMTPS id 1582261966089104.86342790163371; Fri, 21 Feb 2020 13:12:46 +0800 (CST) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , Huacai Chen , Greg Kroah-Hartman , Allison Randal , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Message-ID: <20200221050942.507775-6-jiaxun.yang@flygoat.com> Subject: [PATCH v4 05/10] irqchip: mips-cpu: Convert to simple domain Date: Fri, 21 Feb 2020 13:09:20 +0800 X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221050942.507775-1-jiaxun.yang@flygoat.com> References: <20200221050942.507775-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoCNMailClient: External Content-Type: text/plain; charset=utf8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The old code is using legacy domain to setup irq_domain for CPU interrupts which requires irq_desc to be preallocated. However, when MIPS_CPU_IRQ_BASE >=3D 16, irq_desc for CPU IRQs may end up unallocated and lead to incorrect behavior. Thus we convert the legacy domain to simple domain which can allocate irq_d= esc during initialization. Signed-off-by: Jiaxun Yang --- drivers/irqchip/irq-mips-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mips-cpu.c b/drivers/irqchip/irq-mips-cpu.= c index 95d4fd8f7a96..c3cf7fa76424 100644 --- a/drivers/irqchip/irq-mips-cpu.c +++ b/drivers/irqchip/irq-mips-cpu.c @@ -251,7 +251,7 @@ static void __init __mips_cpu_irq_init(struct device_no= de *of_node) =09clear_c0_status(ST0_IM); =09clear_c0_cause(CAUSEF_IP); =20 -=09irq_domain =3D irq_domain_add_legacy(of_node, 8, MIPS_CPU_IRQ_BASE, 0, +=09irq_domain =3D irq_domain_add_simple(of_node, 8, MIPS_CPU_IRQ_BASE, =09=09=09=09=09 &mips_cpu_intc_irq_domain_ops, =09=09=09=09=09 NULL); =09if (!irq_domain) --=20 2.25.0