From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A10B826A08F for ; Tue, 7 Oct 2025 23:51:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759881108; cv=none; b=KPxSJUpoYkbcwuFAY5hmJ/iQjZays9yEI8cREBsQrMHZ2QfmaqJmuRcVg0pKCbg40mBg9DzENOtOh+dCm7AOeEmUvk9Qi1drN2Cs69TC+GpGB/vrmLGLmJho8lsCCHODG7GoYApt5XWpyAY9BgJ6NDb2s5EyYfoedZb4+SJwDOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759881108; c=relaxed/simple; bh=pi53V1uF/tYf7fHEgh+OBnrKV9Fo/NCn3Rjh7pmA9Cw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bgbCLOk0T2LaY39EdYaPTBgllrjmbHFMTUzcoA4UAsrgNSSRWliabfusru7yE7ljl8oUvDGfVAAWdKRCFqmNdgCthX1o8lQYqeKTpxcBh26OcL86I3GCsK8GYTYwDMdLxz0ZLtdQBL95ueXA5PDhJuqNcDanUQHwfLOyBI0Hgd4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=s+WOPiJR; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="s+WOPiJR" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-77f67ba775aso9059897b3a.3 for ; Tue, 07 Oct 2025 16:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1759881106; x=1760485906; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=AfyQRT41Mv7RuOOAZnPCvsDsbq+2FeHyfKl7ri6/0g4=; b=s+WOPiJRad7h74QFr/MjwfCGVyumX9bxeq0EfAITDIB9q3VYUUtka+mEeX78G0MnBq +gYg670SsOopZ6jfprShXLOSlGPbs7jsWj6tYlrPbpByLU2LEbECw1ACRgcqgkgv201C /WCfaeFhaWCDAfasiiLw1tjMd/TQaEkSb/XTT+5aOpGqfcUhpB/BpSvm/w4J6yq3PQ8F zHu4p4d7AsKv2n5cUVcO7oMPRN9neAwRm5TEvQKCwR93f0B2xLmFqu9Jn3kY2UZCF5EU +x0AoNXLI0dMvsRL1dlmjDRwZlh9Mmzmae6Kixx8ohaAb7PDTMWy/NAWsHF1d+BRCm/j CHRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759881106; x=1760485906; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AfyQRT41Mv7RuOOAZnPCvsDsbq+2FeHyfKl7ri6/0g4=; b=nXlm7kHavJhMX9iuBPefB6zRKP7BUAtiGhG2yXMQ/tpVqm7cCLOcxDX+NAbFEogvC7 qD4nCYc3dWHkU76bYPG6T3Ah0cqzZiyx5jZ62p3s7b/Ix+DOkerhM2njYo3xEOx4ezGj QHDJzX3XT0ovTy7qTfwE8VDiGtWwM2f0OnAeI9DbOYhzcMqEvzc3vcByMF4wnJSAD0To T+vq/QdWvvcgB9PC9GQfFotU4IXNkL7h/eT4eLZyjPfMbVDuvrDqOt7VD93R12wJKc+X c2gfo+oYueplxmL8joh3W4TCAdHTiG3TmQpFCZUU2uyLcqF/QaLTYmCXYDrFKzldBAwv AIeA== X-Forwarded-Encrypted: i=1; AJvYcCXc7DXkvAMgg7Ke5OXG1UTt8fuzDxmZDWPuYFIYwRNHUPvpIwJMTx9e8bok7izbNBmR9rKNKTMoLQ==@vger.kernel.org X-Gm-Message-State: AOJu0YxykLhwIRLduFHwOoBY8k0TBOX+qRqIDhdUxc3VuXEPpRnr6WLs nw+k8vt8nzw4n8LpXqy3vqdwMwpUlj5a1Uk+z9Zt25d6CY0oiW0SCcIdqrqDAlByWg== X-Gm-Gg: ASbGncsGcXWjXv1QCUYFbKIlUxazyq4LeTab2gfSzqV73A896vB71kfROUkqSbQWlxC MC6mUoKKv+P5MU3yERZ8mfBpcfFvjjR+Fho33xtbFrxCX6Wy5x/PjQPBBH8yvmWAU2X9JaONss7 991j2gmRmEF7ByAmMNftmYG+Ka+1NY3xZv0RVx3dJrwzrlDVD3sbjAnekw8uRup7TWrtu0e0CGx BXMYwu8Ay5pPLpR607Fk70cLxndWoPHfjiwZurrTtonjZmVVL8wptCPsFyHA3e4qmhtTwejsWnv TwB+N5TVLMeC0Tt3UV6OeyLEsO7ebZNzXEOu83CZvHSoqf1kjWvuHcgnpd5TI7GddoRvzr5Inhs i/pnoaQguoHCYMah1/exQYnIkGkt9MK96KvHf8f3Bc+bK9f7H7ogurS+3bd1UFgV90UopODJy8D QU0ynbFhVMsID8zwi2xNj9 X-Google-Smtp-Source: AGHT+IFtxIjyYd1PKZvljXTufwBzE5tHAEMUoqY4YO2sjkFUBWHg+zaMyKMODS4B2h8OZmKwJMFWKQ== X-Received: by 2002:a05:6a00:23d5:b0:781:d98e:ebda with SMTP id d2e1a72fcca58-79387a233fdmr1306707b3a.30.1759881105262; Tue, 07 Oct 2025 16:51:45 -0700 (PDT) Received: from google.com (232.92.83.34.bc.googleusercontent.com. [34.83.92.232]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-78b01f99863sm16900862b3a.14.2025.10.07.16.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Oct 2025 16:51:44 -0700 (PDT) Date: Tue, 7 Oct 2025 23:51:40 +0000 From: Benson Leung To: Jameson Thies Cc: heikki.krogerus@linux.intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.baryshkov@oss.qualcomm.com, bleung@chromium.org, gregkh@linuxfoundation.org, akuchynski@chromium.org, abhishekpandit@chromium.org, sebastian.reichel@collabora.com, linux-pm@vger.kernel.org Subject: Re: [PATCH 3/6] usb: typec: ucsi: Report power supply changes on power opmode changes Message-ID: References: <20251007000007.3724229-1-jthies@google.com> <20251007000007.3724229-4-jthies@google.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gNnsiOG0NePRMiU7" Content-Disposition: inline In-Reply-To: <20251007000007.3724229-4-jthies@google.com> --gNnsiOG0NePRMiU7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 07, 2025 at 12:00:04AM +0000, Jameson Thies wrote: > Report opmode changes from the PPM to the power supply class by calling > ucsi_port_psy_changed(). If the current opmode is USB PD, do not call > ucsi_port_psy_changed(). The power supply class will be updated after > requesting partner source PDOs. >=20 > Signed-off-by: Jameson Thies Reviewed-by: Benson Leung > --- > drivers/usb/typec/ucsi/ucsi.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c > index 3f568f790f39..7b718049d0d1 100644 > --- a/drivers/usb/typec/ucsi/ucsi.c > +++ b/drivers/usb/typec/ucsi/ucsi.c > @@ -1022,14 +1022,17 @@ static void ucsi_pwr_opmode_change(struct ucsi_co= nnector *con) > case UCSI_CONSTAT_PWR_OPMODE_TYPEC1_5: > con->rdo =3D 0; > typec_set_pwr_opmode(con->port, TYPEC_PWR_MODE_1_5A); > + ucsi_port_psy_changed(con); > break; > case UCSI_CONSTAT_PWR_OPMODE_TYPEC3_0: > con->rdo =3D 0; > typec_set_pwr_opmode(con->port, TYPEC_PWR_MODE_3_0A); > + ucsi_port_psy_changed(con); > break; > default: > con->rdo =3D 0; > typec_set_pwr_opmode(con->port, TYPEC_PWR_MODE_USB); > + ucsi_port_psy_changed(con); > break; > } > } > --=20 > 2.51.0.618.g983fd99d29-goog >=20 --gNnsiOG0NePRMiU7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQCtZK6p/AktxXfkOlzbaomhzOwwgUCaOWnjAAKCRBzbaomhzOw wkFtAQDcbLui/sCiiAQpbwPKX+ot/X2L7Vr6dgaazf2MvSJBBgD/edscmgdUFSsX b3hORrAlZkcfotX4hVo8Xv3K9Puq9QU= =fKBd -----END PGP SIGNATURE----- --gNnsiOG0NePRMiU7--