From patchwork Wed Mar 11 19:14:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 11432647 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9586614B4 for ; Wed, 11 Mar 2020 19:16:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 179DE2074A for ; Wed, 11 Mar 2020 19:16:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YLNdyNmK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731105AbgCKTOu (ORCPT ); Wed, 11 Mar 2020 15:14:50 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39912 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730944AbgCKTOu (ORCPT ); Wed, 11 Mar 2020 15:14:50 -0400 Received: by mail-wr1-f65.google.com with SMTP id r15so4125146wrx.6 for ; Wed, 11 Mar 2020 12:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zzGl1lTjjJuRxMAbBftuxtB9MJjgk6x+oviFOcjaDys=; b=YLNdyNmK2vyfKxMOCS7HWp6d4XQsMWdvOQEcKN1faOdUM2BCv2B+GumqHRkGR0Z7Js 2/B4v+VZA/N1+wiDPZi47q69b2OQKgEaNkP0tciXHqiRB/UU5yFqXfKC2+YoVK20U4Yn yhabALLKRaYhGdX9h/D6CI2KsWUpj+hlbOzApfQUKj1U0OD1RU1H1ACq8vM9ZmFS7Au5 b6WU4OqMN+skDeiX0bE1bbtSjF3bqz1d7r6dKLe3ILE9QgBzVaz2Ca0j9a1J91FtVAg8 M/2acCXJCJl6t147QLWaKT3nd4ZlcuQK7kNBVHZTSGfTg1PPjuLF75otBYKsa8UopN4N t9kg== 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=zzGl1lTjjJuRxMAbBftuxtB9MJjgk6x+oviFOcjaDys=; b=n6wuVtRtOwvuLUa6xhdbBLcVt8C22enxBdZzQkVD+A5LbaJVAxKMyY3wdJuEmDOLBl yKLOLJvDJiBzav2OZuYSyT80ZomRPd83EaZo60NrrgEeTG3x8ANf8xj6bhabi8SblOsv iUcxioKJSMMcTJeOwBxT3AK4e8jnhjR28lAMvZkepKjKleU+dO9yBqrqV6CtpTPn38Ow Qm0l72kc6TlfFcvzXwjlHi1zVKVMw1YHZxA3gRt4EZFEhTyaMYR9SivXu6jP4/pNpbtR kYmUXZjXsb8aq849vUi9mca9+5N1twwpbbp8dfwe1AR27BPBgUbWDstbD67jftUpI/p7 9BuQ== X-Gm-Message-State: ANhLgQ03A9VlGbeVkuS84FYDlz2Wzbpy/7I+vXPa9MTL7Cd/PI5TceM4 ZBaUoa/+QaFT92o2mEDS0rel+YtikHU= X-Google-Smtp-Source: ADFU+vte2EmnA1VGXLC/3ngkjZwkIu3t0fo0J77SleUTZo+UYnOJ7Q0A4UxmnD3gJhE3NfCOt6QUNA== X-Received: by 2002:adf:fe4c:: with SMTP id m12mr1494872wrs.96.1583954088160; Wed, 11 Mar 2020 12:14:48 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id n24sm32958496wra.61.2020.03.11.12.14.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 12:14:47 -0700 (PDT) From: Bryan O'Donoghue To: balbi@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, jackp@codeaurora.org, robh@kernel.org, Bryan O'Donoghue Subject: [PATCH 0/7] DWC3/Qualcomm connector based role-switching Date: Wed, 11 Mar 2020 19:14:54 +0000 Message-Id: <20200311191501.8165-1-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This set of patches adds the ability to use usb-gpio-connectors with role-switching to the DWC3 controller. Additional Qualcomm specific logic is included in the Qualcomm DWC3 wrapper to facilitate PHY related updates on role-switch and thus VBUS state toggle. These patches have been through seven review cycles already and have a number of Review-by and Ack-by. For the pusposes of making it easier to merge this set focuses on the USB role-switching related stuff alone. The last set for can be found here: https://lkml.org/lkml/2020/3/3/807 Bryan O'Donoghue (6): dt-bindings: usb: dwc3: Add a gpio-usb-connector example dt-bindings: usb: dwc3: Add a usb-role-switch to the example usb: dwc3: qcom: Add support for usb-conn-gpio connectors usb: dwc3: Add support for usb-conn-gpio connectors usb: dwc3: Add support for a role-switch notifier usb: dwc3: qcom: Enable gpio-usb-conn based role-switching Yu Chen (1): usb: dwc3: Registering a role switch in the DRD code. .../devicetree/bindings/usb/dwc3.txt | 9 ++ drivers/usb/dwc3/core.h | 22 ++++ drivers/usb/dwc3/drd.c | 120 +++++++++++++++++- drivers/usb/dwc3/dwc3-qcom.c | 31 ++++- 4 files changed, 179 insertions(+), 3 deletions(-)