From: jonghwa3.lee@samsung.com
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, a.zummo@towertech.it,
rtc-linux@googlegroups.com
Subject: Re: [PATCH] rtc: max8997: Add driver for max8997 rtc.
Date: Thu, 07 Feb 2013 10:43:23 +0900 [thread overview]
Message-ID: <511306BB.2020708@samsung.com> (raw)
In-Reply-To: <20130206130615.86121923.akpm@linux-foundation.org>
On 2013년 02월 07일 06:06, Andrew Morton wrote:
> On Wed, 06 Feb 2013 20:23:05 +0900
> Jonghwa Lee <jonghwa3.lee@samsung.com> wrote:
>
>> This patch adds rtc driver for Maxim 8997 multifunction chip.
>> Max8997 has rtc module in it. and it can be used for timekeeping
>> clock and system alarm. It provide various operational mode those are
>> BCD/binary, 24/12hour, am/pm. Driver sets binary/24/ for default.
>> Maxim 8997 also supports SMPL(Sudden Momentary Power Loss), WTSR
>> (Watchdog Timeout and Software Reset).
>>
>> ...
>>
>> --- a/drivers/rtc/Kconfig
>> +++ b/drivers/rtc/Kconfig
>> @@ -233,6 +233,36 @@ config RTC_DRV_MAX8998
>> This driver can also be built as a module. If so, the module
>> will be called rtc-max8998.
>>
>> +config RTC_DRV_MAX8997
>> + tristate "Maxim MAX8997"
>> + depends on MFD_MAX8997
>> + help
>> + If you say yes here you will get support for the
>> + RTC of Maxim MAX8997 PMIC.
>> +
>> + This driver can also be built as a module. If so, the module
>> + will be called rtc-max8997.
>> +
>> +config MAX8997_RTC_WTSR
>> + bool "MAX8997_RTC_WTSR"
>> + depends on RTC_DRV_MAX8997
>> + help
>> + MAX8997 rtc can supports WTSR(Watchdog Timeout and Software Reset).
>> + WTSR event would keep the PMIC on regardless of PWRHOLD signal.
>> + When PWRHOLD signal is falling, it turns on WTSR timer rather executes
>> + reset imidiately. After timer expiring, it determine to reset the PMIC
>> + depends on PWRHOLD state.
>> +
>> +config MAX8997_RTC_SMPL
>> + bool "MAX8997_RTC_SMPL"
>> + depends on RTC_DRV_MAX8997
>> + help
>> + MAX8997 rtc can supports SMPL(Sudden Momentary Power Loss).
>> + SMPL function can be used to intiate a power up sequence after momentarily
>> + loosing contact to the battery pack. If battery goes under UVLO(Under
>> + Lock Out) it starts SMPL timer. After timer exipiring, it checks battery
>> + whether its state recovers from UVLO or not to make power supplies keep on.
>
> Can we avoid creating CONFIG_MAX8997_RTC_WTSR and
> CONFIG_MAX8997_RTC_SMPL? It would be much better for the users if
> these features were always available in all kernel builds.
>
Okay, I'll apply it.
> The best way of handling this sort of thing is for the driver to probe
> the hardware, work out its capabilities and "do the right thing".
>
> The second best way is to require that the user add certain module
> parameters to enable the functionality.
>
How do we create sysfs node for enabling these options?
Thanks,
Jonghwa
> The worst way is to require the user to make the decision at kernel
> build time!
>
>
next prev parent reply other threads:[~2013-02-07 1:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 11:23 [PATCH] rtc: max8997: Add driver for max8997 rtc Jonghwa Lee
2013-02-06 21:06 ` Andrew Morton
2013-02-07 1:43 ` jonghwa3.lee [this message]
2013-02-07 2:28 ` Andrew Morton
2013-02-07 3:37 ` jonghwa3.lee
2013-02-07 4:14 ` devendra.aaru
2013-02-07 4:22 ` jonghwa3.lee
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=511306BB.2020708@samsung.com \
--to=jonghwa3.lee@samsung.com \
--cc=a.zummo@towertech.it \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox