Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758228Ab3EWKjk (ORCPT ); Thu, 23 May 2013 06:39:40 -0400 Received: from 5.mo4.mail-out.ovh.net ([188.165.44.50]:33038 "EHLO mo4.mail-out.ovh.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758088Ab3EWKjj (ORCPT ); Thu, 23 May 2013 06:39:39 -0400 Date: Thu, 23 May 2013 12:26:01 +0200 From: Jean-Christophe PLAGNIOL-VILLARD To: Thomas Petazzoni Cc: boris brezillon , Thomas Gleixner , Nicolas Ferre , Andrew Victor , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-Ovh-Mailout: 178.32.228.4 (mo4.mail-out.ovh.net) Subject: Re: [PATCH 1/3] ARM: at91: move at91 aic driver to drivers/irqchip Message-ID: <20130523102601.GI9937@game.jcrosoft.org> References: <1369299909-10078-1-git-send-email-b.brezillon@overkiz.com> <1369299909-10078-2-git-send-email-b.brezillon@overkiz.com> <20130523090611.GG9937@game.jcrosoft.org> <519DE6A8.6040502@overkiz.com> <20130523120920.1df8e23a@skate> <20130523100951.GH9937@game.jcrosoft.org> <20130523122000.22a9a4d0@skate> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130523122000.22a9a4d0@skate> X-PGP-Key: http://uboot.jcrosoft.org/plagnioj.asc X-PGP-key-fingerprint: 6309 2BBA 16C8 3A07 1772 CC24 DEFC FFA3 279C CE7C User-Agent: Mutt/1.5.20 (2009-06-14) X-Ovh-Tracer-Id: 17273556372176153450 X-Ovh-Remote: 213.251.161.87 (ns32433.ovh.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeiiedrtddtucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeiiedrtddtucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2496 Lines: 66 On 12:20 Thu 23 May , Thomas Petazzoni wrote: > Dear Jean-Christophe PLAGNIOL-VILLARD, > > On Thu, 23 May 2013 12:09:51 +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > > > You can put it in , there are already a few > > > headers there. But I think it's not the right solution. > > > > > > *However*, ideally, this header should disappear completely. All the > > > register defines should go directly into the driver C file. The only > > > usage of the AIC defines outside of the IRQ driver are for debug prints > > > in the pm.c code, which I think you could get rid of. > > > > > > Ditto for the at91_aic_{read,write} macros. > > > > > > The NR_AIC5_IRQS can also move to the driver itself. > > > > > > The only remaining one would be NR_AIC_IRQS, you can't get rid of it, > > > because it's used for the IRQ priority arrays. But I believe keeping > > > this one in is reasonable. > > > > do want either as we expose the register acces for pm & co > > Did you read what I write? In arch/arm/mach-at91/pm.c, the only > accesses made to the AIC registers are for pr_debug() calls, i.e only > to print some debugging messages. I believe those ones can simply be > removed to decouple the pm.c code from the irq.c code. yes I read and yes I do not want to move code before we do cleanup MANDATORY unclean code in mach-at91 is fine this is legacy, move them arround NACK we cleanup first > > > until this is cleanup NACK > > Is this really the way we want to welcome contributions in the kernel > community? > > Boris, what you'd have to do is just do a few preparations patches > in your patch set. Something like: > > * PATCH 1: remove usage of AIC registers for debug messages in pm.c NACK I do want this debug, very usefull to debug pm Best Regards, J. > * PATCH 2: move all of at91_aic.h in irq.c, except NR_AIC_IRQS > * PATCH 3: move irq.c to drivers/irqchip/, and at91_aic.h to > include/linux/irqchip/, and adjust what's necessary > * and then your other patches. > > Best regards, > > Thomas > -- > Thomas Petazzoni, Free Electrons > Kernel, drivers, real-time and embedded Linux > development, consulting, training and support. > http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/