All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: "Opensource [Steve Twiss]" <stwiss.opensource@diasemi.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
	Andrew Morton <akpm@linux-foundation.org>,
	LINUX-KERNEL <linux-kernel@vger.kernel.org>,
	RTC-LINUX <rtc-linux@googlegroups.com>,
	Samuel Ortiz <sameo@linux.intel.com>,
	David Dajun Chen <david.chen@diasemi.com>,
	Mark Brown <broonie@linaro.org>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	Support Opensource <support.opensource@diasemi.com>
Subject: Re: [RFC V2] mfd: da9063: Add support for AD silicon variant
Date: Mon, 28 Jul 2014 07:52:51 +0100	[thread overview]
Message-ID: <20140728065251.GA5273@lee--X1> (raw)
In-Reply-To: <201407211058.s6LAwtk8003839@swsrvapps-01.diasemi.com>

On Mon, 21 Jul 2014, Opensource [Steve Twiss] wrote:

> 
> From: Opensource [Steve Twiss] <stwiss.opensource@diasemi.com>
> 
> Add register definitions for DA9063 AD (0x3) silicon variant ID
> the ability to choose the silicon variant at run-time using regmap
> configuration. This patch also adds RTC support for the AD silicon
> changes.
> 
> It adds both BB and AD support as regmap ranges and then makes the
> distinction between the two tables at run-time. This allows both AD
> and BB silicon variants to be supported at the same time.
> 
> 
> Signed-off-by: Opensource [Steve Twiss] <stwiss.opensource@diasemi.com>
> Suggested-by: Philipp Zabel <p.zabel@pengutronix.de>
> 
> ---
> Checks performed with linux-next/v3.16-rc5/scripts/checkpatch.pl
>  rtc-da9063.c              total: 0 errors, 0 warnings, 353 lines checked
>  da9063-core.c             total: 0 errors, 0 warnings, 188 lines checked
>  da9063-i2c.c              total: 0 errors, 0 warnings, 266 lines checked
>  core.h                    total: 0 errors, 0 warnings, 98 lines checked
>  registers.h               total: 0 errors, 0 warnings, 1073 lines checked
> 
> Thank you for your quick responses to my RFC-V1.
> 
> This is in reply to comments made by Lee Jones, Alessandro Zummo and
> Philipp Zabel. Please see the RFC-V1 thread for further details on
> these discussions: https://lkml.org/lkml/2014/7/16/478
> 
> Adding AD support using a compile-time flag under a new menu item in
> Kconfig proved very unpopular for two main reasons.
> 
> - Using ifdef else statements throughout the code
> - Not supporting AD and BB silicon variants at the same time
> 
> This RFC-V2 patch uses the method proposed by Philipp Zabel in his
> reply e-mail: https://lkml.org/lkml/2014/7/18/219
> and makes use of the regmap configuration method in da9063-i2c.c
> 
> This patch applies against linux-next and v3.16-rc5
> 
> Regards,
> Steve Twiss, Dialog Semiconductor Ltd.
> 
>  drivers/mfd/da9063-core.c            |    6 +-
>  drivers/mfd/da9063-i2c.c             |  134 +++++++++++++++++++++++++++-------
>  drivers/rtc/rtc-da9063.c             |   54 +++++++++-----
>  include/linux/mfd/da9063/core.h      |    3 +-
>  include/linux/mfd/da9063/registers.h |  129 +++++++++++++++++++++-----------
>  5 files changed, 236 insertions(+), 90 deletions(-)

Patch looks good to me.  Applied, thanks.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

  reply	other threads:[~2014-07-28  6:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-21 10:39 [RFC V2] mfd: da9063: Add support for AD silicon variant Opensource [Steve Twiss]
2014-07-28  6:52 ` Lee Jones [this message]
2014-07-28  7:44   ` Opensource [Steve Twiss]

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=20140728065251.GA5273@lee--X1 \
    --to=lee.jones@linaro.org \
    --cc=a.zummo@towertech.it \
    --cc=akpm@linux-foundation.org \
    --cc=broonie@linaro.org \
    --cc=david.chen@diasemi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=rtc-linux@googlegroups.com \
    --cc=sameo@linux.intel.com \
    --cc=stwiss.opensource@diasemi.com \
    --cc=support.opensource@diasemi.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.