From nobody Tue Dec 2 00:46:28 2025 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 959C23019B5 for ; Mon, 24 Nov 2025 12:46:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763988414; cv=none; b=DiUnhb+AY7m+dXDd25Wa9YWsEiA+8k0LexsI3Zo8D+he1HwvbThLs4DBp4Eu951eIPvJz9EbvoJ9004cN717PjihmHlT6dqR2Aty2E2wuxjOigB6OhAsOfJhu4T8iRwCJgSSXcHbqHd9uwn8x2R0icT7TKaFoNiX52b12sTuhdY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763988414; c=relaxed/simple; bh=WiqBNXOl3cRjaCJAYVsy21ddsz+svXl8bRrhWSOeHSU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SkIkF4eM5/0Z/MepqftNw/aa4+HXlVzaKGywy0W9JSUv3+pweQ09BlvBIept8XpYtCFBDPCjl+OBpJokRlzAjapDpDy3mwyXclgLn/zL3SEVHUH+8E/q0jXwAVjxjuxDjh9R9C3Rzu1M0qD8hqviqP4x4JUnfHLTvSf1ByrUm5A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=dc6VnD0W; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="dc6VnD0W" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-640c6577120so7424503a12.1 for ; Mon, 24 Nov 2025 04:46:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1763988411; x=1764593211; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=20W+VePrDZCUNpW6oks/2DqF0UJGlQouxoOcp4kUQPw=; b=dc6VnD0WJeNYTYvaDihdVjyiBRiWbI4wM1cEhyi7qCUUwG56Iz25W5lWDqjiTrJngg uoBZC/D6Uw57KuI7PNoUtPq1aTSr2Xui2HjYsvotsp+W4mJHDeah4OzBgTxyoBtNt+2/ vhfUZTzFyePlh4PnahJWfN8g0p0iOZZMKD+tw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763988411; x=1764593211; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=20W+VePrDZCUNpW6oks/2DqF0UJGlQouxoOcp4kUQPw=; b=ZqsrF/8DoNRNTwfNd9hDFc/gFf7pnOyEztzMoN9QA/YUVTkUxzMoZTWh2E0XTNNbag LRuACqFnWJb64UsSWI3DV7Vb6H8pcK9xk5QUdXMrw8g9gY2s67Idz1x/Za59A/kThJAh zd4kxHFSsMT/8/xaTBF8+UnCFwhSJYJbctiMm9iu2iK8NftcfW5hTgV3IF3BkrSzFkNs CnQTMaD+zgRwRPnkdF2UEYhTopSXvjesSLO+fF3mroPXTWyOIhhoaHr1aKfGmP56qBh1 mFKUF6nT7KD195PtbSV77p9m9jlAAARNGpu3qA2F+xyobKM5o2BtAZSVJLPrvicG7iG0 3LUA== X-Forwarded-Encrypted: i=1; AJvYcCXtaFQpoVXJkgMax/+P0pLE5zVOehtM9ZR8DWGGhghwGdo3dxCv6rqt3DY1U0WIsoSQy9SXWQDFeikE/xw=@vger.kernel.org X-Gm-Message-State: AOJu0YyO/oGELrPUuZ4cwBBAMJxamCrPCUgswmTIC4I/rLMFfYc43SYM lwtynWZqyZHS7zIXTxibdEdZz2J6u0JvM4ASbxCqRZEzjrGkqPnssGlH1G/vtdbgiA== X-Gm-Gg: ASbGnctefUDOvK9FjCeeFZs7j3qiIRM59ajw/fWcInuZSnCljYwLR5iZy2EiDlc8CAE NQi9tQ2n/yExGZ5SyJcwM4jD3kjdIVcI9vZj8+KaqgQPnPb2uZPOC2jQgCv6Ci6gSlu58Of21W2 XYn0CHm3ESjmw0uGnY5N+dfSiCr1EKqobhoWhKQumP2hg8w9PYHQtKI2B7BclpSJ9sQUrLolmQo vmJOyNdXmodXSTlZj8HEJArCNCWQtCx868CyCedruyFWUlLnYvSoG8YGdkSx4cPfGysXuH5ksGa rRGs6ScfWMRgJczgCmqip4RIBH30FA1cDjQlFut5A6Ku5+SblvOxqhQYVdlwvrj06wSjb1f5sbp jLtbCuxcT+4GttdUJWKFMDHaUYGPDhgzvc53OhxyLCTvA9Cnsm6eET4upe0lis0esLOGyRGLeqU c6jb2JNe5Kpqr2+FAEuFu/+xaHwtlfC1s091hPOGh2Vk/HTbxXqvYL0yF6/maWK7rc941I0WNya Xml+Ge69rg= X-Google-Smtp-Source: AGHT+IFBc5f43ZGu6GEElbBrb99VGVIcJ0+CIqsv4BCyTkBuMMbiuLeutPFKmbIx7Sw8GvAwIvAE3A== X-Received: by 2002:a05:6402:3246:20b0:640:c640:98c5 with SMTP id 4fb4d7f45d1cf-6455469d112mr8681807a12.34.1763988410986; Mon, 24 Nov 2025 04:46:50 -0800 (PST) Received: from akuchynski.c.googlers.com.com (224.138.204.35.bc.googleusercontent.com. [35.204.138.224]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-64536460ea9sm13342599a12.35.2025.11.24.04.46.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Nov 2025 04:46:50 -0800 (PST) From: Andrei Kuchynski To: Heikki Krogerus , Abhishek Pandit-Subedi , Benson Leung , Jameson Thies , Tzung-Bi Shih , linux-usb@vger.kernel.org, chrome-platform@lists.linux.dev Cc: Guenter Roeck , Greg Kroah-Hartman , Dmitry Baryshkov , "Christian A. Ehrhardt" , Abel Vesa , Pooja Katiyar , Venkat Jayaraman , linux-kernel@vger.kernel.org, Andrei Kuchynski Subject: [PATCH v5 3/4] usb: typec: ucsi: Set no_mode_control flag Date: Mon, 24 Nov 2025 12:46:38 +0000 Message-ID: <20251124124639.1101335-4-akuchynski@chromium.org> X-Mailer: git-send-email 2.52.0.rc2.455.g230fcf2819-goog In-Reply-To: <20251124124639.1101335-1-akuchynski@chromium.org> References: <20251124124639.1101335-1-akuchynski@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This flag indicates that the PPM allows the OPM to change the currently negotiated alternate mode using the SET_NEW_CAM command. Signed-off-by: Andrei Kuchynski Reviewed-by: Benson Leung --- drivers/usb/typec/ucsi/ucsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c index 9b3df776137a..82c3efd72639 100644 --- a/drivers/usb/typec/ucsi/ucsi.c +++ b/drivers/usb/typec/ucsi/ucsi.c @@ -1700,6 +1700,7 @@ static int ucsi_register_port(struct ucsi *ucsi, stru= ct ucsi_connector *con) =20 cap->driver_data =3D con; cap->ops =3D &ucsi_ops; + cap->no_mode_control =3D !(con->ucsi->cap.features & UCSI_CAP_ALT_MODE_OV= ERRIDE); =20 if (ucsi->version >=3D UCSI_VERSION_2_0) con->typec_cap.orientation_aware =3D true; --=20 2.52.0.rc2.455.g230fcf2819-goog