* [PATCH] x86: olpc: fix inconsistent MFD_CS5535 configuration
@ 2018-04-04 12:44 Arnd Bergmann
2018-04-04 14:09 ` Thomas Gleixner
2018-04-09 17:10 ` [tip:x86/urgent] x86/olpc: Fix " tip-bot for Arnd Bergmann
0 siblings, 2 replies; 5+ messages in thread
From: Arnd Bergmann @ 2018-04-04 12:44 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, x86
Cc: Masahiro Yamada, linux-kbuild, Arnd Bergmann, H. Peter Anvin,
Andrew Morton, linux-kernel
This Kconfig warning appeared after a fix to the Kconfig validation.
The GPIO_CS5535 driver depends on the MFD_CS5535 driver, but the former
is selected in places where the latter is not:
WARNING: unmet direct dependencies detected for GPIO_CS5535
Depends on [m]: GPIOLIB [=y] && (X86 [=y] || MIPS || COMPILE_TEST [=y]) && MFD_CS5535 [=m]
Selected by [y]:
- OLPC_XO1_SCI [=y] && X86_32 [=y] && OLPC [=y] && OLPC_XO1_PM [=y] && INPUT [=y]=y
The warning does seem appropriate, since the GPIO_CS5535 driver won't
work unless MFD_CS5535 is also present. However, there is no link time
dependency between the two, so this caused no problems during randconfig
testing before.
This changes the 'select GPIO_CS5535' to 'depends on GPIO_CS5535' to
avoid the issue, at the expense of making it harder to configure the
driver (one now has to select the dependencies first).
The 'select MFD_CORE' part is completely redundant, since we already
depend on MFD_CS5535 here, so I'm removing that as well.
Ideally, the private symbols exported by that cs5535 gpio driver would
just be converted to gpiolib interfaces so we could expletely avoid
this dependency.
Fixes: f622f8279581 ("kconfig: warn unmet direct dependency of tristate symbols selected by y")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/x86/Kconfig | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index bf4ddea48e61..ffb2b858e2b1 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -2773,11 +2773,9 @@ config OLPC_XO1_RTC
config OLPC_XO1_SCI
bool "OLPC XO-1 SCI extras"
- depends on OLPC && OLPC_XO1_PM
+ depends on OLPC && OLPC_XO1_PM && GPIO_CS5535=y
depends on INPUT=y
select POWER_SUPPLY
- select GPIO_CS5535
- select MFD_CORE
---help---
Add support for SCI-based features of the OLPC XO-1 laptop:
- EC-driven system wakeups
--
2.9.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] x86: olpc: fix inconsistent MFD_CS5535 configuration
2018-04-04 12:44 [PATCH] x86: olpc: fix inconsistent MFD_CS5535 configuration Arnd Bergmann
@ 2018-04-04 14:09 ` Thomas Gleixner
2018-04-04 14:29 ` Arnd Bergmann
2018-04-09 17:10 ` [tip:x86/urgent] x86/olpc: Fix " tip-bot for Arnd Bergmann
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Gleixner @ 2018-04-04 14:09 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Ingo Molnar, x86, Masahiro Yamada, linux-kbuild, H. Peter Anvin,
Andrew Morton, linux-kernel
On Wed, 4 Apr 2018, Arnd Bergmann wrote:
> This Kconfig warning appeared after a fix to the Kconfig validation.
> The GPIO_CS5535 driver depends on the MFD_CS5535 driver, but the former
> is selected in places where the latter is not:
And why does GPIO_CS5535 not select MFD_CS5535 if it depends on it?
Thanks,
tglx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] x86: olpc: fix inconsistent MFD_CS5535 configuration
2018-04-04 14:09 ` Thomas Gleixner
@ 2018-04-04 14:29 ` Arnd Bergmann
2018-04-04 14:32 ` Thomas Gleixner
0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2018-04-04 14:29 UTC (permalink / raw)
To: Thomas Gleixner
Cc: Ingo Molnar, the arch/x86 maintainers, Masahiro Yamada,
Linux Kbuild mailing list, H. Peter Anvin, Andrew Morton,
Linux Kernel Mailing List
On Wed, Apr 4, 2018 at 4:09 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
> On Wed, 4 Apr 2018, Arnd Bergmann wrote:
>
>> This Kconfig warning appeared after a fix to the Kconfig validation.
>> The GPIO_CS5535 driver depends on the MFD_CS5535 driver, but the former
>> is selected in places where the latter is not:
>
> And why does GPIO_CS5535 not select MFD_CS5535 if it depends on it?
I tried that first and ran into circular dependencies: OLPC_XO1_SCI selects
GPIO_CS5535 but depends on OLPC_XO1_PM, which in turn depends on
MFD_CS5535.
What we could perhaps do is to make OLPC_XO1_PM select MFD_CS5535
instead of depending on it, that way it would be forced to be built-in here.
I can run a few more builds on that version if you prefer it.
Generally speaking,
turning 'depends on' into 'select' tends to cause more problems with circular
dependencies than doing it the other way round.
Arnd
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] x86: olpc: fix inconsistent MFD_CS5535 configuration
2018-04-04 14:29 ` Arnd Bergmann
@ 2018-04-04 14:32 ` Thomas Gleixner
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Gleixner @ 2018-04-04 14:32 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Ingo Molnar, the arch/x86 maintainers, Masahiro Yamada,
Linux Kbuild mailing list, H. Peter Anvin, Andrew Morton,
Linux Kernel Mailing List
On Wed, 4 Apr 2018, Arnd Bergmann wrote:
> On Wed, Apr 4, 2018 at 4:09 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
> > On Wed, 4 Apr 2018, Arnd Bergmann wrote:
> >
> >> This Kconfig warning appeared after a fix to the Kconfig validation.
> >> The GPIO_CS5535 driver depends on the MFD_CS5535 driver, but the former
> >> is selected in places where the latter is not:
> >
> > And why does GPIO_CS5535 not select MFD_CS5535 if it depends on it?
>
> I tried that first and ran into circular dependencies: OLPC_XO1_SCI selects
> GPIO_CS5535 but depends on OLPC_XO1_PM, which in turn depends on
> MFD_CS5535.
Ok.
>
> What we could perhaps do is to make OLPC_XO1_PM select MFD_CS5535
> instead of depending on it, that way it would be forced to be built-in here.
> I can run a few more builds on that version if you prefer it.
> Generally speaking,
> turning 'depends on' into 'select' tends to cause more problems with circular
> dependencies than doing it the other way round.
Fair enough.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [tip:x86/urgent] x86/olpc: Fix inconsistent MFD_CS5535 configuration
2018-04-04 12:44 [PATCH] x86: olpc: fix inconsistent MFD_CS5535 configuration Arnd Bergmann
2018-04-04 14:09 ` Thomas Gleixner
@ 2018-04-09 17:10 ` tip-bot for Arnd Bergmann
1 sibling, 0 replies; 5+ messages in thread
From: tip-bot for Arnd Bergmann @ 2018-04-09 17:10 UTC (permalink / raw)
To: linux-tip-commits
Cc: hpa, peterz, yamada.masahiro, torvalds, tglx, akpm, linux-kernel,
arnd, mingo
Commit-ID: 92e830f25fc0be447486a4658887ded68ef824f5
Gitweb: https://git.kernel.org/tip/92e830f25fc0be447486a4658887ded68ef824f5
Author: Arnd Bergmann <arnd@arndb.de>
AuthorDate: Wed, 4 Apr 2018 14:44:54 +0200
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Mon, 9 Apr 2018 18:22:34 +0200
x86/olpc: Fix inconsistent MFD_CS5535 configuration
This Kconfig warning appeared after a fix to the Kconfig validation.
The GPIO_CS5535 driver depends on the MFD_CS5535 driver, but the former
is selected in places where the latter is not:
WARNING: unmet direct dependencies detected for GPIO_CS5535
Depends on [m]: GPIOLIB [=y] && (X86 [=y] || MIPS || COMPILE_TEST [=y]) && MFD_CS5535 [=m]
Selected by [y]:
- OLPC_XO1_SCI [=y] && X86_32 [=y] && OLPC [=y] && OLPC_XO1_PM [=y] && INPUT [=y]=y
The warning does seem appropriate, since the GPIO_CS5535 driver won't
work unless MFD_CS5535 is also present. However, there is no link time
dependency between the two, so this caused no problems during randconfig
testing before.
This changes the 'select GPIO_CS5535' to 'depends on GPIO_CS5535' to
avoid the issue, at the expense of making it harder to configure the
driver (one now has to select the dependencies first).
The 'select MFD_CORE' part is completely redundant, since we already
depend on MFD_CS5535 here, so I'm removing that as well.
Ideally, the private symbols exported by that cs5535 gpio driver would
just be converted to gpiolib interfaces so we could expletely avoid
this dependency.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kbuild@vger.kernel.org
Fixes: f622f8279581 ("kconfig: warn unmet direct dependency of tristate symbols selected by y")
Link: http://lkml.kernel.org/r/20180404124539.3817101-1-arnd@arndb.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
arch/x86/Kconfig | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index eb7f43f23521..a9f0048b880a 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -2770,11 +2770,9 @@ config OLPC_XO1_RTC
config OLPC_XO1_SCI
bool "OLPC XO-1 SCI extras"
- depends on OLPC && OLPC_XO1_PM
+ depends on OLPC && OLPC_XO1_PM && GPIO_CS5535=y
depends on INPUT=y
select POWER_SUPPLY
- select GPIO_CS5535
- select MFD_CORE
---help---
Add support for SCI-based features of the OLPC XO-1 laptop:
- EC-driven system wakeups
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-04-09 17:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-04 12:44 [PATCH] x86: olpc: fix inconsistent MFD_CS5535 configuration Arnd Bergmann
2018-04-04 14:09 ` Thomas Gleixner
2018-04-04 14:29 ` Arnd Bergmann
2018-04-04 14:32 ` Thomas Gleixner
2018-04-09 17:10 ` [tip:x86/urgent] x86/olpc: Fix " tip-bot for Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome