From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61CD8C4742C for ; Thu, 12 Nov 2020 01:42:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F079F206F1 for ; Thu, 12 Nov 2020 01:42:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="XH00HgnQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729714AbgKLBl1 (ORCPT ); Wed, 11 Nov 2020 20:41:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728235AbgKLBXy (ORCPT ); Wed, 11 Nov 2020 20:23:54 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF149C0613D4 for ; Wed, 11 Nov 2020 17:23:53 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id q5so2965242pfk.6 for ; Wed, 11 Nov 2020 17:23:53 -0800 (PST) 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=N7Lf2zyWERPVdu1htC4rXtjvkvXPb9GfV1THCOYFuzQ=; b=XH00HgnQSvMCsYKU8m1dMFSTUu9rPajGK59TSV5XwegjFuF/OFM80jpJKt9b4w8HtO DAEoq/eI0pSDbHL5YiiGx87azE4m2Kcm+iXSVBeegTQIX3hxH1OdMUpggeVIy1J4BuoC Gns43J9xqLOkFd9XvKJIUMopKQO+xfIkJwLns= 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=N7Lf2zyWERPVdu1htC4rXtjvkvXPb9GfV1THCOYFuzQ=; b=Xu7T4rP0EbE2G16wh+kR3XWPoEpS2o8eYia8TJhml1KZW7WsruWhXmQ0pxE6o+mNuz Ozi6BMF/Q2LwQw2CnB7FShafjdx/UTusAR0HPVUn+GyBfSOSbJKDxI0ZaibE/JEIf6B9 QIb7CKIVizl//OGGGKauioVazX2aUaCBIXVio5ZbwnrnZS8nY62wK9+lc8fsJuAF/m2m CzpCBXQWlb/7g/L6bX+SSEDMrHAnoh9/xDsKTzPy6pqrMNdhJWLTEnEE2zT6PMkTDvnp KqQWYdipJvrw9jwyPOZuZ3o0Zui51B2HTX2WTKlpq294vxRvOCx1qN3JsXKh+A6feNTd xZSw== X-Gm-Message-State: AOAM5326kZe1N970HE6ziLHrzwBEAC+WgcE6z23Ypb4iS9NrsdZkYWID ZAvyXV0Cnjz0ZIGm7aUjHuZnlTHlYwyxiA== X-Google-Smtp-Source: ABdhPJyUs9WS/doQQJOar3CjKqcIF17wYM/oOgMOnZUo3GYSHnoTc1p0MtsJCj1qhMZAS7qduYBywg== X-Received: by 2002:a65:508a:: with SMTP id r10mr24784979pgp.307.1605144233091; Wed, 11 Nov 2020 17:23:53 -0800 (PST) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:a28c:fdff:fef0:49dd]) by smtp.gmail.com with ESMTPSA id k25sm4057227pfi.42.2020.11.11.17.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 17:23:52 -0800 (PST) From: Prashant Malani To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, gregkh@linuxfoundation.org, heikki.krogerus@linux.intel.com, enric.balletbo@collabora.com Cc: Prashant Malani , Benson Leung , Guenter Roeck Subject: [PATCH 0/3] platform/chrome: cros_ec_typec: Add plug and plug altmodes Date: Wed, 11 Nov 2020 17:23:25 -0800 Message-Id: <20201112012329.1364975-1-pmalani@chromium.org> X-Mailer: git-send-email 2.29.2.222.g5d2a92d10f8-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series add plug registration support to the cros-ec-typec driver. It also adds support for registering alternate modes for the registered plug. These features utilize the API provided by the Type C connector class framework. The first patch adds support to the connector class framework for the number_of_alternate_modes attribute (along with the relevant ABI documentation). The next two patches add plug registration, and then altmode registration for the plugs. The latter of these two patches utilizes the new function for plug number_of_alternate_modes introduced in the first patch. This series is based on top of the following branch and other patch series (applied in the order specified): - Branch: chrome-platform for-next [1], which is currently set to the "Linux 5.10-rc1" tag. - cros-ec-typec: Patch series to register PD identity information + partner altmodes[2] - cros-ec-typec: Patch series to register cable[3] - cros-ec-typec: Patch series to add partner number_of_altmodes[4] [1]: https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git/log/?h=for-next [2]: https://lore.kernel.org/lkml/20201029222738.482366-1-pmalani@chromium.org/ [3]: https://lore.kernel.org/lkml/20201106184104.939284-1-pmalani@chromium.org/ [4]: https://lore.kernel.org/lkml/20201110061535.2163599-1-pmalani@chromium.org/ Prashant Malani (3): usb: typec: Add plug num_altmodes sysfs attr platform/chrome: cros_ec_typec: Register SOP' cable plug platform/chrome: cros_ec_typec: Register plug altmodes Documentation/ABI/testing/sysfs-class-typec | 9 +++ drivers/platform/chrome/cros_ec_typec.c | 85 ++++++++++++++++----- drivers/usb/typec/class.c | 77 ++++++++++++++++++- include/linux/usb/typec.h | 1 + 4 files changed, 151 insertions(+), 21 deletions(-) -- 2.29.2.222.g5d2a92d10f8-goog