Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp203120ybl; Thu, 29 Aug 2019 21:35:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGnm+MYR5GCq6Oe5dsgt6WUWvMpNe2Iuwma+BBYV8Oi4tJIRhMg66B2SsBc1abBzENIKBq X-Received: by 2002:a17:902:b604:: with SMTP id b4mr13338559pls.94.1567139719378; Thu, 29 Aug 2019 21:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567139719; cv=none; d=google.com; s=arc-20160816; b=q5yfdliuTahjsisNYBMrpPeJaZnDq8zUOTXQsBJEmipctWmuMpNkPKaWtwU7rhsgGh 4VsJNz+K9nw2mijjMGRbEho4yG6tDsLJJIw4oGuiWhd5oa9aOtWqB2/8GNAearadFnYr TIfk640c0yILfwBxqQ0ib/PBsmONUm8TkxB7Ap1cXNoEXBAM0RAfzViTyIG8U4KRZZ4J Uib0PP0v1CxBEWanMepqw7aX++DmsQ+42sWH0MUyPJLp7mFcL80mdjRYt5CVWnA/C7be AllN7fACvl7QJQHb4299d3VS+n3z654dg40UsC+73OBRLkrdDWwtdYSVeE2aQly2jwfd 9+bw== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=lGWrm07yEb+iDYbXl6MNXFFYrFAuttvAedBfbL1LKfs=; b=wGefnEPHtHcJhLBvBSLOR95t2JfhJRgTB028tgrVyqLiIeqpEp1iox5ENia+SbvysJ 8k9GhYa+pCTmwHiZysA8ZD1SbLO9suSkWmbAIKxcQZHdNiQzm0VPMbR8Llj7/x/j/tGD s8I/LKx1wiIl+WRs4qCJaVWqmT1Xp95OQz9855ILi/NZbadSTmk+l2LSuDBa28AnsY7r HN8WOXzCj3nSRsweAHud3IPngBiCgXuYLZzG8xFfXSHV78VKGQvGBuSggVLyaghMP5mH mRi9TkLtSE24Y0J2nkVAijHzHrC7fBBv1g4lBl6T9klRwsRyddpzwKxgdKWpWMYECUsu pBrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=ZApguL0D; 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 72si5091779pfx.268.2019.08.29.21.35.04; Thu, 29 Aug 2019 21:35:19 -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=ZApguL0D; 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 S1728058AbfH3Edi (ORCPT + 99 others); Fri, 30 Aug 2019 00:33:38 -0400 Received: from forward102o.mail.yandex.net ([37.140.190.182]:42400 "EHLO forward102o.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbfH3Edi (ORCPT ); Fri, 30 Aug 2019 00:33:38 -0400 Received: from mxback10j.mail.yandex.net (mxback10j.mail.yandex.net [IPv6:2a02:6b8:0:1619::113]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 828266681208; Fri, 30 Aug 2019 07:33:35 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback10j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id WttFCfbAvP-XZQm3GJ6; Fri, 30 Aug 2019 07:33:35 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1567139615; bh=lGWrm07yEb+iDYbXl6MNXFFYrFAuttvAedBfbL1LKfs=; h=In-Reply-To:Subject:To:From:Cc:References:Date:Message-Id; b=ZApguL0DbnmD8amq5tlJ+XxxwARSvb0QUn9AypJZSPlM1sS9VYeyUbYU1N62/KObk EJ7md1pMDy2PMqxv7YDpNU77X1ff5/KW17mNscbXH7wPRPIGd6MYthnTj8YAqsVhZL AL6mCSssaQFSDnYRDDF2u1+awCBhijInob4V9tI8= Authentication-Results: mxback10j.mail.yandex.net; dkim=pass header.i=@flygoat.com Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vFuwVxmDwr-XQDG0QFh; Fri, 30 Aug 2019 07:33:33 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: chenhc@lemote.com, paul.burton@mips.com, tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.co, devicetree@vger.kernel.org, Jiaxun Yang Subject: [PATCH v1 10/18] irqchip: mips-cpu: Convert to simple domain Date: Fri, 30 Aug 2019 12:32:24 +0800 Message-Id: <20190830043232.20191-5-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190830043232.20191-1-jiaxun.yang@flygoat.com> References: <20190830043232.20191-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 being preallocated. However, when MIPS_CPU_IRQ_BASE >= 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_desc 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_node *of_node) clear_c0_status(ST0_IM); clear_c0_cause(CAUSEF_IP); - irq_domain = irq_domain_add_legacy(of_node, 8, MIPS_CPU_IRQ_BASE, 0, + irq_domain = irq_domain_add_simple(of_node, 8, MIPS_CPU_IRQ_BASE, &mips_cpu_intc_irq_domain_ops, NULL); if (!irq_domain) -- 2.22.0