From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796045723; b=Q026lgxfNy2n787cM2ytK6LwYB/+OiZD1aZx3Oew933cxJEnf63DyfVBXM0tgZEhDB6u k99fmwE1zAVQJcCyDuHKWTsLVcybe7o0L8dJeigDOtJJRlpob88m3SJqcHNm5FNTzDtdu QzycvDIWIOws8VCF97X1qW5XMbvJnVwGpNK89/NnlhxtCQNXFDVXaLa1XAoAcEAvJztYD k0kkznR6HmJ/hvSxgnX9Je/eqJNiPvw9c84wdi79fR3LUn4CxQhqcOO6JW0Oy4vB16uZR A4O8nrI8o1yTdTOqoLqUX5CkQy9IEkgnNhBbl7ox2ZSINp5kXSworjsa+kg3RqSm3dg== 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=tUsn3wrwuJuSlmn49KymuegRedf6Sf7KhewVpJKv0Amcey1fE66rz0PlUescUgzsld7D C1SosGOJ0Bpuf4aDdsLb0JbVlCzcTITjjEcMRTzOvoVLoo8MsQjw5w3t2alawPgW6Bl/I bdEef/cv27V55t9JJS+gdruY6rhstJLo5ejXDQuaX5OtUCvwty2p6Ddox/hULjd8rDKjC fJakRG7o5BdPW3NFyM9qqF/6YSc4hETHDrbHy9ARwxMEsGxWmtxTtOqjaJjkT9oNTNF66 nhXv778ISJ8SkWUSHlUbO1Io5KftS3yWX8oFxX2SL1l8ntadvNPTkeGZlL7BNeWVViw== 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=omGBn6Cg; arc=none smtp.remote-ip=209.85.218.54 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 1A482606A320 for ; Mon, 30 Nov 2026 13:35:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1A482606A320 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) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=omGBn6Cg Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-c4cb6834eaaso825421866b.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=vger.kernel.org; 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=omGBn6CgLKQmga0BdHwTwhVTIQEV4EUs8bwLcu+q1+khy8199bXSP1bwETOmSy3+7z L8fi11vc4pjIf1Q41MRpbOZRZ1bLSX3k9RSfILN16809pRbPtx260+2Nbgw2aZIeFa/m dDVzZdiGTXWvNHKghXgoaCD0G9t9nBJgydakCycfW/K1CwHOKXKzlYOjtLUMs+TA9Z5H Vn/3RrXoRjHLVFSGqR2YAZZ+kHA214n4PUFals65hxnxwgXMM+GGlRvgmYTNKpo4C5JI AmFxqNYjNlHRgA3QMLO4xoUIQEcneWWbJ9e3NIcc5G6EWuCyTrhv6GwUaiIiJiR3CK6o VxGQ== 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=EFDxBhipl52xN42ZLPkjY0tkIIJqCcuikA0sKzfpholBN8oi5cw0Zd2Cesp7ljcVHV Ovax7BrDlcxUbuIA7FbyZ5uEe0VPCoT5dZLpzsMNELBHKuze6dp50WPoRbzWjsZZaTfq 49Pbx+6OvznWiKMquaJAGOtHS7TYJH/DsQX/5ocV5IamIx47oxRTfhDcAm08ba9tzTHf L+WA+3DzLjHtZWGJ7qFv2+obzxNdRtWIjhB8Z0X+jSmnvtB3z6HyoMm2C9dKFhGE7QUv oS9d5J4Ztbps/sdxAR+05JBGTGIlCY7WeaxjIxYvSZ6OF6hW3VmDcfDKOika9PP9LGp4 txDA== X-Forwarded-Encrypted: i=1; AL+hErH5486PWnL2PglTpjXMuPGV/zgZQ/tQXBTtXcTqIHV8QEYykclgFQqrH1gsZ6kuxpqBcMAqHNh7cnk=@vger.kernel.org X-Gm-Message-State: APuU4Z/yxpHUMVXr3F40VLmO23Hl5wBdQp4wm97r9MgRJ1wvusRGY1+g kUrrZYQurBmF6c35Fnw74dxFepnQiWQE4Uhwis0ZCzGEd112FISjvTtPBvx5UYKW9zU= X-Gm-Gg: AZFdTZcz9YTXpwgLt1BIYILOrg2ZRTAbk31Lec4PYfqbGCIw4he1+Gxjpg1rsu8+13g UrW9dWBYYYruVRCC+KQ40f/ZB9mF5ptCOPAoMx8JVk7wepMMa26kkgB6E8WguHxzMiZk5j3AHSu 6siTDjaAHVC0dbiJ4SbdFzfo/tdwO8VEW5IT3LVkQ1Yt7IA/8JhDJPBZjjVkoyZIJyEYT+hW9Kg mIDtdjcNh1xoTuZYgMha6cro70MMsO7VFfcjNdK65mPboQiWJl+Njs0dSZmEn8KAjB6SPQ8fefM r8ND7T/LhTGtdqdBg97zv/eZDRqf5D7g18ap/IHg41ppRi94INxG9eIJg0donwH/hEjIJ29VmV9 MpwZWkvU68Aq0958+NUGx0ItflnYSmRQWxr93G38NWc/rqCQQXVRQfGYi658PKLniGqD2o+cVEA UouqAprBDfGEjsRqVDWRWwz38WrDnmqDmc5KoEw5TAmOx+Z2AFeLfpmBsy7ARQ5+2Y7x2mvFWxY ZK2aZJixxWPHqfGhNxCWgezpJTAzHZKAEagNVPkjMCma8KTyH86bWgtQEGzyNEUTihX6AqNVCtc zH2/mdiWBe+U86kiHjPiyJNjdRbYZ0KzCA== 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-usb@vger.kernel.org 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'