From: Nathan Chancellor <nathan@kernel.org>
To: "Marek Behún" <kabel@kernel.org>
Cc: "Gregory CLEMENT" <gregory.clement@bootlin.com>,
"Arnd Bergmann" <arnd@arndb.de>,
soc@kernel.org, arm@kernel.org,
"Andy Shevchenko" <andy@kernel.org>,
"Hans de Goede" <hdegoede@redhat.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Alessandro Zummo" <a.zummo@towertech.it>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Bartosz Golaszewski" <brgl@bgdev.pl>,
"Linus Walleij" <linus.walleij@linaro.org>,
linux-rtc@vger.kernel.org
Subject: Re: [PATCH v12 4/8] platform: cznic: turris-omnia-mcu: Add support for poweroff and wakeup
Date: Sun, 14 Jul 2024 20:24:02 -0700 [thread overview]
Message-ID: <20240715032402.GA2968547@thelio-3990X> (raw)
In-Reply-To: <20240617152606.26191-5-kabel@kernel.org>
Hi Marek,
On Mon, Jun 17, 2024 at 05:26:02PM +0200, Marek Behún wrote:
> Add support for true board poweroff (MCU can disable all unnecessary
> voltage regulators) and wakeup at a specified time, implemented via a
> RTC driver so that the rtcwake utility can be used to configure it.
>
> Signed-off-by: Marek Behún <kabel@kernel.org>
> Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Reviewed-by: Andy Shevchenko <andy@kernel.org>
...
> diff --git a/drivers/platform/cznic/Kconfig b/drivers/platform/cznic/Kconfig
> index d95e7c83c7ae..c1e719235517 100644
> --- a/drivers/platform/cznic/Kconfig
> +++ b/drivers/platform/cznic/Kconfig
> @@ -18,10 +18,14 @@ config TURRIS_OMNIA_MCU
> depends on I2C
> select GPIOLIB
> select GPIOLIB_IRQCHIP
> + select RTC_CLASS
> help
> Say Y here to add support for the features implemented by the
> microcontroller on the CZ.NIC's Turris Omnia SOHO router.
> The features include:
> + - board poweroff into true low power mode (with voltage regulators
> + disabled) and the ability to configure wake up from this mode (via
> + rtcwake)
> - GPIO pins
> - to get front button press events (the front button can be
> configured either to generate press events to the CPU or to change
I am seeing the following Kconfig warning from ARCH=s390 allmodconfig:
WARNING: unmet direct dependencies detected for RTC_CLASS
Depends on [n]: !S390 [=y]
Selected by [m]:
- TURRIS_OMNIA_MCU [=m] && CZNIC_PLATFORMS [=y] && (MACH_ARMADA_38X || COMPILE_TEST [=y]) && I2C [=m] && OF [=y] && WATCHDOG [=y]
because of:
menuconfig RTC_CLASS
bool "Real Time Clock"
default n
depends on !S390
which appears to have ultimately come from commit 9556fb73edfc ("[S390]
Kconfig: unwanted menus for s390."). No other driver appears to
unconditionally select this (I only see it selected within
arch/*/Kconfig), so it does not look like this has come up before.
Should s390 be excluded from the COMPILE_TEST dependency?
Cheers,
Nathan
next prev parent reply other threads:[~2024-07-15 3:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-17 15:25 [PATCH v12 0/8] Turris Omnia MCU driver Marek Behún
2024-06-17 15:26 ` [PATCH v12 2/8] platform: cznic: Add preliminary support for Turris Omnia MCU Marek Behún
2024-06-17 15:26 ` [PATCH v12 4/8] platform: cznic: turris-omnia-mcu: Add support for poweroff and wakeup Marek Behún
2024-07-15 3:24 ` Nathan Chancellor [this message]
2024-07-15 6:12 ` Arnd Bergmann
2024-07-15 12:15 ` Marek Behún
2024-07-01 8:41 ` [PATCH v12 0/8] Turris Omnia MCU driver Marek Behún
2024-07-01 11:38 ` Marek Behún
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=20240715032402.GA2968547@thelio-3990X \
--to=nathan@kernel.org \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=andy@kernel.org \
--cc=arm@kernel.org \
--cc=arnd@arndb.de \
--cc=brgl@bgdev.pl \
--cc=gregory.clement@bootlin.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=kabel@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-rtc@vger.kernel.org \
--cc=soc@kernel.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).