2020-05-07 11:38:53

by Geert Uytterhoeven

[permalink] [raw]
Subject: [PATCH 0/2] lightning mountain: Add architecture dependency

Hi all,

The Intel Equilibrium pin controller and eMMC PHY are only present on Intel
Lightning Mountain SoCs. This series adds architecture dependencies to the
corresponding config symbols, to avoid asking the user about them when
configuring a kernel for a non-x86 architecture.

All patches in this series are independent.

Thanks for your comments!

Geert Uytterhoeven (2):
pinctrl: equilibrium: Add architecture dependency
phy: intel-lgm-emmc: Add architecture dependency

drivers/phy/intel/Kconfig | 1 +
drivers/pinctrl/Kconfig | 1 +
2 files changed, 2 insertions(+)

--
2.17.1

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds


2020-05-07 11:39:11

by Geert Uytterhoeven

[permalink] [raw]
Subject: [PATCH 1/2] pinctrl: equilibrium: Add architecture dependency

The Equilibrium pin controller is only present on Intel Lightning
Mountain SoCs. Add an architecture dependency to the
PINCTRL_EQUILIBRIUM config symbol, to avoid asking the user about it
when configuring a kernel for a non-x86 architecture.

Signed-off-by: Geert Uytterhoeven <[email protected]>
---
drivers/pinctrl/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index bed67c08a0892240..85b644a6c74db92d 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -443,6 +443,7 @@ config PINCTRL_TB10X
config PINCTRL_EQUILIBRIUM
tristate "Generic pinctrl and GPIO driver for Intel Lightning Mountain SoC"
depends on OF && HAS_IOMEM
+ depends on X86 || COMPILE_TEST
select PINMUX
select PINCONF
select GPIOLIB
--
2.17.1

2020-05-07 11:41:09

by Geert Uytterhoeven

[permalink] [raw]
Subject: [PATCH 2/2] phy: intel-lgm-emmc: Add architecture dependency

The Intel eMMC PHY is only present on Intel Lightning Mountain SoCs.
Add an architecture dependency to the PHY_INTEL_EMMC config symbol, to
avoid asking the user about it when configuring a kernel for a non-x86
architecture.

Signed-off-by: Geert Uytterhoeven <[email protected]>
---
drivers/phy/intel/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/phy/intel/Kconfig b/drivers/phy/intel/Kconfig
index 4ea6a8897cd7c9e1..e6320a94ddb11321 100644
--- a/drivers/phy/intel/Kconfig
+++ b/drivers/phy/intel/Kconfig
@@ -4,6 +4,7 @@
#
config PHY_INTEL_EMMC
tristate "Intel EMMC PHY driver"
+ depends on X86 || COMPILE_TEST
select GENERIC_PHY
help
Enable this to support the Intel EMMC PHY
--
2.17.1

2020-05-16 09:25:05

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH 1/2] pinctrl: equilibrium: Add architecture dependency

On Thu, May 7, 2020 at 1:36 PM Geert Uytterhoeven
<[email protected]> wrote:

> The Equilibrium pin controller is only present on Intel Lightning
> Mountain SoCs. Add an architecture dependency to the
> PINCTRL_EQUILIBRIUM config symbol, to avoid asking the user about it
> when configuring a kernel for a non-x86 architecture.
>
> Signed-off-by: Geert Uytterhoeven <[email protected]>

Patch applied.

Yours,
Linus Walleij