Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp769425rdb; Thu, 22 Feb 2024 21:42:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXeSK7mnnBk4Xg8VtWpqvBrOjkdXQVFHFmUcKQc9M6tkXRZPv5Vgenqqbo4RGi/l77I+t0++h24Hgo2KjHqF+LULxKVJsnEsNJmg9CWtQ== X-Google-Smtp-Source: AGHT+IFkZiGhg/qH4GLR9GsN50agxr09McyqTWT5CgAY6GeM8TvSpFApQYjXBd2FFLboRCp03v96 X-Received: by 2002:a05:6102:3177:b0:470:a138:794b with SMTP id l23-20020a056102317700b00470a138794bmr1075264vsm.2.1708666956187; Thu, 22 Feb 2024 21:42:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708666956; cv=pass; d=google.com; s=arc-20160816; b=fN7KMhVDcAPrpVqd5BURb/7Gu4CAUo6pXKWQ27BvJrtrKMpNiRBlmHCwfLlKmi5AAo mGi6uDSixEwjOf+U6rJmUhgB4uuZQnfoCPxgqPEvxQU97vgOGnHxM13i6BRLLdNv0NTb qtVjiQz2RjJcA8s5h5BkLidOE6C1t8BtpHsI4AMezbeOWKYQw6qSiYWdzD9jsPTvqB1E rs7YlO2BYE5limbKRwoGYoskKhPcmF3YcC/Rxay3Mu4LcSmtodqV1RY03Lh1HRGRow/1 utHyddC9SX8y+Gr9A/3NYvoZDDDnJlGTw9qwCQUBBadJX0z3enSYS7xQTlf7m3FnMWUf 65hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=qxG/aeJii+Y6qs4HnHvwGhjAHF46EFaC1e+Ez20c7pw=; fh=MHsav+2aBEMoMKYGxcmgzmRx4MqRZK32rZ62JhhWoQU=; b=ahuYFArXVjBkwthpwXlIcxXz2huNYidM/Ft6YWpAs3bexVpLAdFUeJEcR3NrAEYd+D xk+EMb1d4MvYqq+WWREoOpynPvQahy9lq2PPyaqPy0pUodTQW/t9M4IAp/bmbPviNeZA CueHAwPDmG1NCdJxDNBDm3yteHrIupVJzzrWXBW3dOd0Q5SSQnkTAwghyf7A2mOQkK1F eNDirW/14g4ASU4rVczqobFqvTTItmUf6J8EJoPaDiazM6pri2E6VSRO0wgLNZYAdZaG nUoQUJ324pmw4w9pTUh4km62Y1m2kYvysZHok7g69s8QXC5SuPELe7L05MZfUg6Bm9BX 63Gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bl5DMgAR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-77797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77797-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d9-20020a05622a05c900b0042c513c8cc8si15577497qtb.68.2024.02.22.21.42.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 21:42:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bl5DMgAR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-77797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77797-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E05E21C227F5 for ; Fri, 23 Feb 2024 05:42:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A91112B6F; Fri, 23 Feb 2024 05:42:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bl5DMgAR" Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) (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 EDA0911CBF for ; Fri, 23 Feb 2024 05:42:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708666936; cv=none; b=nxluXTbcbv6qaY5SZlVfm7k5r7pFT9vfHljKSgSHnlRIt0aGV+rwGf19hOfZbYNA3Bubc2u+C5CWHNtkjXkHFwZ+4r9bKQjwH1R1PJuV24U+wHULguQOjwPX0GEsxIQasQJX1HqwLBtvA7/hpJVqUYDrIDcZ2kQPPffc87nPKzs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708666936; c=relaxed/simple; bh=aE447Jap12eZD5a1J/X6aRmA5nuWBHWGqwLZ3ceezro=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Q7yeoQbjmOqBsZubZSkVyw50NOY8XIpTUQHhBayHP0sP5xLL5PcEQhcxpapCskL/ZUufaKH62sUjQGzj0hfaK5XxOJkkVbIo+b7LL1jDJiJRy9THy2S/LiEbumzohnm4zDJr+kD5dENOp1oiYqsXn5wqhQd+d2xVZoTYvHdpLKk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=bl5DMgAR; arc=none smtp.client-ip=209.85.219.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-dcc84ae94c1so438800276.1 for ; Thu, 22 Feb 2024 21:42:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708666934; x=1709271734; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qxG/aeJii+Y6qs4HnHvwGhjAHF46EFaC1e+Ez20c7pw=; b=bl5DMgARj+D+NSCbArcFBXnLAEDBjJOdEorOEQzMgFtv6yVutUbN+7bA0RHUFACOl4 977ElcbeF+Dq8N6F8Ga9KxI5Y6aoPGAJ8qCWCH+ZLFnkzu0fRgelv6pWbKhPeQ9HNdg0 rsjZvjaq+w7cSJTHbfcsyZ+RKkh7ZJJ1qS38HQ6FgeCvazqVdFJ+QtkACT5yI2duIlyq /aNo/LDD+IwwDhIYrMxjd5jpW+wbhw82j9HCvzswIk3yOOP/Z+Bg33NAH+Glt6a1+zPO jsgbyt8l1CdDFc2kv93+50C7MhkOlRvjgepd8nS+YgUCUijh8erLl/aqc6s9mR8GIB8Y xpVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708666934; x=1709271734; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qxG/aeJii+Y6qs4HnHvwGhjAHF46EFaC1e+Ez20c7pw=; b=eLpLOciAiOjdC3YZsBK7EZSQyKov+6jnRJ6CYihZ07VYd8P6tSdSwko3Qkqmz8ggsj 0jHFAbf3/Ud1E9BPBfeJLK7E5Nx416DGVNfKAskqJPUvql/I+kTtQ9PP3nU7X0zANAq9 Lvi+oxVYYOdDvbkEHQhaERFnrrMozvW0coX38FffRySzrDJWfuu3vDr40JBgMVmwB1lD 6rboBNed9wgIoV/hOW3SEhLOeMN0T7WE/J8GN0jeU5jsuNK0EmQ9+uiN2siReez5QoCR 6vKTjQLUlMNO2Hl7a0xgAqrYTk9jEexglJR9CxlmvW9EX3JaryNMhg3LFXxKmC7/aUl+ 7OLw== X-Forwarded-Encrypted: i=1; AJvYcCXrtZTAIKw7X4gYG2uK6tN9HcI09rethsaxfkGHnX5s95v0fjwctxOGHj6T+yauy64f/ioXEFpnbkDpTSAd5W4FXWfDqXVjpJVbovMd X-Gm-Message-State: AOJu0YyU8SZ70t3U7IzUu/oS+KZBfWNWhUjLQXjekV6VQGeg/G1d3ObA XmCHMG7iZ8dm1VW/nR0OCTS/X2CHEWbnLVdzhZKqjPGsj/M8o9OfmUZ7yImLFnyo27dEcxx+8xR ZFSvGzqGC2EzUp3w06S8vx77G1JxFLl/ikMlXVQ== X-Received: by 2002:a25:b58a:0:b0:dc7:4268:3a1c with SMTP id q10-20020a25b58a000000b00dc742683a1cmr1151956ybj.18.1708666933963; Thu, 22 Feb 2024 21:42:13 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240223010328.2826774-1-jthies@google.com> <20240223010328.2826774-3-jthies@google.com> In-Reply-To: <20240223010328.2826774-3-jthies@google.com> From: Dmitry Baryshkov Date: Fri, 23 Feb 2024 07:42:02 +0200 Message-ID: Subject: Re: [PATCH 2/4] usb: typec: ucsi: Register cables based on GET_CABLE_PROPERTY To: Jameson Thies Cc: heikki.krogerus@linux.intel.com, linux-usb@vger.kernel.org, pmalani@chromium.org, bleung@google.com, abhishekpandit@chromium.org, andersson@kernel.org, fabrice.gasnier@foss.st.com, gregkh@linuxfoundation.org, hdegoede@redhat.com, neil.armstrong@linaro.org, rajaram.regupathy@intel.com, saranya.gopal@intel.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Fri, 23 Feb 2024 at 03:04, Jameson Thies wrote: > > Register cables with the Type-C Connector Class in the UCSI driver based > on the PPM response to GET_CABLE_PROPERTY. Registered cable properties > include plug type, cable type and major revision. > > Signed-off-by: Jameson Thies > --- > Tested on v6.6 kernel. Expected cable properties populate the USB Type-C > connector class sysfs paths: > redrix-rev3 /sys/class/typec # ls port2-cable > device identity plug_type port2-plug0 power subsystem type uevent > usb_power_delivery_revision > > drivers/usb/typec/ucsi/ucsi.c | 69 +++++++++++++++++++++++++++++++++++ > drivers/usb/typec/ucsi/ucsi.h | 5 +++ > 2 files changed, 74 insertions(+) Reviewed-by: Dmitry Baryshkov > > -- With best wishes Dmitry