[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wg-L1K6N+0zZ-bcU7kGZMMDbXj4Z8smrsi1gvbi5U-GiQ@mail.gmail.com>
Date: Tue, 16 Jul 2024 12:02:03 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [PATCH] PCI/pwrctl: reduce the amount of Kconfig noise
On Tue, 16 Jul 2024 at 11:48, Bartosz Golaszewski <brgl@...ev.pl> wrote:
>
> But this patch does it. PCI_PWRCTL_PWRSEQ becomes a hidden symbol and
> the entire submenu for PCI_PWRCTL disappears. There's no question in
> Kconfig anymore.
Yes, but look here:
default m if ((ATH11K_PCI || ATH12K) && ARCH_QCOM)
That has at least two issues:
- what if ATH11K_PCI or ATH12K is built-in and needs this driver?
"default m" is *NOT* valid.
- what happens when you add new drivers? You keep making this line
longer and more complicated?
See why I say "use select" instead? It means that the drivers that
need it can select it, and you avoid complicated "list X drivers"
things, but you can also get the *right* selection criteria, so that a
built-in driver will select a built-in PCI_PWRCTL_PWRSEQ option.
Linus
Powered by blists - more mailing lists