Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp630086pxb; Wed, 16 Feb 2022 00:20:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHu7GNi5XY/yCvx9zrdg6nQ4SdTw7yLSB6cQTfHNr9sM4JXvmzTgnFdAvbAyHABFEpCSia X-Received: by 2002:a17:902:bd0c:b0:14f:31ce:7151 with SMTP id p12-20020a170902bd0c00b0014f31ce7151mr1798440pls.50.1644999641438; Wed, 16 Feb 2022 00:20:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644999641; cv=none; d=google.com; s=arc-20160816; b=qVhkSl7wmZYW7egYMUpKAw/MUgA2xXDy91rqLGm6lyrDXj3WX1er2zBcoRboRJ9wLp MPqwoPTH5xqNFKBpiuac7kDFnFSYGG00v8C8j1q47ObTRTDceYusK2LVAyTN8Grn1Z+j p+4lTdc5GV4rVEGJ6IyBqMH+fTBHgsxeb0KKD5PAnP3B0+bYOzLqpw96Qsp3ya4t6sip 9VhsfKW0ZUm8axduV8UxN2sf09hoeSy/cJjEp/cVg2Z+BWj5R+AeNBAIZ0RfwZdikqhC pLG1VOLaP93SLBLrsYACVT4nzkVEw2Z1ilXknKN+yIbdXjyZxFjU+gCPtwYPb0NJ+Nhf IQew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7lQdIuWv0N6b4gGAyHiFaf/kbOcaR1gy7ajk+kKwQoY=; b=yXarQBLz8guGV7s8CsGvaH+V1Lx9pes21RQPbZERfQkSGcEbzzBRYThQiN4zYIzbYP j3U1vOw6Q5UHzbXHHRF2HoxhqbluWuCAFuZFGecrNFJTvs5kCIHJ+G7c9pU4Bw/Drohr gqJSORai44EJ26fJtm4s/dZCNgHAxE7yrzOld/cke8AQrRgYX/BhNE1ODvDpud3Q161G 2+vHHMTKW0fH1lC6U9LZwpIXpQyZOUHIPoMarGkEM/FM3EqSoibjO576K+WCOAoxcSLm myaN5AeMHEQJe0zx4Beoi0jWcC3f7sZXOuVNqoQiO15G+OlPCdlkIxUzAR34L3d/zT87 n+JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hz37tOLF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id a14si4551682pgw.270.2022.02.16.00.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 00:20:41 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hz37tOLF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 273F020AD9D; Wed, 16 Feb 2022 00:00:58 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231310AbiBPIA7 (ORCPT + 99 others); Wed, 16 Feb 2022 03:00:59 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:51406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231377AbiBPIAv (ORCPT ); Wed, 16 Feb 2022 03:00:51 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 434A720A8A6; Wed, 16 Feb 2022 00:00:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644998439; x=1676534439; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=7lQdIuWv0N6b4gGAyHiFaf/kbOcaR1gy7ajk+kKwQoY=; b=hz37tOLFgV6JQHzbisjc3cFRk4bU4i46acRoZo9TTKvNihX0JCN1is5s LVyamTpPJawueJ/wJQ+BNL6I9EJMnMjw2kcT6e2/VvQj5Bqh0dtnj5zUi G+VkI/UVtyaRgTeyiH/JNPyRwrM7d41iu9VSJb/UGUtJKoM9B8V7hXZyW E=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 16 Feb 2022 00:00:39 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 00:00:38 -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; Wed, 16 Feb 2022 00:00:37 -0800 Received: from hu-pkondeti-hyd.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; Wed, 16 Feb 2022 00:00:32 -0800 Date: Wed, 16 Feb 2022 13:30:28 +0530 From: Pavan Kondeti To: Jun Li CC: Sandeep Maheswaram , Peter Chen , Pawel Laszczak , Roger Quadros , Aswath Govindraju , "Greg Kroah-Hartman" , Felipe Balbi , Mathias Nyman , Stephen Boyd , Doug Anderson , Matthias Kaehlcke , , Linux USB List , lkml , , Subject: Re: [PATCH 2/2] usb: dwc: host: add xhci_plat_priv quirk XHCI_SKIP_PHY_INIT Message-ID: <20220216080028.GA13793@hu-pkondeti-hyd.qualcomm.com> References: <1644949454-814-1-git-send-email-quic_c_sanm@quicinc.com> <1644949454-814-3-git-send-email-quic_c_sanm@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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 On Wed, Feb 16, 2022 at 03:16:40PM +0800, Jun Li wrote: > Sandeep Maheswaram 于2022年2月16日周三 14:58写道: > > > > 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, > > +}; > > It's better to create this xhci_plat_priv by each dwc3 glue layer, > with that, we can use this priv to pass other flags and possibly > override APIs by each glue driver which may not apply to all dwc3 > platforms. > Do you see a need for any glue driver to know about this xHC platform data? AFAICT, glue driver has no direction connection with the dwc3 core. All the required data is coming from dT on ARM based boards. Adding a private interface between dwc3 core and glue for passing xhci platform data seems to be overkill. If there is a pressing need, why not? Thanks, Pavan