From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Vishnu Saini <vishnu.saini@oss.qualcomm.com>
Cc: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-usb@vger.kernel.org, venkata.valluru@oss.qualcomm.com,
Jessica Zhang <jesszhan0024@gmail.com>
Subject: Re: [PATCH v2 2/2] usb: typec: mux: gpio-sbu: Enable optional vcc supply
Date: Mon, 30 Nov 2026 15:39:10 +0100 [thread overview]
Message-ID: <aw2Kjr8HyTlWoH9X@black.igk.intel.com> (raw)
In-Reply-To: <20261127-eliza_evk_display-v2-2-e4223634aa2c@oss.qualcomm.com>
On Fri, Nov 27, 2026 at 10:53:01AM +0530, Vishnu Saini wrote:
> Some GPIO-controlled SBU muxes need their supply to be enabled before
> the AUX path can be switched reliably. One such platform is Qualcomm
> Eliza EVK, which uses an onsemi FSUSB43L10X mux.
>
> Enable an optional vcc regulator during probe so boards that describe a
> vcc-supply can power the mux before registering the Type-C switch and
> mux devices. Keep existing designs without a vcc-supply property working
> by treating the missing optional supply as success.
>
> Return probe errors other than the absent optional supply so deferred
> probe and regulator failures are still reported.
>
> Signed-off-by: Vishnu Saini <vishnu.saini@oss.qualcomm.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> ---
> drivers/usb/typec/mux/gpio-sbu-mux.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/usb/typec/mux/gpio-sbu-mux.c b/drivers/usb/typec/mux/gpio-sbu-mux.c
> index 8a8aa7470df4..7aad3f738a5a 100644
> --- a/drivers/usb/typec/mux/gpio-sbu-mux.c
> +++ b/drivers/usb/typec/mux/gpio-sbu-mux.c
> @@ -8,6 +8,7 @@
> #include <linux/mutex.h>
> #include <linux/gpio/consumer.h>
> #include <linux/platform_device.h>
> +#include <linux/regulator/consumer.h>
> #include <linux/usb/typec_dp.h>
> #include <linux/usb/typec_mux.h>
>
> @@ -104,6 +105,7 @@ static int gpio_sbu_mux_probe(struct platform_device *pdev)
> struct typec_mux_desc mux_desc = { };
> struct device *dev = &pdev->dev;
> struct gpio_sbu_mux *sbu_mux;
> + int ret;
>
> sbu_mux = devm_kzalloc_obj(dev, *sbu_mux);
> if (!sbu_mux)
> @@ -111,6 +113,10 @@ static int gpio_sbu_mux_probe(struct platform_device *pdev)
>
> mutex_init(&sbu_mux->lock);
>
> + ret = devm_regulator_get_enable_optional(dev, "vcc");
> + if (ret && ret != -ENODEV)
> + return dev_err_probe(dev, ret, "failed to enable vcc supply\n");
> +
> sbu_mux->enable_gpio = devm_gpiod_get_optional(dev, "enable",
> GPIOD_OUT_LOW);
> if (IS_ERR(sbu_mux->enable_gpio))
>
> --
> 2.34.1
>
--
heikki
next prev parent reply other threads:[~2026-11-30 14:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 5:22 [PATCH v2 0/2] Enable DisplayPort over USB Type-C on Qualcomm Eliza EVK Vishnu Saini
2026-11-27 5:23 ` [PATCH v2 1/2] arm64: dts: qcom: eliza-evk: Enable DisplayPort over USB Type-C Vishnu Saini
2026-11-27 8:31 ` Konrad Dybcio
2026-11-29 9:10 ` Krzysztof Kozlowski
2026-11-27 5:23 ` [PATCH v2 2/2] usb: typec: mux: gpio-sbu: Enable optional vcc supply Vishnu Saini
2026-11-30 14:39 ` Heikki Krogerus [this message]
2026-11-27 5:38 ` [PATCH v2 0/2] Enable DisplayPort over USB Type-C on Qualcomm Eliza EVK sashiko-bot
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=aw2Kjr8HyTlWoH9X@black.igk.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jesszhan0024@gmail.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=robh@kernel.org \
--cc=venkata.valluru@oss.qualcomm.com \
--cc=vishnu.saini@oss.qualcomm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.