Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1699194imm; Sat, 23 Jun 2018 00:29:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKLTK0I5HTlDuoCvjqHhZ9ocBmnafOk+iv2WlqDh10iHLnqXUil1geiuCsvqg5/6E711u49 X-Received: by 2002:a17:902:2f84:: with SMTP id t4-v6mr4568717plb.24.1529738964670; Sat, 23 Jun 2018 00:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529738964; cv=none; d=google.com; s=arc-20160816; b=bgdMjoqtr7AoHawsZU4evDlmRkc5Hw3AKEPULltECMVttNWD1+z9hJZkUhg3h/8brC BWFoh2cgrf0I6yzNHN9w9laOWU0BBHFsOXyVfS3W+ZoZBZzu8bvyJL9FfR/gDU350i76 XI9EojARYqbHH/Nf6xen4qzST1jSB6xq4ZvzyLLncYkrucodjioKTOKTxSWGBdnQVGdn mOP77SugxNSSLeFeECOEgwaTDaoN1vTQcZDe2AhQIEmd41+XTITcrXKjKvDuVj4x8ygS ZRT/PaHrTrYk61cDNmJw6s7KJqth66k9OIK3yfh5hSQVthLTZpUfN6bCOApGmtaoIu9O SoDg== 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:dkim-signature:arc-authentication-results; bh=j5mUwJRIKGIxvlP3o+tfxwNq8eRopr5+SexQQWZwDFA=; b=jSjIa3w4TKV7MYO9DtWubg/hanAJ0Q/v/DJ7PnJmHEg69fxmZdw0tNcJyP4IfF+4lA QCCXJlTUk/fhpilRZggTw3lHV1+MYDRRxTTCe2igfkRjimODPEBtYD1sOjlZQQ7OD3Gc Ke+rHQcAa2XCXXhgZJjHODULstx94r+QN96leVle1OUSByJ9TECu2x9tV52uHwsHLCaR 8ei192V5DIDMrxB1GCybJ9DV9dOr0s3Y0vOFizfNYLPtQbmPrG1x6H0lWl9fio/ysThh /DYvShP4EpRiOMQn8ArxD5Dz7ECQa89WizCHYAjOkx4bvBpD6lgYmU1rVUMMIHyBxDAA kqzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ACXAC4Z1; 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 y21-v6si8599615pfm.1.2018.06.23.00.29.10; Sat, 23 Jun 2018 00:29:24 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ACXAC4Z1; 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 S1751572AbeFWH23 (ORCPT + 99 others); Sat, 23 Jun 2018 03:28:29 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47606 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751514AbeFWH22 (ORCPT ); Sat, 23 Jun 2018 03:28:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=j5mUwJRIKGIxvlP3o+tfxwNq8eRopr5+SexQQWZwDFA=; b=ACXAC4Z15KTJnRQwUoXtwO9Wb yFenn8yBOL+/QOHRgux2bb69bBRwgiRSKZZNYVxqygl3Hq210C944G/RNotPmzLne39Prt69HtRmX ws+p5UNLAWewhmZa9vfmc93EkY0+/YyMgLVnEnzlU8WXrqojVC5xHIc92ClfdVdctvMKO2Z6LtO73 ZxEC7oaL3vJV0UpQdzQ682IdLa0F8cBmDe62IfT6liNJjjAiad+slNGrTdy1SNLrzTyiP4qg7y+03 OQcQm25bU4DAHijvciZJ6pqrVPh3LwV+2IGoBV2Y0coopsQQ/NMMXGbA85r0zh5727a7I3ZPxW570 eWysXlyUg==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fWcy9-0008Nz-23; Sat, 23 Jun 2018 07:28:25 +0000 Date: Sat, 23 Jun 2018 00:28:24 -0700 From: Christoph Hellwig To: Palmer Dabbelt Cc: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, Michael Clark , Palmer Dabbelt , linux-riscv@lists.infradead.org, shorne@gmail.com Subject: Re: [PATCH 3/3] irqchip: RISC-V Local Interrupt Controller Driver Message-ID: <20180623072824.GC25573@infradead.org> References: <20180622232006.12158-1-palmer@sifive.com> <20180622232006.12158-4-palmer@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180622232006.12158-4-palmer@sifive.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +config RISCV_INTC > + #bool "RISC-V Interrupt Controller" > + depends on RISCV > + default y > + help > + This enables support for the local interrupt controller found in > + standard RISC-V systems. The local interrupt controller handles > + timer interrupts, software interrupts, and hardware interrupts. > + Without a local interrupt controller the system will be unable to > + handle any interrupts, including those passed via the PLIC. This can just be: config RISCV_INTC def_bool y if RISCV depends on RISCV as this isn't a user selectable option. > index 000000000000..7ca3060e76b4 > --- /dev/null > +++ b/drivers/irqchip/irq-riscv-intc.c > @@ -0,0 +1,215 @@ > +/* > + * Copyright (C) 2012 Regents of the University of California > + * Copyright (C) 2017-2018 SiFive > + */ > +/* SPDX-License-Identifier: GPL-2.0 */ SPDX tags need to be the first thing in the file, and use // -style comments. FYI, I've got a version with this and a few other cleanups here: http://git.infradead.org/users/hch/riscv.git/commitdiff/d0789843f663ba8a6573ac5f73d8b6f999c8e6ed