From: "Pali Rohár" <pali@kernel.org>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next?] powerpc/fsl_uli1575: fix kconfig warnings and build errors
Date: Sat, 29 Apr 2023 11:27:29 +0200 [thread overview]
Message-ID: <20230429092729.znfdx7tlcpz7ce63@pali> (raw)
In-Reply-To: <20230429043519.19807-1-rdunlap@infradead.org>
On Friday 28 April 2023 21:35:19 Randy Dunlap wrote:
> Neither FSL_SOC_BOOKE nor PPC_86xx enables CONFIG_PCI by
> default, so it may be unset in some randconfigs.
> When that happens, FSL_ULI1575 may be set when it should not be
> since it is a PCI driver. When it is set, there are 3 kconfig
> warnings and a slew of build errors
>
> WARNING: unmet direct dependencies detected for PCI_QUIRKS
> Depends on [n]: PCI [=n]
> Selected by [y]:
> - FSL_PCI [=y]
>
> WARNING: unmet direct dependencies detected for GENERIC_ISA_DMA
> Depends on [n]: ISA_DMA_API [=n]
> Selected by [y]:
> - FSL_ULI1575 [=y] && (FSL_SOC_BOOKE [=n] || PPC_86xx [=y])
>
> WARNING: unmet direct dependencies detected for PPC_INDIRECT_PCI
> Depends on [n]: PCI [=n]
> Selected by [y]:
> - FSL_PCI [=y]
>
> and 30+ build errors.
>
> Fixes: 22fdf79171e8 ("powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Pali Rohár <pali@kernel.org>
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: linuxppc-dev@lists.ozlabs.org
> ---
> arch/powerpc/platforms/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff -- a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
> --- a/arch/powerpc/platforms/Kconfig
> +++ b/arch/powerpc/platforms/Kconfig
> @@ -265,6 +265,7 @@ config CPM2
> config FSL_ULI1575
> bool "ULI1575 PCIe south bridge support"
> depends on FSL_SOC_BOOKE || PPC_86xx
> + depends on PCI
> select FSL_PCI
> select GENERIC_ISA_DMA
> help
Ok, looks like a reasonable solution for this issue.
These kind of cleanups (as done in uli1575 patch series) are always
problematic as they can break some unusual configuration...
Reviewed-by: Pali Rohár <pali@kernel.org>
next prev parent reply other threads:[~2023-04-29 9:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-29 4:35 [PATCH -next?] powerpc/fsl_uli1575: fix kconfig warnings and build errors Randy Dunlap
2023-04-29 9:27 ` Pali Rohár [this message]
2023-07-03 5:21 ` Michael Ellerman
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=20230429092729.znfdx7tlcpz7ce63@pali \
--to=pali@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=rdunlap@infradead.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