Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1458016pxb; Mon, 11 Oct 2021 06:30:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmLXHyKgREQnoFgvyKB3tLCNMMOeYkvEr9n8iO7SynDeElIW06KzHMVS1dbD6Ztwb07fNZ X-Received: by 2002:a17:906:5e01:: with SMTP id n1mr26791538eju.385.1633959018923; Mon, 11 Oct 2021 06:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633959018; cv=none; d=google.com; s=arc-20160816; b=wYKby5+GRw9qxdFvOi/JaOEJy0qJ4nWE1E4SvULpt4l9vpdXRH4JuE5JNe6uK8JuQy 3jVm9hhNrdpQACiEW8K+0bGB3AjClJtqDClLHfO00QS+i4WIGGTKU2woGWQcflZQosPj PQzQQLxoQdfWj19VBDxTshOMM+QP84z7N2QgtfTQE1mcXGCU22RIHLC/MeXSj1KY3l9g X70fiaNgcx/N/D3sRg28AmKJoJGIUYaxcAlnNYgh+vmJdVEurJaIwiAXL54/rPtIW11e p8jpIW0Tdk95JmKfoZHFOFHGHcW+1A71EnUIJu1N5I+lAB67j4gXaeJ1TcdaqB+/lOp9 Drog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Q2bk0SM4S+ys0xKDZh9CP4KSPECepr879TrFVMFq2Jg=; b=oEBfvh44gIfBRNw9b2ZGSjhBgtIDIHJWngG2iFP9dfxsJHFru+cMhCnpqH1399GgJo xplVSquAsQjpKOzuRhtcrNWeHnU/fLF15TphwIZa2L8RmESQRsArMDDHfkrpErUViAd7 k3P2L+bn3Po1s9DOkkPbzRIbgWcnu0NPoleSg633K/p3nes8yKcKr/m69e652vk9RIyC zGZoo5h7hl6OjvQfeQkn9pYtb9Ui1tuZulp7lknrTi2DQ5LsozVANkmeWoH5F/29RBW+ wHIfDjyOlr1ocwMz3wROy3dbmuaKrLozbno0sQST6M9aVL2AXLnzu/uFEK3s4WMGOckk cjqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si10912801edc.581.2021.10.11.06.29.54; Mon, 11 Oct 2021 06:30:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235735AbhJKKEb (ORCPT + 99 others); Mon, 11 Oct 2021 06:04:31 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:43674 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235602AbhJKKE3 (ORCPT ); Mon, 11 Oct 2021 06:04:29 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 11 Oct 2021 03:02:29 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 11 Oct 2021 03:02:27 -0700 X-QCInternal: smtphost Received: from c-sanm-linux.qualcomm.com ([10.206.25.31]) by ironmsg02-blr.qualcomm.com with ESMTP; 11 Oct 2021 15:32:09 +0530 Received: by c-sanm-linux.qualcomm.com (Postfix, from userid 2343233) id E952235A6; Mon, 11 Oct 2021 15:32:07 +0530 (IST) From: Sandeep Maheswaram To: Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Felipe Balbi , Stephen Boyd , Doug Anderson , Matthias Kaehlcke , Mathias Nyman Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, ppratap@codeaurora.org, pkondeti@codeaurora.org, Sandeep Maheswaram Subject: [PATCH] usb: dwc: host: add xhci_plat_priv quirk XHCI_SKIP_PHY_INIT Date: Mon, 11 Oct 2021 15:31:57 +0530 Message-Id: <1633946518-13906-1-git-send-email-sanm@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dwc3 manages PHY by own DRD driver, so skip the management by HCD core. During runtime suspend phy was not getting suspend because runtime_usage value is 2. Signed-off-by: Sandeep Maheswaram --- drivers/usb/dwc3/host.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index f29a264..0921f05 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -11,6 +11,11 @@ #include #include "core.h" +#include "../host/xhci-plat.h" + +static const struct xhci_plat_priv xhci_plat_dwc3_xhci = { + .quirks = XHCI_SKIP_PHY_INIT, +}; static int dwc3_host_get_irq(struct dwc3 *dwc) { @@ -115,6 +120,13 @@ int dwc3_host_init(struct dwc3 *dwc) } } + ret = platform_device_add_data(xhci, &xhci_plat_dwc3_xhci, + sizeof(struct xhci_plat_priv)); + if (ret) { + dev_err(dwc->dev, "failed to add data to xHCI\n"); + goto err; + } + ret = platform_device_add(xhci); if (ret) { dev_err(dwc->dev, "failed to register xHCI device\n"); -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation