Re: [PATCH v2] mux: mmio: depend on REGMAP as the code has that dependency

From: Randy Dunlap
Date: Sun Jun 11 2023 - 17:13:41 EST




On 6/11/23 14:04, Peter Rosin wrote:
> Hi!
>
> 2023-06-11 at 22:59, Randy Dunlap wrote:
>> On 5/24/23 05:52, Peter Rosin wrote:
>>> REGMAP is normally "selected", but that causes a recursive dependency.
>>> But since REGMAP is "depended on" in other places, do so here as well.
>>> The (implicit) REGMAP dependency was lost when the strict dependency
>>> on MFD_SYSCON was removed.
>
> *snip*
>
>>> diff --git a/drivers/mux/Kconfig b/drivers/mux/Kconfig
>>> index 80f015cf6e54..7f07ca06eb2b 100644
>>> --- a/drivers/mux/Kconfig
>>> +++ b/drivers/mux/Kconfig
>>> @@ -48,6 +48,7 @@ config MUX_GPIO
>>> config MUX_MMIO
>>> tristate "MMIO/Regmap register bitfield-controlled Multiplexer"
>>> depends on OF
>>> + depends on REGMAP
>>
>> REGMAP is mostly selected, not depended on, so preferably
>>
>> select REGMAP
>>
>> here whenever this patch is ready to be merged.
>
> I would have preferred that as well, and if that was without problems I
> would not be so hesitant as there are really few pre-existing "depends
> on REGMAP".
>
> I do not know what to do here and am not sure whom to ask for guidance.

Oh, I did not recall all of that, but now that you mention it, I do remember
that problem (cyclic dependencies...).
Sorry about that.

--
~Randy