From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.forwardemail.net (smtp.forwardemail.net [149.28.215.223]) (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 C38F04EE87D for ; Mon, 7 Sep 2026 13:31:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=149.28.215.223 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788787912; cv=none; b=UXhnwgk4iHdN4V9XbiQ7mM0T5/JWdQScCup2S3AIo2UlLcLOKKW+FXHqMt6XIIsuYJG9fnpUgXOVEXPPdlw4IG/rN7uCPwn4Wkak4Eozt8iqwQzw5yQVvJ2z3TZZb4Fz1hyx9qkk9+W5myNaNPfnOds243M+9UpJ2PcAAuZfe+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788787912; c=relaxed/simple; bh=vSD2AYUqreAplwWCoXjMl8VsUBh+Ur5feTbvL7P08Rk=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=LZ/RqZudzWoBl+h/0C+hhmmDuhWqQYe3PQoTtlZs0wKNxvCZhofW6M+ece/ueYed3307gOJRWn/SbEzDiwdzF4KJwzn+qqLoJom9PMRVmudt2YlQmS/Q4cQ0GfBaVZkj9K3S1iGID9cEDuAlLvw8RHw8KwKjH8UBIv23C2PAosw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ubuntu.com; spf=pass smtp.mailfrom=fe-bounces.ubuntu.com; dkim=pass (2048-bit key) header.d=ubuntu.com header.i=@ubuntu.com header.b=lz/lQ9ZY; arc=none smtp.client-ip=149.28.215.223 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ubuntu.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.ubuntu.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ubuntu.com header.i=@ubuntu.com header.b="lz/lQ9ZY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ubuntu.com; h=In-Reply-To: References: To: From: Subject: Cc: Message-Id: Date: Content-Type: Content-Transfer-Encoding: Mime-Version; q=dns/txt; s=fe-953a8a3ca9; t=1788787903; bh=VxFACcZSg9jdFJMF6rmUZ+dSf6/n4Bae3xVZCZ/pLgY=; b=lz/lQ9ZYHURLT+S17IgykjQ9OxbvUyPdaFREosu40s7sgXCi7xSDgf7dmsZ+ShinpAIQZZ1w2 6CFKsZxBZYZLr1ibu8DlxCPhaPxyiOo89ZnERYYdbNnEP2JDkacxjtJGZJe5w1E9MT7eLk69gsy 5M8yBpXMeP6mXGYC6tHbKbKmP52Gd+rZ4n94DHmiDlBUM7ImFZwYWiY+weCVERJhM6448m5hdjy U36RWDlYQgjI7i/Zih7cjvbnJuSq36WWlNIJVf+vCVzmkKY1oDMMQTSCjwftdw3wNv08CU/r/fM U/rR0w3Pbe8o4Ql9dOpgLzBlQdQa3R3T1HmxFWhEPRaw== X-Forward-Email-ID: 6a9ebcb816171017b32bae93 X-Forward-Email-Sender: rfc822; jpeisach@ubuntu.com, smtp.forwardemail.net, 149.28.215.223 X-Forward-Email-Version: 2.14.2 X-Forward-Email-Website: https://forwardemail.net X-Complaints-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Report-Abuse-To: abuse@forwardemail.net Precedence: bulk X-Mailing-List: linux-usb@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; format=Flowed Date: Mon, 07 Sep 2026 09:31:34 -0400 Message-Id: Cc: "Konrad Dybcio" , , , , , Subject: Re: [PATCH v2 02/22] usb: typec: Represent USB4 on the Type-C bus From: "Joshua Peisach" To: "Sven Peter" , "Heikki Krogerus" , "Greg Kroah-Hartman" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Janne Grunau" , "Neal Gompa" , "Andreas Noever" , "Mika Westerberg" , "Yehezkel Bernat" , "Philipp Zabel" X-Mailer: aerc 0.21.0 References: <20260906-b4-apple-soc-tbt-v2-0-1f80085f93fb@kernel.org> <20260906-b4-apple-soc-tbt-v2-2-1f80085f93fb@kernel.org> In-Reply-To: <20260906-b4-apple-soc-tbt-v2-2-1f80085f93fb@kernel.org> On Sun Sep 6, 2026 at 2:36 PM EDT, Sven Peter wrote: > USB4 technically isn't alternate mode and entered using the EUDO and has > no SVID or Discover Modes Response. We can still represent it like an > altmode on the Type-C bus though by adding a mode kind. Exclude the USB4 > modes from any SVID-specific operations and driver binding, but allow > consumers to observe their state through notifications. > > Like for other altmodes, expose the USB4 mode to sysfs: Add a mode_kind > to be able to differentiate and then expose the EUDO, make the USB4 > active state read-only since we only represent firmware-negotiated USB4 > modes and omit anything that only applies to SVID-specific altmodes. > > Signed-off-by: Sven Peter > --- > Hope it's fine to add you as the contact for the sysfs documentation, > happy to add myself otherwise though. > --- > Documentation/ABI/testing/sysfs-bus-typec | 36 ++++++++++++++ > drivers/usb/typec/bus.c | 67 ++++++++++++++++++++----- > drivers/usb/typec/class.c | 83 +++++++++++++++++++++++++= ++---- > drivers/usb/typec/mode_selection.c | 6 ++- > include/linux/usb/typec.h | 20 +++++++- > include/linux/usb/typec_altmode.h | 10 +++- > 6 files changed, 193 insertions(+), 29 deletions(-) > Reviewed-by: Joshua Peisach