From: Guenter Roeck <linux@roeck-us.net>
To: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>,
linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org,
brgl@kernel.org
Subject: Re: [PATCH v3] watchdog: convert the Kconfig dependency on OF_GPIO to OF
Date: Wed, 6 May 2026 06:28:07 -0700 [thread overview]
Message-ID: <1226bbb6-0b89-4a0a-895d-99d4b39d31d3@roeck-us.net> (raw)
In-Reply-To: <20260506081600.4921-1-bartosz.golaszewski@oss.qualcomm.com>
On Wed, May 06, 2026 at 10:16:00AM +0200, Bartosz Golaszewski wrote:
> OF_GPIO is selected automatically on all OF systems. Any symbols it
> controls also provide stubs so there's really no reason to select it
> explicitly. We could simply remove the dependency but in order to avoid
> a new symbol popping up for everyone in make config - just convert it to
> requiring CONFIG_OF.
>
> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Applied to my watchdog-next branch after resolving conflicts.
Dependencis are now
depends on GPIOLIB && (ACPI || OF)
Thanks,
Guenter
> ---
> Changes in v3:
> - Send the watchdog patch separately so that it can be picked up for v7.2
> - Link to v2: https://patch.msgid.link/20260316-gpio-of-kconfig-v2-0-de2f4b00a0e4@oss.qualcomm.com
>
> Changes in v2:
> - Make gpio-watchdog depend on OF && GPIOLIB
> - Drop picked up patches
> - Link to v1: https://patch.msgid.link/20260304-gpio-of-kconfig-v1-0-d597916e79e7@oss.qualcomm.com
>
> drivers/watchdog/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index dc78729ba2a5..ab1d5d6df5f3 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -250,7 +250,7 @@ config DA9062_WATCHDOG
>
> config GPIO_WATCHDOG
> tristate "Watchdog device controlled through GPIO-line"
> - depends on OF_GPIO
> + depends on OF && GPIOLIB
> select WATCHDOG_CORE
> help
> If you say yes here you get support for watchdog device
prev parent reply other threads:[~2026-05-06 13:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-06 8:16 Bartosz Golaszewski
2026-05-06 13:28 ` Guenter Roeck [this message]
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=1226bbb6-0b89-4a0a-895d-99d4b39d31d3@roeck-us.net \
--to=linux@roeck-us.net \
--cc=bartosz.golaszewski@oss.qualcomm.com \
--cc=brgl@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=wim@linux-watchdog.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
all inboxes | Powered by JetHome®