From: "Uwe Kleine-König" <u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
To: Marc Reilly <marc-DtE7ei5U7Kg0n/F98K4Iww@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org
Subject: Re: [PATCH v4 2/4] mc13xxx-core: Kconfig: Config menu driven by specific IC type
Date: Tue, 22 Feb 2011 11:37:07 +0100 [thread overview]
Message-ID: <20110222103707.GZ22310@pengutronix.de> (raw)
In-Reply-To: <1294119299-18352-3-git-send-email-marc-DtE7ei5U7Kg0n/F98K4Iww@public.gmane.org>
On Tue, Jan 04, 2011 at 04:34:57PM +1100, Marc Reilly wrote:
> This patch makes config items for the mc13892 and mc13783 distinct and
> splits introduces a separate config item for spi interface support in
> preparation for a separate i2c and spi backend.
>
> The mc13xxx generic core is therefore selected by the spi (or i2c) item:
> having it the other way around doesn't work for other drivers that will
> need to distinguish between mc13783 and mc13892 (at build time).
>
> Signed-off-by: Marc Reilly <marc-DtE7ei5U7Kg0n/F98K4Iww@public.gmane.org>
> ---
> drivers/mfd/Kconfig | 34 +++++++++++++++++++++++++---------
> 1 files changed, 25 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index 3a1493b..9ce1d42 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -425,20 +425,36 @@ config MFD_PCF50633
> so that function-specific drivers can bind to them.
>
> config MFD_MC13783
> - tristate
> -
> -config MFD_MC13XXX
> - tristate "Support Freescale MC13783 and MC13892"
> depends on SPI_MASTER
> - select MFD_CORE
> - select MFD_MC13783
> + select MFD_MC13XXX_SPI
> + tristate "Support for Freescale MC13783 PMIC"
> help
> - Support for the Freescale (Atlas) PMIC and audio CODECs
> - MC13783 and MC13892.
> - This driver provides common support for accessing the device,
> + Support for the Freescale MC13783 PMIC and audio CODEC.
> + This driver provides common support for accessing the device,
> additional drivers must be enabled in order to use the
> functionality of the device.
>
> +config MFD_MC13892
> + depends on SPI_MASTER || I2C
Actually you don't have that || I2C yet, do you?
Other than that I only wonder if it's worth to split the support for
13892 and 13783 explicitly and move the spi and i2c backends to
dedicated files.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
next prev parent reply other threads:[~2011-02-22 10:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 5:34 mc13xxx-core, support for i2c, V4 Marc Reilly
[not found] ` <1294119299-18352-1-git-send-email-marc-DtE7ei5U7Kg0n/F98K4Iww@public.gmane.org>
2011-01-04 5:34 ` [PATCH v4 1/4] mc13xxx-core: Prepare for separate spi and i2c backends Marc Reilly
2011-01-04 5:34 ` [PATCH v4 2/4] mc13xxx-core: Kconfig: Config menu driven by specific IC type Marc Reilly
[not found] ` <1294119299-18352-3-git-send-email-marc-DtE7ei5U7Kg0n/F98K4Iww@public.gmane.org>
2011-02-22 10:37 ` Uwe Kleine-König [this message]
2011-01-04 5:34 ` [PATCH v4 3/4] mc13xxx-core: Move spi specific code into separate module Marc Reilly
2011-01-04 5:34 ` [PATCH v4 4/4] mc13xxx-core: Add i2c driver Marc Reilly
2011-02-12 8:40 ` mc13xxx-core, support for i2c, V4 Grant Likely
2011-02-12 10:11 ` Marc Reilly
[not found] ` <201102122111.30525.marc-DtE7ei5U7Kg0n/F98K4Iww@public.gmane.org>
2011-02-21 16:33 ` Samuel Ortiz
2011-02-22 3:23 ` Marc Reilly
2011-02-14 10:21 ` Philippe Rétornaz
[not found] ` <201102141121.34676.philippe.retornaz-p8DiymsW2f8@public.gmane.org>
2011-02-14 14:39 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110222103707.GZ22310@pengutronix.de \
--to=u.kleine-koenig-bicnvbalz9megne8c9+irq@public.gmane.org \
--cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=marc-DtE7ei5U7Kg0n/F98K4Iww@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).