From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 9F5C544998D for ; Mon, 14 Sep 2026 16:29:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789403395; cv=none; b=Nbj5kOlXuvVzoT63ln4F850cJIv6vb5575sb7z2mnmEUroDdZMNIl8EC0o6+ipfBuPxBA2MQKUu1Oq8y67pbLzRa6ZbU2JV4l0b74aWu1tSPAT6BOC2rSc9q18kZk73q3tluYsyg8GwRlGeJ8n8QQMW16wvxWtsU+kwIVYG/9rw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789403395; c=relaxed/simple; bh=VzPYMqC7uh5dK0C9kMbLAxPkLoYUdT+jrtwBmfYDgpY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=inOL9NNKa05AFIk/yQI9kOd3ZVhtCORnY3WlSCGVAjKAxXu9+WKHE0pjKpb5JkZ8SPfws851ayFccybyhBxM9pjFwTyqLjstinlS1EwWMn1nmq8Nvkp1PvslHWeEAUH2/X6yAlPXwCUUh9vxdk5tWdVMU6OB6nJ8Kat2RZ1OsxU= 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=cPixOSyA; arc=none smtp.client-ip=209.85.214.178 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="cPixOSyA" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2dd68a16955so73765ad.0 for ; Mon, 14 Sep 2026 09:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1789403393; x=1790008193; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=FKHV2WwgwnbPgYuLyfno0u5tkhusyNkx3Q+6kxT2SNI=; b=cPixOSyAE7mQoMNnvdc8dCVQGdwnepYFw0o1JNiexDqKwljSM7XD14BEAlKQwVpNUJ +ebyUSO+KJ6Gizq2bQ785pH3ylvmYHQU+ozFdWANSjB6B/XxScAX/FGpqncs0Yl0uiS3 ogpuzET785fHDFfd1fG4uzYIrr9Pq86dSHv6Zw5w5Og3Z9KfIpItORTSM+n7xLuQCzCE Lks7ZA+UaQ7eWQjhViAePVqjsTMoTSnBAm5AKwRi9QOBcKP/PUS8nmCl71oco34vL5Od P933Ez2/PQR7cpSkcB1uI7Tolv8xa1JcTZIa9Z1dhAvHt/bWNfY+rC+KfJjdC0ogShoj 8WVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789403393; x=1790008193; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=FKHV2WwgwnbPgYuLyfno0u5tkhusyNkx3Q+6kxT2SNI=; b=e0oicNUgI/j0dAqJqOXDk9hMhH4MXMWd2UTOPjjqmkGnYPcvvGHf//flfWb8Ft9MlL nznwCA1H3JtSGBSN9Mn9ZIxMEdmO9iRIxygIkSqciRJGheIGqdkpuoQJekq9HjAdXMVn CQtMlu0Z4yIRK9dsrE0F5WFruxfauEv9mUnLcOD9LwWkVUiDdalw7EWeAlutcT1PW87B gMbcNZp045YcubFeFC0BgCcY2sMMl0FUVzOWw5Lkq7FccKM0y6YaxyEV7DhItn95C+Pn FZP2LLzM33vZhe3QczR0LB27T1uP7TMfKjzEeh2IHiLJ4Tz0HHWT4OOVYfC3dN0f1lvR ZFxA== X-Forwarded-Encrypted: i=1; AKwUvBzNiJ/f7a8hzZVEK7NjbQAECqeGnsE2RmH7oXErgIdMTTwKbSF+6xUZjnbPral6ozM4xwWlZilLmHFAdls=@vger.kernel.org X-Gm-Message-State: AFuF++n6VBQX/VT9s9rIrhf9qvyw3WqB/OC5dd2729VpITs9k0O19YIJ PemXeydI7PFWJIcX0+lY/Bsse25x73hjIOhirbstsbaD+/ABJWLV1pK72JZCDdBiFQ== X-Gm-Gg: AYBFou00g9EhdIt4zWielUWDCMoCyhsHFDqHd3UwfaJdDfsYwMMOEFOEX/4vcqsUWcb OCVqhGgGXbUsnjSOy6TlX4KQulxS5Nqal+Po8LfxpYmVgJUWPjIHNXfy3UPE2YjVcR5q9N7rrrJ x0Haq6Gzu1Fujf73AMyM/MC+Su3sesW31o4+itA5sqtG0KKNVKkAai7ov8WrO0UXbpUQf0KOfdJ xHmGl45Z3oaRADPzA41c06twCYD3QAbFmS1I3D6611deQiU5ItKZL939FTWsJwIs8zOOZONYaQj vIiy+XJwYMG21MH54Zl3i7TRi07uaEuwz692a/wRlZ5OJjAJhVKI333HqVult2T0a5AZRL4uyoo 6lA5/B98FDJZP/cCH357YwQ/+k+OIcIG+Qh7MRxb2352lZFmlN2UCMD4lQ487Gtnb+TpUtvRIKe UNXlYyK5uuXLOcm0c7yQAf9d9iFjjfDl7/iIQ11ltNjeAZpsNbDNP+7ElNWADRcHb5a7ln2RtYm 7TzsYITIankvGpbPI3RsdcHCwWmzU9nMy3jyg== X-Received: by 2002:a17:903:120a:b0:2d8:d4d2:d139 with SMTP id d9443c01a7336-2dd7655bb26mr1787525ad.21.1789403392149; Mon, 14 Sep 2026 09:29:52 -0700 (PDT) Received: from google.com (236.123.127.34.bc.googleusercontent.com. [34.127.123.236]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2dd4bab2981sm35942235ad.49.2026.09.14.09.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2026 09:29:50 -0700 (PDT) Date: Mon, 14 Sep 2026 16:29:47 +0000 From: Benson Leung To: Jameson Thies Cc: heikki.krogerus@linux.intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, bleung@chromium.org, gregkh@linuxfoundation.org, akuchynski@chromium.org Subject: Re: [PATCH] usb: typec: ucsi: displayport: Current CAM OOB index fixup Message-ID: References: <20260911193208.410015-1-jthies@google.com> Precedence: bulk X-Mailing-List: linux-kernel@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="yJPWLAEjDtr24YBO" Content-Disposition: inline In-Reply-To: <20260911193208.410015-1-jthies@google.com> --yJPWLAEjDtr24YBO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 11, 2026 at 07:32:08PM +0000, Jameson Thies wrote: > Update ucsi_displayport_enter() to return invalid error when the PPM > reports an current alternate mode greater than or equal to > UCSI_MAX_ALTMODES. While here, remove 0xff current cam assignment on > failed GET_CURRENT_CAM response. >=20 > Signed-off-by: Jameson Thies Reviewed-by: Benson Leung > --- > Original patch didn't incorporate reviewer feedback. This is a fixup > to be amended to: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit= /?id=3D04cec690b1fd9d1c4c314b91a10d8c68a3acfe18 You should edit the commit message to use the appropriate "Fixes:" tag. Follow the instructions here: https://www.kernel.org/doc/html/v4.17/process= /submitting-patches.html#describe-changes >=20 > drivers/usb/typec/ucsi/displayport.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) >=20 > diff --git a/drivers/usb/typec/ucsi/displayport.c b/drivers/usb/typec/ucs= i/displayport.c > index 8d2032d0762c..572da7bbd29c 100644 > --- a/drivers/usb/typec/ucsi/displayport.c > +++ b/drivers/usb/typec/ucsi/displayport.c > @@ -71,11 +71,14 @@ static int ucsi_displayport_enter(struct typec_altmod= e *alt, u32 *vdo) > if (ret < 0) { > if (ucsi->version > 0x0100) > goto err_unlock; > - cur =3D 0xff; > } > =20 > - if (cur < UCSI_MAX_ALTMODES) { > - ret =3D dp->con->port_altmode[cur] =3D=3D alt ? 0 : -EBUSY; > + if (cur !=3D 0xff) { > + if (cur < UCSI_MAX_ALTMODES) > + ret =3D dp->con->port_altmode[cur] =3D=3D alt ? 0 : -EBUSY; > + else > + ret =3D -EINVAL; > + > goto err_unlock; > } > =20 >=20 > base-commit: ed2050bc671b44b2c948dbd4347cc534d44ccc9f > --=20 > 2.55.0.1007.g17ff1f9808-goog >=20 --yJPWLAEjDtr24YBO Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQCtZK6p/AktxXfkOlzbaomhzOwwgUCaqgg+wAKCRBzbaomhzOw wqxvAQCQZGPzbf/ZRYp1W/aQBt7t9TimOcbo3dbbEaFddcEJLQEA/mP3bMsx7Pod C5eeLJdakdnfUg6vRgCSlJFahKIjhAM= =LEz8 -----END PGP SIGNATURE----- --yJPWLAEjDtr24YBO--