Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp925390pxu; Fri, 23 Oct 2020 17:35:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz710gk9jzU0fkooarmrH2qGK8pIffQrQmhGAnR77nKW5IQFG04B6o/WeFVDonhiROALQhI X-Received: by 2002:aa7:d495:: with SMTP id b21mr4667615edr.231.1603499707131; Fri, 23 Oct 2020 17:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603499707; cv=none; d=google.com; s=arc-20160816; b=wT0qTfTvNvUqFC7kv8mTMuseJPsn5sEb0ARVmmrKEjhJDz/slxgpl1250AiF2Bef0Y vEV7wyNBR4YU+K/8xKkrEMbYZ0FyJUqZDG691i4vx0lJrpDRL5sC/+NCXDG1rg8v4P8w Gjww5cpKde5AUqy/HpuASi/ZBBqyLo3sg88Tz2YVKJnTQRP2HDJLBdLObL4+h4TbYD54 Y4U5LFObv2rrslN9TVLXe/qp75JHlOCQarwDbYwi4P6FZaxKEZhQeTtmQSfKjNP+LIm4 24YflI3VRcX2IIwHbj/hT+Br0sgVNWpN7PmovN+DgTi+sbb5WgNxs+5DSFjiO8J+Rh3E Apog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=j8WfHBe1he2P6vHiEzCoXjELjhHqzR0SChORwDmTyBw=; b=TsP533C+b/Ji5T/4aoto1R7/JhAJAH8d5rHfLcXQtWRbRtg1fWtQm8kKYAjWMidKC1 xsV2Img6fO5oIPMrIWldk16/0XJu9Nd9BB5HCf0cuJsv7JO0j1G2WwJQUh+fLcoCbKUq BmbyOFNNWECoQv1Rp88PlsCie84YssCq0jfw1X8LpJIbge6IB0J0ZpBxKNR9oOHE+iT4 bqc2WkD2qOMRQ91S21jmhhl85KYLo05nvgNNLj1pZM11A3Iue1nbVNGXAfFjpm8Gjnah brwu8a2RT2xaIlQVlPIWqsvi6RDvjdDH/4on3heENjjC6GtrPC5S+bUDUalHNnK1/966 cp9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ioxm4k6I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si2409535ejm.716.2020.10.23.17.34.44; Fri, 23 Oct 2020 17:35:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ioxm4k6I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756809AbgJWVn7 (ORCPT + 99 others); Fri, 23 Oct 2020 17:43:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756806AbgJWVn7 (ORCPT ); Fri, 23 Oct 2020 17:43:59 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7123EC0613CE for ; Fri, 23 Oct 2020 14:43:59 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id j18so2535560pfa.0 for ; Fri, 23 Oct 2020 14:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j8WfHBe1he2P6vHiEzCoXjELjhHqzR0SChORwDmTyBw=; b=Ioxm4k6IQEOK0IvA9CoL5I/Aim+DbS+TqDr9g55yRJIodJ87hC+4+UNpQY4kHVr8tt OBaXP46HwL7cBlOhlSyF9GOYv7fdo+K3NsQUgdIVjbiljF4guuN8CoCXyduDCRiKybw3 pXhx3aEiDjZYwhT+qKooNVcDZDJKB5M7bttHg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j8WfHBe1he2P6vHiEzCoXjELjhHqzR0SChORwDmTyBw=; b=ZKvYVd0gco6cxlVwVuRUcVL3u98HBausjrnpPOWkXrDbUw6ryaP7zkZLiqGsWE4nqB ahTHEEksQFSsUFQCMSJiniM/2f6doY9NQMWF2N+MEIE86/+dIVxZCPuwbX8NuZp2c919 JFBEw/WQigmP8mNFHF+pf/B056tafUCrQUPf1ilceFxoYVkkVnwwYwGAEToT2cXXHTIb YQleGzabwiPUHnd/Touicjy769XFwwdh6lBksC3SGh/aupR+f/MHtTywrTy+nwdvt3l6 yK0wQnlUgIZuFh5sSKyYnNMX7O/ZT4JihPHnEPS19ObYdDkMxT0vmOmKsySdW1sSO8dT 1SzA== X-Gm-Message-State: AOAM531jrXaLas3d0YjUFaQwFS8tN01ged0AacbvEuDcedzJCTxFJNwx 4QhC7n4/O8y5fbwdJm466D6CE1zJNxv1jg== X-Received: by 2002:a65:4bcb:: with SMTP id p11mr3533960pgr.253.1603489438336; Fri, 23 Oct 2020 14:43:58 -0700 (PDT) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:a28c:fdff:fef0:49dd]) by smtp.gmail.com with ESMTPSA id j8sm3167338pfr.121.2020.10.23.14.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 14:43:56 -0700 (PDT) From: Prashant Malani To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, gregkh@linuxfoundation.org Cc: Prashant Malani , Heikki Krogerus Subject: [PATCH v3 1/2] usb: typec: Consolidate syfs ABI documentation Date: Fri, 23 Oct 2020 14:43:26 -0700 Message-Id: <20201023214328.1262883-1-pmalani@chromium.org> X-Mailer: git-send-email 2.29.0.rc1.297.gfa9743e501-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both partner and cable have identity VDOs. These are listed separately in the Documentation/ABI/testing/sysfs-class-typec. Factor these out into a common location to avoid the duplication. Signed-off-by: Prashant Malani --- Patch first introduced in v3. Documentation/ABI/testing/sysfs-class-typec | 59 ++++++--------------- 1 file changed, 17 insertions(+), 42 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-class-typec b/Documentation/ABI/testing/sysfs-class-typec index b834671522d6..0f839fd022f1 100644 --- a/Documentation/ABI/testing/sysfs-class-typec +++ b/Documentation/ABI/testing/sysfs-class-typec @@ -134,42 +134,6 @@ Description: Shows if the partner supports USB Power Delivery communication: Valid values: yes, no -What: /sys/class/typec/-partner>/identity/ -Date: April 2017 -Contact: Heikki Krogerus -Description: - This directory appears only if the port device driver is capable - of showing the result of Discover Identity USB power delivery - command. That will not always be possible even when USB power - delivery is supported, for example when USB power delivery - communication for the port is mostly handled in firmware. If the - directory exists, it will have an attribute file for every VDO - in Discover Identity command result. - -What: /sys/class/typec/-partner/identity/id_header -Date: April 2017 -Contact: Heikki Krogerus -Description: - ID Header VDO part of Discover Identity command result. The - value will show 0 until Discover Identity command result becomes - available. The value can be polled. - -What: /sys/class/typec/-partner/identity/cert_stat -Date: April 2017 -Contact: Heikki Krogerus -Description: - Cert Stat VDO part of Discover Identity command result. The - value will show 0 until Discover Identity command result becomes - available. The value can be polled. - -What: /sys/class/typec/-partner/identity/product -Date: April 2017 -Contact: Heikki Krogerus -Description: - Product VDO part of Discover Identity command result. The value - will show 0 until Discover Identity command result becomes - available. The value can be polled. - USB Type-C cable devices (eg. /sys/class/typec/port0-cable/) @@ -196,17 +160,28 @@ Description: - type-c - captive -What: /sys/class/typec/-cable/identity/ + +USB Type-C partner/cable Power Delivery Identity objects + +NOTE: The following attributes will be applicable to both +partner (e.g /sys/class/typec/port0-partner/) and +cable (e.g /sys/class/typec/port0-cable/) devices. Consequently, the example file +paths below are prefixed with "/sys/class/typec/-{partner|cable}/" to +reflect this. + +What: /sys/class/typec/-{partner|cable}/identity/ Date: April 2017 Contact: Heikki Krogerus Description: This directory appears only if the port device driver is capable of showing the result of Discover Identity USB power delivery command. That will not always be possible even when USB power - delivery is supported. If the directory exists, it will have an - attribute for every VDO returned by Discover Identity command. + delivery is supported, for example when USB power delivery + communication for the port is mostly handled in firmware. If the + directory exists, it will have an attribute file for every VDO + in Discover Identity command result. -What: /sys/class/typec/-cable/identity/id_header +What: /sys/class/typec/-{partner|cable}/identity/id_header Date: April 2017 Contact: Heikki Krogerus Description: @@ -214,7 +189,7 @@ Description: value will show 0 until Discover Identity command result becomes available. The value can be polled. -What: /sys/class/typec/-cable/identity/cert_stat +What: /sys/class/typec/-{partner|cable}/identity/cert_stat Date: April 2017 Contact: Heikki Krogerus Description: @@ -222,7 +197,7 @@ Description: value will show 0 until Discover Identity command result becomes available. The value can be polled. -What: /sys/class/typec/-cable/identity/product +What: /sys/class/typec/-{partner|cable}/identity/product Date: April 2017 Contact: Heikki Krogerus Description: -- 2.29.0.rc1.297.gfa9743e501-goog