From nobody Wed Oct 8 10:58:20 2025 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 CC1DC28C5C7 for ; Mon, 30 Jun 2025 14:12:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751292778; cv=none; b=u8REGNcXCDcQL2glGivEmcsMZoaayX3N80S/WSWwit10e8Egrr+fw5IMdY6wSaKIYtsjZKbfaZKZY0bgpubGF0cwpkEzp+NGC6GyZl/lP1mNiI9E6tXGZdFecM4ynneEDij4suvcIz5i3nkk2P3k7TdTVQ24GQ3DlkyOj5hez9Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751292778; c=relaxed/simple; bh=ytxK9BrkKoT/N8cg9coC0zFOaRK3Cp6/HIU92e99cEw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H1vKgEIWPe37bl5WRtQmoKR48/9x+SkBPe8qgMBFuaopDLppGcC9HXrZM4VX0m6ahVcXodj6p2uT3wIY7Nbxl4lgDMmBrGj0fiC8yQ6LqrHKOKa/oaMbtPmybn9YGA5LVpSpDFjD8URXlE8/xI844Xdf9fmnjXbpt60hxS4uQ7M= 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=IBpaNIIS; arc=none smtp.client-ip=209.85.218.51 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="IBpaNIIS" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-ae0de1c378fso314367966b.3 for ; Mon, 30 Jun 2025 07:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1751292775; x=1751897575; 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=BlOV7R9ML+sYKy5LsxmrHuBwhtr5k9iFt4a13bQXPG8=; b=IBpaNIISfOJcdeNC2qnfuKcaMrkxbVQfyv2YAFC0Q35DurCqYFv3gw6i9QmRT/5ohX QFLiR9UDlimkYGTF9u1vol5LOgkgclyxMiqfDDzppyvcNPEP0FEgi2w8HPSNPRLpLiKq uaFBFu39aUc4IroUg+dV06G1j4gDSr6+6dmAE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751292775; x=1751897575; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BlOV7R9ML+sYKy5LsxmrHuBwhtr5k9iFt4a13bQXPG8=; b=azi6MUfadAbsJFKIMvubfyXzlln0Xq490F508mCiYbWykOZ27eLveHiYW7rL8ChHUa BqiutIiy82VMhWmrFPBvjNVvQw7YiSbqWGoqDBBojBpM0HDnFOWc1Ryhu2ZJn7VxTg5d Q7MDAa/gpRqPJzVfVZh2F1sy/ZooYjpjztpliDf73bZPzKzeVr+tXIXpyWEW2c7FkSOR bHCbM9hz5AzIecKTxlV/PInLRMTqDe6IrDm0CrOpjEp2geQ02XsLg3bGonLwHaIv3QBR 5EJ47Jl3J3Kn/YJMSaDUEmLtCxiAroTd8j+S9K2g9WCoq3XvpM6yXm1qORRAjqFMuhzL H5fQ== X-Forwarded-Encrypted: i=1; AJvYcCUV4/SR83BGE/OCvGNdAjU2JDo2xuDfrQJ0xAglYKxrDzhSvwYtScg4YXqy+ZjXElprgo1IZzI4pBU6fqw=@vger.kernel.org X-Gm-Message-State: AOJu0YwMZGXvCC47ZLW2iPo1M3H0v1CpxVKvA1/PAWShtRcjFZz/V5yN SfR1O0NijabpmlJL9lEUwSQj446OEYlC2u1iFN6mdjherFmWIZQ+oADTzDW6xbKy9A== X-Gm-Gg: ASbGncuw3Sn1drmHCykqUWLGsK096WL7axx/cGJ6roFLJJQCloML4i4ZMm+PpN8r5mj J0/893yYq2s3VRTAZbhuHxoeIHBYAbr5IcU2R/qnaa+kIRA4omIhdRhrR+0UWt/+27z0bsDMBOB vjdX5n/ZScUNN6UN4F/7ZNpPBi7zfrK2Y2M6v0xgOFVKyC/XC/cpRlwwMEn0fyaMpcxDSW4CFxN gRbzKJtqUAGZodRRkQcaPTKXXX4N43cWsUh1SZSC4A6hFHdstnu1WWdcq+POlcouNqLkkGcLAAh nFlH9MoyvdRZmcuQ24kXtNWmHRhD0tlqlZgkYfSv2nAuoeYEV+zGZJKAMSzcNbxvc17fQgFk0JB Ix+2+5AkPXuzHV40Gqnz4fgCsiiWkmlUUGwMVOnLN+hf+Nnoi+x86 X-Google-Smtp-Source: AGHT+IH7cGazfkX+Q/r6UXJxDNNrYEeVRMUy3tM0qgcbXb/BVt0v1LwGWdxtyfIaNhvclHwiul1KLA== X-Received: by 2002:a17:907:e2cd:b0:ae0:7db8:4189 with SMTP id a640c23a62f3a-ae34fd38c3fmr1311198066b.18.1751292775141; Mon, 30 Jun 2025 07:12:55 -0700 (PDT) Received: from akuchynski.c.googlers.com.com (72.144.91.34.bc.googleusercontent.com. [34.91.144.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae35363b416sm670643866b.28.2025.06.30.07.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jun 2025 07:12:53 -0700 (PDT) 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" , linux-kernel@vger.kernel.org, Andrei Kuchynski Subject: [PATCH v2 03/10] usb: typec: ucsi: Set alt_mode_override flag Date: Mon, 30 Jun 2025 14:12:32 +0000 Message-ID: <20250630141239.3174390-4-akuchynski@chromium.org> X-Mailer: git-send-email 2.50.0.727.gbf7dc18ff4-goog In-Reply-To: <20250630141239.3174390-1-akuchynski@chromium.org> References: <20250630141239.3174390-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 --- drivers/usb/typec/ucsi/ucsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c index 01ce858a1a2b..1372becaec82 100644 --- a/drivers/usb/typec/ucsi/ucsi.c +++ b/drivers/usb/typec/ucsi/ucsi.c @@ -1616,6 +1616,8 @@ 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->alt_mode_override =3D + !!(con->ucsi->cap.features & UCSI_CAP_ALT_MODE_OVERRIDE); =20 if (ucsi->ops->update_connector) ucsi->ops->update_connector(con); --=20 2.50.0.727.gbf7dc18ff4-goog