Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1034379imm; Wed, 8 Aug 2018 09:37:43 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzE6Xkqae7EerI1+Hngb1YWG/bty+pWCx6TgiXl7z+WTu/YQf/DGbqndHiesboMDtZkF3Zx X-Received: by 2002:a62:3a5b:: with SMTP id h88-v6mr3730042pfa.61.1533746263844; Wed, 08 Aug 2018 09:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533746263; cv=none; d=google.com; s=arc-20160816; b=a8hAGRgCJsY/fBhImn7dnmI/ocw9WPJ6yMFEx4PhWd/fY5x/c/4+R+GAyjrJ8zkpgj PVeH32T4Vh5NqSPOp0kQihiqx1Hec0ffVIg5tzzM+q0+Q0/PgoBaMZ/CMmEndIqotO+G 4+ALL53HDFEnft/Llq+M9Dcb+07rOWFfTrswTQer3R/Q0jMINjHDbncOxfcY9IHzMV+F SSWZcZrlN92ifIiiypcAvzQlygrQnOaxKqe3mPQQOZzXUX1tsTeuw7NuAs/fGHBz+Q+h /d58W5T8+mYNaR1GDZP2fMNvbL99ubpPVLzsATT0fjWhwLM0wioqdeSLNaH9744d0z0O 9JZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ndvSnRw4bkHJAXZz6O0qgzSGDQAjWOXOz4jj/KLICAU=; b=rgX4dWUEDlf8ofvvTvWsuc9sWfeZv8qwcB/ZXBfK5QnGvQ08npMHqv14JVmlyTvF9I BlyHw65iW/9zqTBu5HCzDM44S63OD7Xhm3mYISgtlOWTL3L9ytBp0+v9dguZCFOohOcK 0DQM7Bax3M/ri1G9UDbp6GxYpHh9gfnUC45UnljnczrGKo83uM0MBoLk7qz/O2YDlUuD NF5WJH6NGSSoc/lRm6EKMHkiiOocrNuIIrLU4f9Jz1/qJ3ux7ZGilTsMHFAkL0BIq4qf 9ex23WYWO7AMTS72bvfWVJlo+PB5qdB+iGeAwtXvQxkLmX585tacGEYhnI5QYxTEQHTX iWwA== 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 15-v6si4732720pgo.574.2018.08.08.09.37.28; Wed, 08 Aug 2018 09:37:43 -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; 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 S1728396AbeHHS4Z (ORCPT + 99 others); Wed, 8 Aug 2018 14:56:25 -0400 Received: from verein.lst.de ([213.95.11.211]:38833 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727062AbeHHS4Z (ORCPT ); Wed, 8 Aug 2018 14:56:25 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 7823768D60; Wed, 8 Aug 2018 18:41:27 +0200 (CEST) Date: Wed, 8 Aug 2018 18:41:27 +0200 From: Christoph Hellwig To: Rob Herring Cc: Christoph Hellwig , Mark Rutland , Thomas Gleixner , Palmer Dabbelt , Jason Cooper , Marc Zyngier , Anup Patel , atish.patra@wdc.com, devicetree@vger.kernel.org, Albert Ou , "linux-kernel@vger.kernel.org" , linux-riscv@lists.infradead.org, Stafford Horne , Palmer Dabbelt Subject: Re: [PATCH 6/8] dt-bindings: interrupt-controller: RISC-V PLIC documentation Message-ID: <20180808164127.GA5733@lst.de> References: <20180804082319.5711-1-hch@lst.de> <20180804082319.5711-7-hch@lst.de> <20180808150448.GA31785@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 08, 2018 at 10:15:58AM -0600, Rob Herring wrote: > 'interrupts' (via > interrupt-parent) or 'interrupts-extended' has to point to an > 'interrupt-controller' node. I guess you could make the cpu nodes > interrupt-controllers. That's a bit strange, but I can't think of a > reason why that wouldn't work. It could work, and would actually match how the hardware works fairly closely. > Just because the cpu-intc is not made to be an irqchip in the kernel > doesn't mean it can't still be represented as an interrupt-controller > in DT. It shouldn't be designed just around how some OS happens to > implement things. Independent of how you implement it, there isn't really such a thing as the cpu-intc. The CPU itself has a number of exceptions, that are all handled the same way. One of them just happens to be the connection to an external interrupt controller. That being said I'm fine with keeping up the pretence (at least in DT) that it is a separate entity and resubmit the cpu-intc docs given how widespread they exist already.