mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 21:44:06 +08:00
ac875df4d8
The Samsung pinctrl drivers depend on OF_GPIO, which is part of GPIOLIB.
ARMv7 Exynos platform selects GPIOLIB and Samsung pinctrl drivers. ARMv8
Exynos selects only the latter leading to possible wrong configuration
on ARMv8 build:
WARNING: unmet direct dependencies detected for PINCTRL_EXYNOS
Depends on [n]: PINCTRL [=y] && OF_GPIO [=n] && (ARCH_EXYNOS [=y] || ARCH_S5PV210 || COMPILE_TEST [=y])
Selected by [y]:
- ARCH_EXYNOS [=y]
Always select the GPIOLIB from the Samsung pinctrl drivers to fix the
issue. This requires removing of OF_GPIO dependency (to avoid recursive
dependency), so add dependency on OF for COMPILE_TEST cases.
Reported-by: Necip Fazil Yildiran <fazilyildiran@gmail.com>
Fixes: eed6b3eb20
("arm64: Split out platform options to separate Kconfig")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20220420141407.470955-1-krzysztof.kozlowski@linaro.org
35 lines
981 B
Plaintext
35 lines
981 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Samsung Pin control drivers
|
|
#
|
|
config PINCTRL_SAMSUNG
|
|
bool
|
|
select GPIOLIB
|
|
select PINMUX
|
|
select PINCONF
|
|
|
|
config PINCTRL_EXYNOS
|
|
bool "Pinctrl common driver part for Samsung Exynos SoCs"
|
|
depends on ARCH_EXYNOS || ARCH_S5PV210 || (COMPILE_TEST && OF)
|
|
select PINCTRL_SAMSUNG
|
|
select PINCTRL_EXYNOS_ARM if ARM && (ARCH_EXYNOS || ARCH_S5PV210)
|
|
select PINCTRL_EXYNOS_ARM64 if ARM64 && ARCH_EXYNOS
|
|
|
|
config PINCTRL_EXYNOS_ARM
|
|
bool "ARMv7-specific pinctrl driver for Samsung Exynos SoCs" if COMPILE_TEST
|
|
depends on PINCTRL_EXYNOS
|
|
|
|
config PINCTRL_EXYNOS_ARM64
|
|
bool "ARMv8-specific pinctrl driver for Samsung Exynos SoCs" if COMPILE_TEST
|
|
depends on PINCTRL_EXYNOS
|
|
|
|
config PINCTRL_S3C24XX
|
|
bool "Samsung S3C24XX SoC pinctrl driver"
|
|
depends on ARCH_S3C24XX || (COMPILE_TEST && OF)
|
|
select PINCTRL_SAMSUNG
|
|
|
|
config PINCTRL_S3C64XX
|
|
bool "Samsung S3C64XX SoC pinctrl driver"
|
|
depends on ARCH_S3C64XX || (COMPILE_TEST && OF)
|
|
select PINCTRL_SAMSUNG
|