Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4977267ybb; Tue, 24 Mar 2020 08:42:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu8ILDhbf/myhm9c+0SA8GHM61xS+AdggJJSITM0Sx6tLpJRf6cPkX4cPfVjcCJVGHYHWtC X-Received: by 2002:a9d:798a:: with SMTP id h10mr1909539otm.367.1585064558366; Tue, 24 Mar 2020 08:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585064558; cv=none; d=google.com; s=arc-20160816; b=crKmrc8BogijL/uf+iKVGUTaAJU3eZ4/ClcfFhwnuWEwRFdyagjF1v6+oG3yAV3TXu DYNHUeeaY7ewMv7KklKcxxVELC3H9vqfjfW7aT/lT2YgLYx3qNEhe8fCKnkkUyOkgVeh xA/Fy5Vymf3NQ+F0TL9joc2ddT5e6DZhKaxj/NQH5X5l5Ov3waVY2rXP/oJc8asDFj7O 154rWQeeJBJtSqnD/laEMmrW6wQG0/xCrHTslAyPedVzefWgrxmjj5whX4a6AEJ0sebt BYRH+RGQYxnbuWOJ0tIFqEd4TFYnlR4FoRJIJ1e82O9As1uag2Hlo1xC8bXLTBPndnsp lr7Q== 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=/2lzGckd44y7J3i8bIgDra9A9mus3vdjKhhw5nanvI0=; b=pkEOQPewx0NO+ZgpazOqmQmMcLTrobkwWs99F1PEtzGRq3RSkVK4+09X25XP7T4gu2 51w6StJOPyWLZqvLh+CcUgvurtaqOMdLGo+XHfLkrudjJiJN2/minNgD4kMrGvWjHjPv rj8XJsM1YWHLYgS6FXzS0bvMZ6kLE+7FqE0ymE1yp4gzZrkUFjz0sRitqv3vaY/Htq0h aViceaBiFkEOcCKeK4149Ji4qnwV4jmZ4TUwKTDl8F96YuqI5dG8aMtVe8OjHmU7mcIM zmK6RbeXA5wU5DvOiEtY7/RdJyjDiyI/+stLy9nuPURBkheEpbTzuwRj+RSbU5EG+0Fm VBMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=XCjISrZ9; 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 k4si6123473otn.41.2020.03.24.08.42.24; Tue, 24 Mar 2020 08:42:38 -0700 (PDT) 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=XCjISrZ9; 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 S1728520AbgCXPlW (ORCPT + 99 others); Tue, 24 Mar 2020 11:41:22 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17809 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727510AbgCXPlW (ORCPT ); Tue, 24 Mar 2020 11:41:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1585064299; 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=/2lzGckd44y7J3i8bIgDra9A9mus3vdjKhhw5nanvI0=; b=XCjISrZ9zlFOR8/lqe/aheiantPiD9d0DXcU1cKAexkgj3+b2QefhU5XtkKKCNnR Nziduw+XFKxju0FCx0aBhfhUmEZiUdjg+R7iLF7lbct59R5/LBUDlK2Bnh2BuZBDQaE bD7TeG7+iY6bT8eTFZZwgBGhfTmREVK1BTpXzPi8= Received: from localhost.localdomain (39.155.141.144 [39.155.141.144]) by mx.zoho.com.cn with SMTPS id 1585064296717138.06027004625264; Tue, 24 Mar 2020 23:38:16 +0800 (CST) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Huacai Chen , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland , Thomas Bogendoerfer , Allison Randal , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Message-ID: <20200324153624.23109-7-jiaxun.yang@flygoat.com> Subject: [PATCH v6 06/11] irqchip: mips-cpu: Convert to simple domain Date: Tue, 24 Mar 2020 23:36:03 +0800 X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200324153624.23109-1-jiaxun.yang@flygoat.com> References: <20200324153624.23109-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. Co-developed-by: Huacai Chen 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.26.0.rc2