From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 8/8] ARM: ux500: move cpuidle drivers to drivers/cpuidle/ Date: Wed, 26 Jun 2013 23:28:27 +0200 Message-ID: <201306262328.28009.arnd@arndb.de> References: <1372241747-21083-1-git-send-email-b.zolnierkie@samsung.com> <1372241747-21083-9-git-send-email-b.zolnierkie@samsung.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from moutng.kundenserver.de ([212.227.17.9]:61607 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751585Ab3FZV2t (ORCPT ); Wed, 26 Jun 2013 17:28:49 -0400 In-Reply-To: Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Linus Walleij Cc: Bartlomiej Zolnierkiewicz , Rickard ANDERSSON , Olof Johansson , "linux-arm-kernel@lists.infradead.org" , "linux-pm@vger.kernel.org" , Andrew Victor , Nicolas Ferre , Jean-Christophe PLAGNIOL-VILLARD , "Nori, Sekhar" , ext Kevin Hilman , Sascha Hauer , Shawn Guo , ext Tony Lindgren , Ben Dooks , Kukjin Kim , Simon Horman , Magnus Damm , Stephen Warren , Srinidhi KASAGAR , Daniel Lezcano On Wednesday 26 June 2013, Linus Walleij wrote: > On Wed, Jun 26, 2013 at 12:15 PM, Bartlomiej Zolnierkiewicz > wrote: > > --- a/arch/arm/mach-ux500/cpuidle > -#include "db8500-regs.h" > -#include "id.h" > > +++ b/drivers/cpuidle/cpuidle-ux500.c > (...) > > +#include "../../arch/arm/mach-ux500/db8500-regs.h" > > +#include "../../arch/arm/mach-ux500/id.h" > > Well that was creative. NACK. > > If you want to move the driver you need to come up with > proper interfaces making the move clean, not just move the files > and make them compile somewhere else I think. Seconded. Moving the code into drivers/cpuidle/ doesn't actually turn it into a proper driver. If we cannot find a way to make these look like drivers, we shouldn't move them. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Wed, 26 Jun 2013 23:28:27 +0200 Subject: [PATCH 8/8] ARM: ux500: move cpuidle drivers to drivers/cpuidle/ In-Reply-To: References: <1372241747-21083-1-git-send-email-b.zolnierkie@samsung.com> <1372241747-21083-9-git-send-email-b.zolnierkie@samsung.com> Message-ID: <201306262328.28009.arnd@arndb.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wednesday 26 June 2013, Linus Walleij wrote: > On Wed, Jun 26, 2013 at 12:15 PM, Bartlomiej Zolnierkiewicz > wrote: > > --- a/arch/arm/mach-ux500/cpuidle > -#include "db8500-regs.h" > -#include "id.h" > > +++ b/drivers/cpuidle/cpuidle-ux500.c > (...) > > +#include "../../arch/arm/mach-ux500/db8500-regs.h" > > +#include "../../arch/arm/mach-ux500/id.h" > > Well that was creative. NACK. > > If you want to move the driver you need to come up with > proper interfaces making the move clean, not just move the files > and make them compile somewhere else I think. Seconded. Moving the code into drivers/cpuidle/ doesn't actually turn it into a proper driver. If we cannot find a way to make these look like drivers, we shouldn't move them. Arnd