From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 3/3] irqchip: RISC-V Local Interrupt Controller Driver Date: Sat, 23 Jun 2018 00:28:24 -0700 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-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20180622232006.12158-4-palmer@sifive.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+glpr-linux-riscv=m.gmane.org@lists.infradead.org To: Palmer Dabbelt Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, aou@eecs.berkeley.edu, jason@lakedaemon.net, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, Palmer Dabbelt , shorne@gmail.com, tglx@linutronix.de, Michael Clark , linux-riscv@lists.infradead.org List-Id: devicetree@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