Re: [PATCH v3] docs: kconfig: Mention IS_REACHABLE as way for optional dependency

From: Arnd Bergmann
Date: Mon Feb 17 2025 - 08:08:58 EST


On Mon, Feb 17, 2025, at 12:31, Krzysztof Kozlowski wrote:
> Several drivers express optional Kconfig dependency with FOO || !FOO,
> but for many choices this is not suitable: lack of stubs for !FOO
> like in HWMON. Describe the second, less favorable way of optional
> dependency with IS_REACHABLE by moving the code from "imply" chapter to
> "Optional dependencies".
>
> Cc: Masahiro Yamada <masahiroy@xxxxxxxxxx>
> Cc: Arnd Bergmann <arnd@xxxxxxxx>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>