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: 12069227 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=unavailable 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 7D00BC433E9 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 3BA5A64FC2 for ; Fri, 5 Feb 2021 03:35:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229989AbhBEDfE (ORCPT ); Thu, 4 Feb 2021 22:35:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbhBEDfD (ORCPT ); Thu, 4 Feb 2021 22:35:03 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 160F2C0613D6 for ; Thu, 4 Feb 2021 19:34:23 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id e62so5503015yba.5 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=OSME1N5+EwI+zqCGd9PVQmk0GGIR35d8Vjb7Nr8eSZ6FPs+Er+mX7i78CXap3OD2gs HWKBqBA7aiVRqOLBkpMsE+bsQf/sdyGa2Di/HnhLmI9WHtckbGQIGl8MjSSLZDxi5Vca qRNnIaA1YFmG/hkHN15e3oUZmBbZky3+6KwOPNpem03YM6RLf083w2mSf7adL1qBoZ1a VtN5AQb3lY3m7EjhFa8LudS8tcC0HCUvowWSyUXioeC4jdbtKAm3elg1OBsmGlTsxRhs jDeQ0hEmJif1kbCNeIzgP82UwCn2cana5UpTP6+HzZEnKnJypxsGauzo7lDjUiqJGnN4 yCCw== X-Gm-Message-State: AOAM532rqvJivW/ieolxn3eqRQ4FvsB+5YYC1hkdRdgvSaa5mU5VLYsY JMuz2Ln9XGOfPlZu5hqpXh2DA8JorDnX 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: linux-usb@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(-) Acked-by: Heikki Krogerus