From patchwork Fri Feb 5 03:34:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Tso X-Patchwork-Id: 377795 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=-21.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT, USER_IN_DEF_DKIM_WL 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 3D396C433DB for ; Fri, 5 Feb 2021 03:35:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD14E64FB3 for ; Fri, 5 Feb 2021 03:35:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230120AbhBEDfE (ORCPT ); Thu, 4 Feb 2021 22:35:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229989AbhBEDfD (ORCPT ); Thu, 4 Feb 2021 22:35:03 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A90DC061786 for ; Thu, 4 Feb 2021 19:34:23 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id l10so5552857ybt.6 for ; Thu, 04 Feb 2021 19:34:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=OrUeWv6axP6B3bDAlVwgBLZ4U02f8MvfgaV9eohQ9FQ=; b=Qiwm5plVh04WeCC3iq8iT23aScDU2aQ05Pp3jII52KGXXxGBafCEcg4O+ozaDQR6iu n0ysQbHh0ahgJncd6zcomqYyhFbSOfNfb9CoGbMEePWxk28Bpv1O2COD8SVWs+pE/pXS 3NN5P+nkd8phHdmb5UuZtMl3c8cj+E8fNcCEM0vZGEzT27wj3mbvbPwSQYvFU8gA0RqS THvqbtpl0GKZtLykY++6fTSmF0b3NrD4JUxkUSsuboea/lnOD4ILx6ebYrX/QYugx/5Z JyfhiSS6aGE/fuwRDaOMlRJUGbpCifebNaaVu9uR4Q1wPRqWVWTtuynhTvkPvyTa8WPN /SlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=OrUeWv6axP6B3bDAlVwgBLZ4U02f8MvfgaV9eohQ9FQ=; b=AC1DGaKzhQia/pLgdInzIoQLVF5dIhpzm235HLgZZ+u+QpfDEoGaOPyJ1ijQAGVF6e wbDhbHx8fYvAQe5W+ZJpWQfduigxPtz3sAWZcBXcVj5ZR3khCL8+FAOHXQAFaWdqq5tu VgbOCXzJ8V0C5djXAHQ/PDlf59qEAmoFLnfDSerPf2F9poKedUxDbW5lPZgawXHEXW/C R8rvkBIXLq5Uyhm5maHTZqyEqxa+Ept9MeXl50v4uU8SIv3cz69pi402YJj/wYvsb8Xz bBcI5LP/IE1GhX0VsQrn2QYy6U+O/71TNN5FxVPg7m5Mv+1P4D+KWYsdSFQG3yc8slNR E8YQ== X-Gm-Message-State: AOAM5339nrFVwvLJ/Dyibe4Y4GK5Koay3RgpAoWK23aJGvtVjpRenRAZ ScxJ+ju2GD0ay1U67CO0yIJpKFtaOPMC X-Google-Smtp-Source: ABdhPJzYef0pvSKKdaJVJ1Xtoy04P4W0X+TaqeBE/NiPggoRBq5yLm2fXUKPLe0spPO+/+6+NYpErjTMaD+o Sender: "kyletso via sendgmr" X-Received: from kyletso.ntc.corp.google.com ([2401:fa00:fc:202:dd94:c753:a81d:c855]) (user=kyletso job=sendgmr) by 2002:a25:73d6:: with SMTP id o205mr998040ybc.38.1612496062357; Thu, 04 Feb 2021 19:34:22 -0800 (PST) Date: Fri, 5 Feb 2021 11:34:08 +0800 Message-Id: <20210205033415.3320439-1-kyletso@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog Subject: [PATCH v6 0/7] common SVDM version and VDO from dt From: Kyle Tso To: linux@roeck-us.net, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, hdegoede@redhat.com, robh+dt@kernel.org Cc: badhri@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Kyle Tso Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org v5 is here: https://patchwork.kernel.org/project/linux-usb/cover/20210202161733.932215-1-kyletso@google.com/ Changes since v5: ================= usb: typec: Manage SVDM version - !! most changes are from Heikki - location of the negotiated SVDM version is changed. Now the variable resides in typec_partner - The setter and getter functions were modified according to the above changes - the default SVDM version is stored upon calling to typec_register_partner usb: pd: Make SVDM Version configurable in VDM header - no change usb: typec: tcpm: Determine common SVDM Version - follow the changes of "usb: typec: Manage SVDM version" - remove the "reset to default". Now the default SVDM version will be set when calling to typec_register_partner usb: typec: ucsi: Determine common SVDM Version - follow the changes of "usb: typec: Manage SVDM version" - remove the "reset to default". Now the default SVDM version will be set when calling to typec_register_partner usb: typec: displayport: Fill the negotiated SVDM Version in the header - follow the changes of "usb: typec: Manage SVDM version" dt-bindings: connector: Add SVDM VDO properties - no change usb: typec: tcpm: Get Sink VDO from fwnode - no change Kyle Tso (7): usb: typec: Manage SVDM version usb: pd: Make SVDM Version configurable in VDM header usb: typec: tcpm: Determine common SVDM Version usb: typec: ucsi: Determine common SVDM Version usb: typec: displayport: Fill the negotiated SVDM Version in the header dt-bindings: connector: Add SVDM VDO properties usb: typec: tcpm: Get Sink VDO from fwnode .../bindings/connector/usb-connector.yaml | 11 + drivers/usb/typec/altmodes/displayport.c | 17 +- drivers/usb/typec/class.c | 43 +++ drivers/usb/typec/tcpm/tcpm.c | 85 ++++- drivers/usb/typec/ucsi/displayport.c | 32 +- drivers/usb/typec/ucsi/ucsi.c | 1 + include/dt-bindings/usb/pd.h | 311 +++++++++++++++++- include/linux/usb/pd_vdo.h | 7 +- include/linux/usb/typec.h | 12 + include/linux/usb/typec_altmode.h | 10 + 10 files changed, 509 insertions(+), 20 deletions(-)