From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH 5/8] mfd: Move pm8xxx-irq.c contents into only driver that uses it Date: Wed, 11 Dec 2013 09:35:52 +0000 Message-ID: <20131211093552.GG16780@lee--X1> References: <1386718523-2587-1-git-send-email-sboyd@codeaurora.org> <1386718523-2587-6-git-send-email-sboyd@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-yh0-f48.google.com ([209.85.213.48]:41053 "EHLO mail-yh0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882Ab3LKJf5 (ORCPT ); Wed, 11 Dec 2013 04:35:57 -0500 Received: by mail-yh0-f48.google.com with SMTP id f73so4829098yha.35 for ; Wed, 11 Dec 2013 01:35:57 -0800 (PST) Content-Disposition: inline In-Reply-To: <1386718523-2587-6-git-send-email-sboyd@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Stephen Boyd Cc: Samuel Ortiz , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org On Tue, 10 Dec 2013, Stephen Boyd wrote: > The pm8xxx-irq.c code is practically mandatory given that the > pm8921-core driver will WARN about it missing and the Kconfig > marks it as default y when a PM8xxx chips is enabled. The only > reason the file was split out was because we planned to support > other pm8xxx chips with different pm8xxx-core.c files. Now that > we have DT on ARM this isn't necessary because we should be able > to support all the ssbi based PM8xxx chips in one driver and one > file with no data bloat. Let's move this code into the only > driver that uses it right now (pm8921) so that it's always compiled w= hen > needed. In the future we can rename pm8921-core.c to something > more generic. >=20 > Signed-off-by: Stephen Boyd > --- > drivers/mfd/Kconfig | 10 -- > drivers/mfd/pm8921-core.c | 349 ++++++++++++++++++++++++++++++++++++= +++++++ > drivers/mfd/pm8xxx-irq.c | 371 ------------------------------------= ---------- If you're going to take this approach (which I'm fine with unless there are likely to be anymore incarnations of pm8xxx chips?), I think you should also clean-up the header in this patch. include/linux/mfd/pm8xxx/irq.h --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog From mboxrd@z Thu Jan 1 00:00:00 1970 From: lee.jones@linaro.org (Lee Jones) Date: Wed, 11 Dec 2013 09:35:52 +0000 Subject: [PATCH 5/8] mfd: Move pm8xxx-irq.c contents into only driver that uses it In-Reply-To: <1386718523-2587-6-git-send-email-sboyd@codeaurora.org> References: <1386718523-2587-1-git-send-email-sboyd@codeaurora.org> <1386718523-2587-6-git-send-email-sboyd@codeaurora.org> Message-ID: <20131211093552.GG16780@lee--X1> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, 10 Dec 2013, Stephen Boyd wrote: > The pm8xxx-irq.c code is practically mandatory given that the > pm8921-core driver will WARN about it missing and the Kconfig > marks it as default y when a PM8xxx chips is enabled. The only > reason the file was split out was because we planned to support > other pm8xxx chips with different pm8xxx-core.c files. Now that > we have DT on ARM this isn't necessary because we should be able > to support all the ssbi based PM8xxx chips in one driver and one > file with no data bloat. Let's move this code into the only > driver that uses it right now (pm8921) so that it's always compiled when > needed. In the future we can rename pm8921-core.c to something > more generic. > > Signed-off-by: Stephen Boyd > --- > drivers/mfd/Kconfig | 10 -- > drivers/mfd/pm8921-core.c | 349 +++++++++++++++++++++++++++++++++++++++++++ > drivers/mfd/pm8xxx-irq.c | 371 ---------------------------------------------- If you're going to take this approach (which I'm fine with unless there are likely to be anymore incarnations of pm8xxx chips?), I think you should also clean-up the header in this patch. include/linux/mfd/pm8xxx/irq.h -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog