Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1491327imu; Sat, 26 Jan 2019 04:11:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN4fAGSYUelqSBI7r1olFrRibiOd8nQ7Iq7Lhh6EsYNx13OXFztb/RDvob8D5S1Py47NNNii X-Received: by 2002:a62:fb07:: with SMTP id x7mr14654028pfm.71.1548504691667; Sat, 26 Jan 2019 04:11:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548504691; cv=none; d=google.com; s=arc-20160816; b=kxOfIBsGJELZ/CSy0ah2fSMRjKTbqeFxzNCppgdI7E+SM+RIEVQeIOtQXW/ZomFhEP qrYDUlqwfSybGxjd4zdHE+cOCDm3ntb3YII3mbkSQOxP6IG/EAQ6m/RZk9RHONu4yQFK ETzuNt+HwfJVYxDkB4q8xNFsEpk6aBXsukaOUnBxkzXsfpXN2B19c1zpbHQbbjouMfJl fD/Y0jr16uJOZDB3as7pNb5H4B2I8vWDfDhxYqAN3iXyPi6VyTRT33badEgpE06+ReqO dmv+KQnZqitiLPAWHuIuivNUAo0jdPXvZW3Ftk3efcfbsVGQAMnZ2E+kBpEhra6rpRmP Q6fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=smkzqzvd/ISOWx3q6imlql4ayX/uV8krPmTcfU9L9h4=; b=l5jqu6lxxGJlNYeA1aCU8vUyfUnR4/J/o+zc7Ouka6IGdj8UFqXqVQ4AZU5SXn9GZB iOuGzVwM6AfPsCN3n/CSorf3Grv6rkLZ1fkEDb8mgNVZGHZ+jro0v5AE9FKo2xtCDzEX zzYfes5O70SpJYHkR7txhC63cGKRk7vRQnvpyfNh5A5KFt1ALAUiPiE4w2lFlrbZQnWo eA+f0XSoGmBV7Pi22kklmfi4+qy7BOu0pEw2eNgS1sDSTxTw18FlBLshpQrKOg7mn8rB eKhjBTxoHZj+t2krBIRJ48vZBA7UiWQAJKrwjKrWUpyz6xgRIAV5LKDu2HFlXS0jiR7K 40Sw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n30si26230198pgb.406.2019.01.26.04.11.16; Sat, 26 Jan 2019 04:11:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729466AbfAZMJX (ORCPT + 99 others); Sat, 26 Jan 2019 07:09:23 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57862 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbfAZMJX (ORCPT ); Sat, 26 Jan 2019 07:09:23 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D2A5EA78; Sat, 26 Jan 2019 04:09:22 -0800 (PST) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B9F3E3F5C1; Sat, 26 Jan 2019 04:09:20 -0800 (PST) Date: Sat, 26 Jan 2019 12:09:18 +0000 Message-ID: <868sz78vtd.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Jiaxun Yang Cc: linux-mips@vger.kernel.org, tglx@linutronix.de, jason@lakedaemon.net, robh+dt@kernel.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 1/2] irqchip: Add driver for Loongson-1 interrupt controller In-Reply-To: References: <20190122154557.22689-1-jiaxun.yang@flygoat.com> <20190124032730.18237-1-jiaxun.yang@flygoat.com> <20190124032730.18237-2-jiaxun.yang@flygoat.com> <86pnsm8jon.wl-marc.zyngier@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Jan 2019 10:56:33 +0000, Jiaxun Yang wrote: > > Hi Marc > > Thanks for your suggestions, I'm working on v4 and I would like to > ask if it is better to have a driver for only one irqchip and create > dt nodes for each chip, or just register all the chips in a single > driver with only one dt node. It would make more sense to have a node per chip, meaning that you end-up with one instance per chip as well. It won't make the driver much more complicated. [...] > >> + domain = irq_domain_add_legacy(node, num_chips * 32, LS1X_IRQ_BASE, 0, > >> + &irq_domain_simple_ops, NULL); > > Why a legacy domain? This is usually reserved to old drivers that are > > converted to a new infrastructure, while needing some form of platform > > hacks. I don't see this being the case here. > > > > It is also worrying that although you have up to 5 irqchips, they all > > share a single domain. What does this mean? each irqchip is expected > > to have its own domain. > > Yes, I do like this for backward compatible reason. I'm turning > a legacy platform device mach(arch/mips/loongson32) in to > dt based generic mach and I would like to do it step by step rather > than one time. > > So I use legacy domain in order to keep IRQ same with the > old driver exist on arch/mips/loongson32/common/irq.c OK, it would have been good to make a note of that in the cover letter, which is a bit empty at the moment. Thanks, M. -- Jazz is not dead, it just smell funny.