public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Josua Mayer <josua@solid-run.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Magnus Damm <magnus.damm@gmail.com>,
	Wolfram Sang <wsa+renesas@sang-engineering.com>,
	Marc Kleine-Budde <mkl@pengutronix.de>,
	Vincent Mailhol <mailhol@kernel.org>,
	Vinod Koul <vkoul@kernel.org>,
	Kishon Vijay Abraham I <kishon@kernel.org>,
	Peter Rosin <peda@axentia.se>,
	Aaro Koskinen <aaro.koskinen@iki.fi>,
	Andreas Kemnade <andreas@kemnade.info>,
	Kevin Hilman <khilman@baylibre.com>,
	Roger Quadros <rogerq@kernel.org>,
	Tony Lindgren <tony@atomide.com>, Vignesh R <vigneshr@ti.com>,
	Janusz Krzysztofik <jmkrzyszt@gmail.com>,
	Andi Shyti <andi.shyti@kernel.org>,
	Mikhail Anikin <mikhail.anikin@solid-run.com>,
	Yazan Shhady <yazan.shhady@solid-run.com>,
	Jon Nettleton <jon@solid-run.com>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-renesas-soc@vger.kernel.org"
	<linux-renesas-soc@vger.kernel.org>,
	"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>,
	"linux-phy@lists.infradead.org" <linux-phy@lists.infradead.org>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>
Subject: Re: [PATCH v3 2/6] mux: Add helper functions for getting optional and selected mux-state
Date: Mon, 29 Dec 2025 11:30:13 +0000	[thread overview]
Message-ID: <e8b0579d-21b9-4072-857b-5afab92c42e6@solid-run.com> (raw)
In-Reply-To: <CAPDyKFo2jsV02qSDBSZTewJjV09AMO8iETU5Uxqz+GBnd0JY6g@mail.gmail.com>

Am 22.12.25 um 15:47 schrieb Ulf Hansson:
> On Sun, 21 Dec 2025 at 11:38, Josua Mayer <josua@solid-run.com> wrote:
>> Hi Ulf,
>>
>> Am 17.12.25 um 14:38 schrieb Ulf Hansson:
>>> On Wed, 10 Dec 2025 at 18:39, Josua Mayer <josua@solid-run.com> wrote:
>> cut
>>
>>>>  /*
>>>>   * Using subsys_initcall instead of module_init here to try to ensure - for
>>>>   * the non-modular case - that the subsystem is initialized when mux consumers
>>>> diff --git a/include/linux/mux/consumer.h b/include/linux/mux/consumer.h
>>>> index 2e25c838f8312..a5da2e33a45c0 100644
>>>> --- a/include/linux/mux/consumer.h
>>>> +++ b/include/linux/mux/consumer.h
>>>> @@ -60,5 +60,9 @@ struct mux_control *devm_mux_control_get(struct device *dev,
>>>>                                          const char *mux_name);
>>>>  struct mux_state *devm_mux_state_get(struct device *dev,
>>>>                                      const char *mux_name);
>>>> +struct mux_state *devm_mux_state_get_optional(struct device *dev,
>>>> +                                             const char *mux_name);
>>>> +struct mux_state *devm_mux_state_get_optional_selected(struct device *dev,
>>>> +                                                      const char *mux_name);
>>> Seems like we need stub-functions of these too. Otherwise
>>> subsystems/drivers need to have a "depends on MULTIPLEXER" in their
>>> Kconfigs.
>> Currently the drivers that can use a mux select MULTIPLEXER in Kconfig.
> Yes, but that's not generally how we do this. The driver may not need
> MULTIPLEXER for all platforms that driver is being used on.
>
>> There already exist a few mux helpers both for mux-state and for mux-control,
>> and they might all need stubs.
> Correct. I think we should add subs for all of them.
>
>> I'd prefer the restructuring of kconfig dependencies being independent from
>> adding mux-state functionality to renesas sdhi driver.
> I understand your point, but adding the stubs isn't really a big thing
> - unless someone has some good arguments not to!?
>
> Moreover, since the series changes the mux-core anyways - and
> subsequent changes depend on it, I don't see an issue to fold in yet
> another patch to add the stubs.
Would this also cause changing all the Kconfig "select MULTIPLEXER"?
If it is only the stubs - sure.

And then in the renesas sdhi patch I can drop my change to kconfig.

sincerely
Josua Mayer

  reply	other threads:[~2025-12-29 11:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-10 17:38 [PATCH v3 0/6] mmc: host: renesas_sdhi_core: support configuring an optional sdio mux Josua Mayer
2025-12-10 17:38 ` [PATCH v3 1/6] phy: can-transceiver: rename temporary helper function to avoid conflict Josua Mayer
2025-12-22 10:59   ` Geert Uytterhoeven
2025-12-23 14:08   ` Vinod Koul
2025-12-10 17:38 ` [PATCH v3 2/6] mux: Add helper functions for getting optional and selected mux-state Josua Mayer
2025-12-17 13:38   ` Ulf Hansson
2025-12-21 10:37     ` Josua Mayer
2025-12-22 14:47       ` Ulf Hansson
2025-12-29 11:30         ` Josua Mayer [this message]
2025-12-29 14:46           ` Ulf Hansson
2025-12-22 10:08   ` Geert Uytterhoeven
2025-12-29 12:01     ` Josua Mayer
2025-12-29 12:07       ` Josua Mayer
2025-12-10 17:38 ` [PATCH v3 3/6] phy: can-transceiver: drop temporary helper getting optional mux-state Josua Mayer
2025-12-22 11:00   ` Geert Uytterhoeven
2025-12-23 14:08   ` Vinod Koul
2025-12-10 17:38 ` [PATCH v3 4/6] i2c: omap: switch to new generic helper for getting selected mux-state Josua Mayer
2025-12-23 17:11   ` Andreas Kemnade
2025-12-10 17:38 ` [PATCH v3 5/6] dt-bindings: mmc: renesas,sdhi: Add mux-states property Josua Mayer
2025-12-10 17:38 ` [PATCH v3 6/6] mmc: host: renesas_sdhi_core: support selecting an optional mux Josua Mayer
2025-12-17 13:42 ` [PATCH v3 0/6] mmc: host: renesas_sdhi_core: support configuring an optional sdio mux Ulf Hansson
2025-12-21 10:45   ` Josua Mayer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e8b0579d-21b9-4072-857b-5afab92c42e6@solid-run.com \
    --to=josua@solid-run.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=andi.shyti@kernel.org \
    --cc=andreas@kemnade.info \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=jmkrzyszt@gmail.com \
    --cc=jon@solid-run.com \
    --cc=khilman@baylibre.com \
    --cc=kishon@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-can@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=mailhol@kernel.org \
    --cc=mikhail.anikin@solid-run.com \
    --cc=mkl@pengutronix.de \
    --cc=peda@axentia.se \
    --cc=robh@kernel.org \
    --cc=rogerq@kernel.org \
    --cc=tony@atomide.com \
    --cc=ulf.hansson@linaro.org \
    --cc=vigneshr@ti.com \
    --cc=vkoul@kernel.org \
    --cc=wsa+renesas@sang-engineering.com \
    --cc=yazan.shhady@solid-run.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox