Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796045723; b=O6fdU1hPcrl33o9KTNYLRC/d937TfZlAmmolnCgKljB5AchS8Hbjzr3xxXiYzyq2xwnz OnUDujlPkyJ3JELSwD4ZtT8JDdJtPVzKXHY2MC82u6DXO6u2M/A8asU06xiPKdY1Gfr2q E8jNS5/yntT7Bqptm2DX1oJw5/lOGTchZ7bLEquFxYx3+GO3X+aG2bPH/l1t412WH9/1p PxCB5tLhZkK0LkECs2YLIsbcvBnEnbFWGxfMM0FHofb84Evpn8Tl9QzvdgPZbFl0dg7me xWZ7YqKmtf8zVgaY2zA/Jin2RZuNsY6QIz/VTuOBrR3J4bS7c6+aCTK92pfzuAwv/7w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796045723; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:Content-Transfer-Encoding:User-Agent:MIME-Version; bh=tpaHlMzljkmeg7X7ijUoHjY7N8V+3p5Ib0i9u4lzA2Y=; b=dVCplo6SCWsMV1qS3LuBBB1FpOILeBJ1QDl+1QLNd8f1IjFIcm7EkfD5Q62xu4x4m9CA uEr3lhsTBQuOcSpfghRRdvV4cs8P1LU6vD/+c78812x5R3OMiGNDeefsP4fi36C4EiPZJ Wud8xPfrP1bXJfPhZeCzVRQHWopF9HRfLkvKuaSTw3WP47LNvHBl3Kua1E+itwTH1GcFQ 5eBUsoUkM5a/0XWFhbjUmKDBtzQJLZOxTJvANUPzR1Ph3FYRP3oWcXipf1fWmkUDyhsZr 1l5lmT7ci2xeeCCG6eWIC/uC6kUv6siaah9OzMqAv0LH0jaI3niIiVksJtLqJypuvXg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=AnHk3VtA; arc=none smtp.remote-ip=209.85.218.52 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BE82606A325 for ; Mon, 30 Nov 2026 13:35:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1BE82606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=AnHk3VtA Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-c4cb6834eaaso825421766b.2 for ; Mon, 30 Nov 2026 05:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796045720; x=1796650520; darn=lists.linux.dev; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=tpaHlMzljkmeg7X7ijUoHjY7N8V+3p5Ib0i9u4lzA2Y=; b=AnHk3VtA42HbH0NDSmHD5loG9G6qtyT8u+5nY68DO1xj+66/WcZzreTSS/MMXQUO55 LwNSv8x3x/1Ee2QC7mvvyR7xcDseJ0aO2oRxr0I3hYG3jVMp1U4QC2Tv1lNGb8UeEizo Jgpql98Zz681LaiK8IxURwD8Cxj7VUyIrGYZNmYXyFi8GpKSxNH+YFfH7oiIw2W/AMa8 Q5JQYX2Wc959hD8Hl4+xEvbli3Arn3Bf62qn2jOJBcLql4TwHajDZWSvZoiccvOCGaUN pWTk4Uqj0MK8mNAEKDSRz0a+22yYxSDJXXLoWLIM4GyxySMaeN5d6pXTRcAEqKMNq31j zw/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796045720; x=1796650520; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=tpaHlMzljkmeg7X7ijUoHjY7N8V+3p5Ib0i9u4lzA2Y=; b=zpAtnhhaYOy2S3TGhvF5kTlg3OIZFIioG29tYJ+XtSM4XSOrQ6e5WuHHEmy24mfuZd UX7yfTZl7ZUFoGDvRgM87nswGkiQdD7EB/TpAizCRRCl+W8Wgsd4cbD6wKghoK2rW3AI AMXaSHotHA69QpBScdAjucyfOiE0EqVes5wpkeuuQzofu4108kKzhMWnd16mdPaKoiBr rW4oxccmBXFQizzAKVjkJjplplGnc2za900Uj7b0mmK07Zvv6oNc2XnSZcb4b6+bbTyk geh0z7h09fggDuGdrpuXwJ7wSC7AC7Mjm+IrhXlFYgBS9KGOAlhrZtbWCU7g3q+Y9cdX FGSg== X-Forwarded-Encrypted: i=1; AL+hErH4UMEwWZ9l7XPQUjEfsgSfh3QBNRPWYQ1LNFJVY7aeClhMBIFroWlNbkSwJhJsnG6xON7TI4z5+vQaH59NVg==@lists.linux.dev X-Gm-Message-State: APuU4Z+BDkaZTJVudF13jD9SkgTUNg6eQdUoEtF7/aNlM+844a6t/dTp t7wX2MF0wgNuPtVS21cxCWOBqq6Vimy5ASI64X+ZV4pIqDZIoqA2Y2FMi59nwbyKD9U= X-Gm-Gg: AZFdTZcfVZL5pn630GijPqcxrbv1A0BKbjWheaf11KMCwm3Ut5Rt18Y31EWKWVIiJyM ORwp2q8OYW0LOx8uu1/uzqD9bI737Ju/A2lHKXzkzVd6wK+JxHWRKb8em0VhHKM8d416R26OvQH WsdSl+3aMHgQ4CzK8OOHUPM6lOa5eM1y1bGK4HvMPq8HZruhwgn82ehuG/+sSPZeEq5mSXSOmre CZuEylE/5tCnDgffRdXys3rlbl42V/dZLuquUiYONPoJyXuMm3yEKAawP9W2Aux2MNirbhKAOxm 0axuxmg0FP23wIYf6pGcghmExpWEwPjmunexyK4NLK3lW9fHJCJzjraVP0EyBKQDbmhS9uCzxFE G8AClMgRMGiMmRAlaJZJ5Xz6Bhd9IVfhPuXW9E2tGWRNtsUqjJ5cSGQjnjalj9fqJvClovQB8id Pos3B7uGnM296iiq9yZNTVN2R4D87Ydy3PJ7R6/8zZROUri3ibSAfotLU7VQgyilnUsmRveV+hb KzFb/IoZrfbBipveFss6w4g5u4+cLgpUT76xK9uxx0lF1m+A7yb9HCZAGbbbZTjlQokWfdaeqNU CIn9S9pmkowX5K1vMQ20J7D8e9eLqcPzOA== X-Received: by 2002:a17:907:1c9c:b0:c49:df95:fd0 with SMTP id a640c23a62f3a-c519ac70721mr1663450266b.48.1796045720348; Mon, 30 Nov 2026 05:35:20 -0800 (PST) Received: from [10.1.1.59] ([109.255.181.4]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513b00117dsm1153240966b.80.2026.11.30.05.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 05:35:19 -0800 (PST) Message-ID: Subject: Re: [PATCH v2 4/4] usb: typec: tcpm/tcpci_maxim: only complain about vbus when sourcing From: =?ISO-8859-1?Q?Andr=E9?= Draszik To: Heikki Krogerus Cc: Greg Kroah-Hartman , Badhri Jagan Sridharan , Sebastian Andrzej Siewior , Clark Williams , Steven Rostedt , Peter Griffin , Tudor Ambarus , Juan Yescas , Amit Sunil Dhamne , kernel-team@android.com, linux-usb@vger.kernel.org, linux-rt-devel@lists.linux.dev Date: Mon, 30 Nov 2026 13:35:35 +0000 In-Reply-To: References: <20261125-max77759-wait-v2-0-9914b985c00b@linaro.org> <20261125-max77759-wait-v2-4-9914b985c00b@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-9+build1 X-Mailing-List: linux-rt-devel@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Hi Heikki, On Mon, 2026-11-30 at 13:38 +0100, Heikki Krogerus wrote: > On Wed, Nov 25, 2026 at 12:16:58PM +0000, Andr=C3=A9 Draszik wrote: > > get_vbus_regulator_handle() logs a spurious "Failed to get vbus > > regulator handle" error during probe and stores the ERR_PTR in > > chip->vbus_reg even when sourcing VBUS is not requested. > >=20 > > During tcpci_register_port(), tcpm_init_vbus() calls set_vbus(false, > > false) before the PMIC charger providing the vbus regulator has probed > > (the charger's power supply waits for the TCPM power supply), or on > > sink-only boards without a vbus regulator. Sink-only operation does not > > need the vbus regulator, and max_tcpci_set_vbus() already ignores > > regulator lookup failures when source is false. > >=20 > > Leave chip->vbus_reg untouched when regulator_get_exclusive() fails, > > return the error from get_vbus_regulator_handle() silently, and log an > > error in max_tcpci_set_vbus() only when sourcing is requested. > >=20 > > Fixes: 0c8935642cb0 ("usb: typec: tcpm/tcpci_maxim: deprecate WAR for s= etting charger mode") > > Signed-off-by: Andr=C3=A9 Draszik >=20 > Not for stable? AFAIU, Fixes: commits get ported to stable if they apply cleanly, while cc:stable is asking maintainers to do more work to ensure it backports, i.e. deal with conflicts. This here is just getting rid of a log message, for which I didn't think stable would strictly be required. What do you think, should I explicitly add it? Cheers, Andre'