From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755711AbdKBQer (ORCPT ); Thu, 2 Nov 2017 12:34:47 -0400 Received: from smtprelay0227.hostedemail.com ([216.40.44.227]:41671 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751587AbdKBQep (ORCPT ); Thu, 2 Nov 2017 12:34:45 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:966:973:988:989:1042:1260:1277:1311:1313:1314:1345:1359:1373:1431:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2559:2562:2828:2904:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3871:3872:3873:4250:4321:4385:4605:4823:5007:6119:6742:7576:7903:7974:9040:10004:10400:10562:10848:11026:11232:11658:11914:12043:12296:12438:12740:12760:12895:13439:14181:14659:14721:21080:21325:21451:21611:21627:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: quill99_46032c0d21e55 X-Filterd-Recvd-Size: 3601 Message-ID: <1509640479.31043.80.camel@perches.com> Subject: Re: [PATCH v7 2/5] irqchip/irq-goldfish-pic: Add Goldfish PIC driver From: Joe Perches To: Aleksandar Markovic , linux-mips@linux-mips.org Cc: Miodrag Dinic , Goran Ferenc , Aleksandar Markovic , "David S. Miller" , Douglas Leung , Greg Kroah-Hartman , James Hogan , Jason Cooper , linux-kernel@vger.kernel.org, Marc Zyngier , Mauro Carvalho Chehab , Miodrag Dinic , Paul Burton , Petar Jovanovic , Raghu Gandham , Randy Dunlap , Thomas Gleixner Date: Thu, 02 Nov 2017 09:34:39 -0700 In-Reply-To: <1509639716-4787-3-git-send-email-aleksandar.markovic@rt-rk.com> References: <1509639716-4787-1-git-send-email-aleksandar.markovic@rt-rk.com> <1509639716-4787-3-git-send-email-aleksandar.markovic@rt-rk.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2017-11-02 at 17:21 +0100, Aleksandar Markovic wrote: > From: Miodrag Dinic > > Add device driver for a virtual programmable interrupt controller > > The virtual PIC is designed as a device tree-based interrupt controller. > > The compatible string used by OS for binding the driver is > "google,goldfish-pic". > > Signed-off-by: Miodrag Dinic > Signed-off-by: Goran Ferenc > Signed-off-by: Aleksandar Markovic > wq vi much? > diff --git a/drivers/irqchip/irq-goldfish-pic.c b/drivers/irqchip/irq-goldfish-pic.c [] > @@ -0,0 +1,134 @@ > +/* > + * Driver for MIPS Goldfish Programmable Interrupt Controller. > + * > + * Author: Miodrag Dinic > + * > + * This program is free software; you can redistribute it and/or modify it > + * under the terms of the GNU General Public License as published by the > + * Free Software Foundation; either version 2 of the License, or (at your > + * option) any later version. > + */ Odd mix of spaces and tabs It'd be good to add a #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt before any #include so the pr_ output is prefixed appropriately. > +#include > +#include > +#include > +#include > +#include > +#include > +#include [] > +static int __init goldfish_pic_of_init(struct device_node *of_node, > + struct device_node *parent) > +{ [] > + parent_irq = irq_of_parse_and_map(of_node, 0); > + if (!parent_irq) { > + pr_err("Failed to map Goldfish PIC parent IRQ!\n"); So these could become pr_err("Failed to map parent IRQ\n"); > + ret = -EINVAL; > + goto out_free; > + } > + > + gfpic->base = of_iomap(of_node, 0); > + if (!gfpic->base) { > + pr_err("Failed to map Goldfish PIC base!\n"); pr_err("Failed to map base\n"); etc...