From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.8 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796049557; b=gS3NNmcLJ0b4Cb84Tyf0etuwvxTdwg6aQ39Paxed3CZ8fsZHJklcA5gqfIcCCZr3Ub4m leIf/qIrTG73bs/qQuxtcWDqtMnaFgirmoWX7bx2mR2ni1TDYgQaZtl6XTi1uUQXCOP1D bdNnGcLggV7ri39hgW+qnDTS3yjBX6U2L3twKNiczeaVd1yJ/3nmM4fD4zDA9km8yEZWW hDkWfSisLelZeuAbwuBYYDdKecuWvTm2PjW1tcxB5OYNPTj7ayyaLWw3UDo1NN+cAvHEi HJwJuHn5vqco5jDoJU6N0c5wSTB/mG2QMuBBu56fHLu7LMWpPp/D9gAKwEnnKiBWDUw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796049557; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=e04qX1GRztpMuh4rCWtbvB6wYRfODdLcTaDyx4Cv27Q=; b=yUCs4tUEnAXEv1b4v0PQNFE08hFy2kgDFHpGFTXmr16Bg/cgfzSvhktDrIzh1idGTw3O Pi3v565E90o0inITnTpTl27qu8ggumYQcHntx0Q8O/PHo40YXejA450+yCuhIr0d4478r m+6NqMZW/Ya5YeW6Xx0J3PWRHXmcfHJVCF+dBC4LX1qAVwbWpoeTQvdtGe3+ezfpwkLCc w+4tyYFZ8j2IbbpiGNtvWeijpCYGFABkvS8EP85mI7V7mnvhgQQmG8jcFlSFC1x5wzO/s yZAXuY8wMgY1qfozjcd1u6HiAadxtbNj0s/VFoGvveKExUs6kcu1wg65sqJ7QiRxi4Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Zh+qZj+Z; arc=none smtp.remote-ip=192.198.163.8 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E11E606A33D; Mon, 30 Nov 2026 14:39:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8E11E606A33D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Zh+qZj+Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796049555; x=1827585555; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=e04qX1GRztpMuh4rCWtbvB6wYRfODdLcTaDyx4Cv27Q=; b=Zh+qZj+ZhHNGgX48wHaaQScoRHAqHXooutfVqHOiAR+WilipWcLQtMGr UWIOeG+KWQOt2W5zQDvhh0wNs5czgLRJXBvee0OX6iW3VwAJtJVTArVWR 4wFg9K1tdl9dU0PkphBK3g72j4ddoGLv6PTkr2vMRWl/Q9FrGf8ZYPHoE 5pVIawjBezdr7Guhe6Al/A+kZ7C5HlH/z0tn+WF4a5lBugIsIgAjyT3j9 AbOpI2PH51X10NswzSXVkQZWL9N9L42p2RWAr8tIDKaOfsPqo/uTb4Z4c ENg+EyUOqebUoRXBLe9H7nY21GaH6M0lV1OzA8gqkvD808nKuTRTjEJjg g==; X-CSE-ConnectionGUID: KhcTwl+KS/Wdp5FYin4VHw== X-CSE-MsgGUID: yJOKPvdoTYSRE2Q8d1VeAQ== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4763200" X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="4763200" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 06:39:14 -0800 X-CSE-ConnectionGUID: De8PumGBSqqFg8AQKE2SgA== X-CSE-MsgGUID: sZBY2NbrRBaNr5mmNtxAJQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="13194349" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa002.fm.intel.com with ESMTP; 30 Nov 2026 06:39:12 -0800 Received: by black.igk.intel.com (Postfix, from userid 1008) id E251098; Mon, 30 Nov 2026 15:39:10 +0100 (CET) Date: Mon, 30 Nov 2026 15:39:10 +0100 From: Heikki Krogerus To: Vishnu Saini Cc: Bjorn Andersson , Konrad Dybcio , Abel Vesa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, venkata.valluru@oss.qualcomm.com, Jessica Zhang Subject: Re: [PATCH v2 2/2] usb: typec: mux: gpio-sbu: Enable optional vcc supply Message-ID: References: <20261127-eliza_evk_display-v2-0-e4223634aa2c@oss.qualcomm.com> <20261127-eliza_evk_display-v2-2-e4223634aa2c@oss.qualcomm.com> X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Reviewed-by: Heikki Krogerus > --- > 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 > #include > #include > +#include > #include > #include > > @@ -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