From patchwork Thu Oct 29 06:31:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Badhri Jagan Sridharan X-Patchwork-Id: 314794 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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=no 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 0CA20C55179 for ; Thu, 29 Oct 2020 07:57:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD79A221F9 for ; Thu, 29 Oct 2020 07:57:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="JJ6GlOAj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732552AbgJ2H5Q (ORCPT ); Thu, 29 Oct 2020 03:57:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727010AbgJ2HYk (ORCPT ); Thu, 29 Oct 2020 03:24:40 -0400 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E8B7C05BD17 for ; Wed, 28 Oct 2020 23:31:44 -0700 (PDT) Received: by mail-pg1-x549.google.com with SMTP id i11so316270pgi.2 for ; Wed, 28 Oct 2020 23:31:44 -0700 (PDT) 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=4aAjapW2g4WVwvkzNIoEg1ilkTogTj9VaUOLswnANNk=; b=JJ6GlOAjBHTLhA8EVphhV5Znn5NxVNjWlRv6InenqyI0qLaS8YC9SToQ87d3rcDQpM oyMEZZZJu/14exMxQa5m/Jg8qDk/qr0Ce9sw9jpm1eZl2QtNOA043FU24U0ACA+SqllG dZE46eOiqf3a50VroFY+mOAs6MNvkX7PtKdcKiNQZdaXnSBOP+WsnS9r7d+ZiIIgWYbZ Q082GGUCyaHEcJIJXKM2qw5A4R9w74j/P2bC5onv+mc+Y5clwr/p4+qwuGeHv316LN5P l6OCAUh6Gb0LyS03a6U3QvQ11sLSDULSmjD8pegWyfJxkkvqiI4WLOIV8hFbW1io1it2 H6ZA== 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=4aAjapW2g4WVwvkzNIoEg1ilkTogTj9VaUOLswnANNk=; b=nlUvUzDHjr9RDLPvsy5KWAnIimQiFngS7ohF9GjsW1oO6YZ7ibdNIXIIgr0NmAhKuW raaxundIWlqnqA7KsHYkaQ/PV1F+oD5FOrIXusBrqC4j5GxxFhlJSC604UkFNLmIJojt G/NVHJ21xZCQ1ox7m152t1L3Ac6rm0gVsyIuj1+ZP9L3Nilk3XyOudQUGLLkT+lWIpoA OEoSPmn241BIgcGiS8FnPID3Q5C5QAvnGsN5CuxW3AOu/kV5rmAs3X4mgqcF4rHVbLQN wJpVZ8LyohVE+E+cX0F5U2ia6XC/C3B9klSY2u6Gh8SNDoSXiJZbBIHGNYkbfZ8P5SrM H/Fw== X-Gm-Message-State: AOAM532AF6NzdO5y1R4YJPbtMjCzvmir9PvAsICuZTGUpaU/8XpdH5Cg QOic572ec/gNROJwaY3TlBVyWtSDksQ= X-Google-Smtp-Source: ABdhPJwAa9PsaSb4fEU1nFvZeQwjIQfojniqqNUhMXA1K4oeSuR/CvJXHGufeGaCt/bg9RQFEa/eV9po/UE= Sender: "badhri via sendgmr" X-Received: from badhri.mtv.corp.google.com ([2620:15c:211:201:f292:1cff:fee0:66cf]) (user=badhri job=sendgmr) by 2002:aa7:8bcd:0:b029:160:cb7:b639 with SMTP id s13-20020aa78bcd0000b02901600cb7b639mr2761561pfd.78.1603953103909; Wed, 28 Oct 2020 23:31:43 -0700 (PDT) Date: Wed, 28 Oct 2020 23:31:28 -0700 Message-Id: <20201029063138.1429760-1-badhri@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH v12 00/10] TCPM support for FRS and AutoDischarge Disconnect From: Badhri Jagan Sridharan To: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , Lee Jones , Mark Brown , Maxime Ripard , Alexandre Belloni , Thierry Reding , Prashant Malani , Badhri Jagan Sridharan , Dan Carpenter Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi all, Addressed two comments in the series 1. From Rob Herring: Maxim parts are generally named 'maxim,max[0-9]+' https://lkml.org/lkml/2020/10/26/503 Changed all occurences of maxim,33359 to maxim,max33359. 2. Added a new patch to address warnings reported by Kernel test robot. https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2354139.html usb: typec: tcpci_maxim: Fix smatch warnings Heikki, now that Rob has reviewed the dts patches, the following patches are ready to be reviewed as well: usb: typec: tcpci_maxim: Fix the compatible string usb: typec: tcpm: Refactor logic for new-source-frs-typec-current Greatly appreciate all of your support reviewing the code. Thanks, Badhri. Badhri Jagan Sridharan (10): dt-bindings: usb: Maxim type-c controller device tree binding document usb: typec: tcpci_maxim: Fix the compatible string usb: typec: tcpm: Refactor logic for new-source-frs-typec-current usb: typec: tcpm: frs sourcing vbus callback usb: typec: tcpci: frs sourcing vbus callback usb: typec: tcpci_maxim: Fix vbus stuck on upon diconnecting sink usb: typec: tcpm: Implement enabling Auto Discharge disconnect support usb: typec: tcpci: Implement Auto discharge disconnect callbacks usb: typec: tcpci_maxim: Enable auto discharge disconnect usb: typec: tcpci_maxim: Fix smatch warnings .../bindings/usb/maxim,max33359.yaml | 75 ++++++++++++++++ drivers/usb/typec/tcpm/tcpci.c | 72 ++++++++++++++- drivers/usb/typec/tcpm/tcpci.h | 18 +++- drivers/usb/typec/tcpm/tcpci_maxim.c | 35 ++++---- drivers/usb/typec/tcpm/tcpm.c | 87 ++++++++++++++++--- include/linux/usb/tcpm.h | 19 ++++ 6 files changed, 274 insertions(+), 32 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/maxim,max33359.yaml base-commit: aee9ddb1d3718d3ba05b50c51622d7792ae749c9