Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp604768pxb; Tue, 15 Feb 2022 23:31:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJywU/bgIx0GbnDJa8c6MwERX0k2hmjO59u5Ohq+DgPaBN/p9HLjSNdAujl9hUthokVV77qs X-Received: by 2002:a05:6a00:2356:b0:4e1:14f2:9fe9 with SMTP id j22-20020a056a00235600b004e114f29fe9mr1853975pfj.38.1644996695193; Tue, 15 Feb 2022 23:31:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644996695; cv=none; d=google.com; s=arc-20160816; b=Rn7228KWZYE/voFHlr/EkkzoSk4DFC2QWWn56NRWCZ7ychVZ5C01Q/U88Fuf+3A6YQ 4p8ieji9GBHIu/g07xlK58PubFqSAV2QwLCieP+hySV59s8HJkGWXfeUczvI7PilF0a0 t+pTgTUxaNuS6KWHCpY1ucK/ozGGpUzQ+8OdOJCmcllIuiYjnat9anwZyZrPxFsNl0jE 1MzsKBiD5KfrGa7BKQ+aJFHErE703Ec0fVCauFBvjZLZpfAOyL9hIor2C34znpmyqR9Z qaYTguXkeEXaA3v4xDt7Sop09ro3cBRix01gizMGEtdsJEW35FyUNs8803d60Xl6rpPN mFtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=vIGau3BesNXywLtX/f3cO4N1c14ACbo9Y6tnbvIQZ0I=; b=oBY5ej2zgzPxjLahruPYVlfVMy8uFrr620wiC3cwY6+LLSK1b0xHG4/qEadIZ1OazG dQ7jhZm2Wux7m36M6PZyE3Ek5Co4uagBjuK4OjStlR/nB9jZDFrUdP8K+IZrieD7ujv2 ezQLLpSNEA/PZojOyIuQ6QitdsPvErKAbS75Gmm6K3sfgFR1k4160oFLEI/Ck4H85Abk CGBitPTWEBxj1rSndH+6XXDF2OMV+KBiv/7G9yTg2NP2ykkCkUMrMEslzF3TAhWrpYhW Oxg86pjXz+49jlCEFt3ijZjcHPmxUT/pqRV5KvnxlueiwVbMfqHmq8KtozuwBptOFzQx Fscg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=v40jXSYn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g5si1827826pll.124.2022.02.15.23.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 23:31:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=v40jXSYn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 20F7F2396B0; Tue, 15 Feb 2022 22:58:46 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243044AbiBOSZb (ORCPT + 99 others); Tue, 15 Feb 2022 13:25:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbiBOSZ3 (ORCPT ); Tue, 15 Feb 2022 13:25:29 -0500 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B73ED119870; Tue, 15 Feb 2022 10:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644949519; x=1676485519; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=vIGau3BesNXywLtX/f3cO4N1c14ACbo9Y6tnbvIQZ0I=; b=v40jXSYnVTAiSCOHYcAr8WUGpz21wpfqcKCPEolAubHoCsYQ4Co3dG/k XhnAjKcVIq+qz+/bahfidPnIvX4ymyZSkaP+vg7OuhT5a32vNK1HqUzvP gVvhU75OEcOYVIy9XH/Z7uZ/RXOKy9644LAzHmdJq8LndYILaTEdNxrG4 o=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 15 Feb 2022 10:25:19 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 10:25:18 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Tue, 15 Feb 2022 10:25:17 -0800 Received: from c-sanm-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Tue, 15 Feb 2022 10:25:12 -0800 From: Sandeep Maheswaram To: Peter Chen , Pawel Laszczak , Roger Quadros , Aswath Govindraju , Greg Kroah-Hartman , Felipe Balbi , Mathias Nyman , Stephen Boyd , Doug Anderson , "Matthias Kaehlcke" CC: , , , , , Sandeep Maheswaram Subject: [PATCH 2/2] usb: dwc: host: add xhci_plat_priv quirk XHCI_SKIP_PHY_INIT Date: Tue, 15 Feb 2022 23:54:14 +0530 Message-ID: <1644949454-814-3-git-send-email-quic_c_sanm@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1644949454-814-1-git-send-email-quic_c_sanm@quicinc.com> References: <1644949454-814-1-git-send-email-quic_c_sanm@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index eda8719..4a035a8 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -13,6 +13,14 @@ #include #include "core.h" +#include +#include +#include + + +static const struct xhci_plat_priv xhci_plat_dwc3_xhci = { + .quirks = XHCI_SKIP_PHY_INIT, +}; static void dwc3_host_fill_xhci_irq_res(struct dwc3 *dwc, int irq, char *name) @@ -122,6 +130,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"); -- 2.7.4