From: Eddie Huang <eddie.huang@mediatek.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>,
<linux-arm-kernel@lists.infradead.org>,
Wei-Ning Huang <wnhuang@chromium.org>,
Tianping Fang <tianping.fang@mediatek.com>,
"Henry Chen" <henryc.chen@mediatek.com>,
Alessandro Zummo <a.zummo@towertech.it>,
<rtc-linux@googlegroups.com>, <linux-kernel@vger.kernel.org>
Subject: [rtc-linux] Re: [PATCH] rtc: mt6397: add IRQ domain dependency
Date: Tue, 26 Jan 2016 12:54:40 +0800 [thread overview]
Message-ID: <1453784080.15263.2.camel@mtksdaap41> (raw)
In-Reply-To: <1453737892-1960479-1-git-send-email-arnd@arndb.de>
On Mon, 2016-01-25 at 17:04 +0100, Arnd Bergmann wrote:
> The mt6397 RTC driver can be built either when the MFD_MT6397 driver
> is enabled (which selects IRQ_DOMAIN), or when compile testing.
> The latter however fails without IRQ domains:
>
> drivers/rtc/rtc-mt6397.c: In function 'mtk_rtc_probe':
> drivers/rtc/rtc-mt6397.c:326:13: error: implicit declaration of function 'irq_create_mapping' [-Werror=implicit-function-declaration]
> rtc->irq = irq_create_mapping(mt6397_chip->irq_domain, res->start);
>
> This adds an explicit dependency for the COMPILE_TEST case.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/rtc/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
> index 376322f71fd5..4395608bf7fc 100644
> --- a/drivers/rtc/Kconfig
> +++ b/drivers/rtc/Kconfig
> @@ -1603,7 +1603,7 @@ config RTC_DRV_MOXART
>
> config RTC_DRV_MT6397
> tristate "Mediatek Real Time Clock driver"
> - depends on MFD_MT6397 || COMPILE_TEST
> + depends on MFD_MT6397 || (COMPILE_TEST && IRQ_DOMAIN)
> help
> This selects the Mediatek(R) RTC driver. RTC is part of Mediatek
> MT6397 PMIC. You should enable MT6397 PMIC MFD before select
Hi Arnd,
Thanks your correction.
Acked-by: Eddie Huang <eddie.huang@mediatek.com>
Regards,
Eddie
--
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
WARNING: multiple messages have this Message-ID (diff)
From: eddie.huang@mediatek.com (Eddie Huang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] rtc: mt6397: add IRQ domain dependency
Date: Tue, 26 Jan 2016 12:54:40 +0800 [thread overview]
Message-ID: <1453784080.15263.2.camel@mtksdaap41> (raw)
In-Reply-To: <1453737892-1960479-1-git-send-email-arnd@arndb.de>
On Mon, 2016-01-25 at 17:04 +0100, Arnd Bergmann wrote:
> The mt6397 RTC driver can be built either when the MFD_MT6397 driver
> is enabled (which selects IRQ_DOMAIN), or when compile testing.
> The latter however fails without IRQ domains:
>
> drivers/rtc/rtc-mt6397.c: In function 'mtk_rtc_probe':
> drivers/rtc/rtc-mt6397.c:326:13: error: implicit declaration of function 'irq_create_mapping' [-Werror=implicit-function-declaration]
> rtc->irq = irq_create_mapping(mt6397_chip->irq_domain, res->start);
>
> This adds an explicit dependency for the COMPILE_TEST case.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/rtc/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
> index 376322f71fd5..4395608bf7fc 100644
> --- a/drivers/rtc/Kconfig
> +++ b/drivers/rtc/Kconfig
> @@ -1603,7 +1603,7 @@ config RTC_DRV_MOXART
>
> config RTC_DRV_MT6397
> tristate "Mediatek Real Time Clock driver"
> - depends on MFD_MT6397 || COMPILE_TEST
> + depends on MFD_MT6397 || (COMPILE_TEST && IRQ_DOMAIN)
> help
> This selects the Mediatek(R) RTC driver. RTC is part of Mediatek
> MT6397 PMIC. You should enable MT6397 PMIC MFD before select
Hi Arnd,
Thanks your correction.
Acked-by: Eddie Huang <eddie.huang@mediatek.com>
Regards,
Eddie
WARNING: multiple messages have this Message-ID (diff)
From: Eddie Huang <eddie.huang@mediatek.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>,
<linux-arm-kernel@lists.infradead.org>,
Wei-Ning Huang <wnhuang@chromium.org>,
Tianping Fang <tianping.fang@mediatek.com>,
"Henry Chen" <henryc.chen@mediatek.com>,
Alessandro Zummo <a.zummo@towertech.it>,
<rtc-linux@googlegroups.com>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] rtc: mt6397: add IRQ domain dependency
Date: Tue, 26 Jan 2016 12:54:40 +0800 [thread overview]
Message-ID: <1453784080.15263.2.camel@mtksdaap41> (raw)
In-Reply-To: <1453737892-1960479-1-git-send-email-arnd@arndb.de>
On Mon, 2016-01-25 at 17:04 +0100, Arnd Bergmann wrote:
> The mt6397 RTC driver can be built either when the MFD_MT6397 driver
> is enabled (which selects IRQ_DOMAIN), or when compile testing.
> The latter however fails without IRQ domains:
>
> drivers/rtc/rtc-mt6397.c: In function 'mtk_rtc_probe':
> drivers/rtc/rtc-mt6397.c:326:13: error: implicit declaration of function 'irq_create_mapping' [-Werror=implicit-function-declaration]
> rtc->irq = irq_create_mapping(mt6397_chip->irq_domain, res->start);
>
> This adds an explicit dependency for the COMPILE_TEST case.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/rtc/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
> index 376322f71fd5..4395608bf7fc 100644
> --- a/drivers/rtc/Kconfig
> +++ b/drivers/rtc/Kconfig
> @@ -1603,7 +1603,7 @@ config RTC_DRV_MOXART
>
> config RTC_DRV_MT6397
> tristate "Mediatek Real Time Clock driver"
> - depends on MFD_MT6397 || COMPILE_TEST
> + depends on MFD_MT6397 || (COMPILE_TEST && IRQ_DOMAIN)
> help
> This selects the Mediatek(R) RTC driver. RTC is part of Mediatek
> MT6397 PMIC. You should enable MT6397 PMIC MFD before select
Hi Arnd,
Thanks your correction.
Acked-by: Eddie Huang <eddie.huang@mediatek.com>
Regards,
Eddie
next prev parent reply other threads:[~2016-01-26 4:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-25 16:04 [rtc-linux] [PATCH] rtc: mt6397: add IRQ domain dependency Arnd Bergmann
2016-01-25 16:04 ` Arnd Bergmann
2016-01-25 16:04 ` Arnd Bergmann
2016-01-26 4:54 ` Eddie Huang [this message]
2016-01-26 4:54 ` Eddie Huang
2016-01-26 4:54 ` Eddie Huang
2016-01-26 8:23 ` [rtc-linux] " Alexandre Belloni
2016-01-26 8:23 ` Alexandre Belloni
2016-01-26 8:23 ` Alexandre Belloni
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=1453784080.15263.2.camel@mtksdaap41 \
--to=eddie.huang@mediatek.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@free-electrons.com \
--cc=arnd@arndb.de \
--cc=henryc.chen@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
--cc=tianping.fang@mediatek.com \
--cc=wnhuang@chromium.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 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.