From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
To: Geert Uytterhoeven <geert+renesas@glider.be>,
Yoshinori Sato <ysato@users.sourceforge.jp>,
Rich Felker <dalias@libc.org>
Cc: linux-sh@vger.kernel.org, linux-sound@vger.kernel.org,
kernel test robot <lkp@intel.com>
Subject: Re: [PATCH] sh: boards: Use imply to enable hardware with complex dependencies
Date: Fri, 24 Jan 2025 09:45:02 +0100 [thread overview]
Message-ID: <1ce6cda91aaeb86133d37729eff86c7df567de42.camel@physik.fu-berlin.de> (raw)
In-Reply-To: <8329d88cecc1e419f6a0f3f215695d3cfcb549aa.1737707880.git.geert+renesas@glider.be>
Hi Geert,
On Fri, 2025-01-24 at 09:39 +0100, Geert Uytterhoeven wrote:
> If CONFIG_I2C=n:
>
> WARNING: unmet direct dependencies detected for SND_SOC_AK4642
> Depends on [n]: SOUND [=y] && SND [=y] && SND_SOC [=y] && I2C [=n]
> Selected by [y]:
> - SH_7724_SOLUTION_ENGINE [=y] && CPU_SUBTYPE_SH7724 [=y] && SND_SIMPLE_CARD [=y]
>
> WARNING: unmet direct dependencies detected for SND_SOC_DA7210
> Depends on [n]: SOUND [=y] && SND [=y] && SND_SOC [=y] && SND_SOC_I2C_AND_SPI [=n]
> Selected by [y]:
> - SH_ECOVEC [=y] && CPU_SUBTYPE_SH7724 [=y] && SND_SIMPLE_CARD [=y]
>
> Fix this by replacing select by imply, instead of adding a dependency on
> I2C.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202501240836.OvXqmANX-lkp@intel.com/
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> arch/sh/boards/Kconfig | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig
> index 46387fd040adeaac..cac265e3e7de926d 100644
> --- a/arch/sh/boards/Kconfig
> +++ b/arch/sh/boards/Kconfig
> @@ -73,8 +73,8 @@ config SH_7724_SOLUTION_ENGINE
> select SOLUTION_ENGINE
> depends on CPU_SUBTYPE_SH7724
> select GPIOLIB
> - select SND_SOC_AK4642 if SND_SIMPLE_CARD
> select REGULATOR_FIXED_VOLTAGE if REGULATOR
> + imply SND_SOC_AK4642 if SND_SIMPLE_CARD
> help
> Select 7724 SolutionEngine if configuring for a Hitachi SH7724
> evaluation board.
> @@ -252,8 +252,8 @@ config SH_ECOVEC
> bool "EcoVec"
> depends on CPU_SUBTYPE_SH7724
> select GPIOLIB
> - select SND_SOC_DA7210 if SND_SIMPLE_CARD
> select REGULATOR_FIXED_VOLTAGE if REGULATOR
> + imply SND_SOC_DA7210 if SND_SIMPLE_CARD
> help
> Renesas "R0P7724LC0011/21RL (EcoVec)" support.
>
Looks like a reasonable change to me.
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
prev parent reply other threads:[~2025-01-24 8:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-24 8:39 [PATCH] sh: boards: Use imply to enable hardware with complex dependencies Geert Uytterhoeven
2025-01-24 8:45 ` John Paul Adrian Glaubitz [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=1ce6cda91aaeb86133d37729eff86c7df567de42.camel@physik.fu-berlin.de \
--to=glaubitz@physik.fu-berlin.de \
--cc=dalias@libc.org \
--cc=geert+renesas@glider.be \
--cc=linux-sh@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=lkp@intel.com \
--cc=ysato@users.sourceforge.jp \
/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).