Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp951900pxb; Fri, 22 Apr 2022 15:10:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxKBTUwb6jZBiNDwAe8AtsYOvTh9AnQkosHyN7hSSGOMAcPmltcmeERFci5/jEq72O3EAk X-Received: by 2002:a17:903:248:b0:155:ecb7:dfaf with SMTP id j8-20020a170903024800b00155ecb7dfafmr6779969plh.84.1650665424693; Fri, 22 Apr 2022 15:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650665424; cv=none; d=google.com; s=arc-20160816; b=RjKoh6r3J5WShNP7JsZdgjiVDKxTA9K/xtAJ1s2TaB+ZdP6vAtwH6nR32rqv0FUWkJ EGMMWBE0m3oGWp/V47g0DpkZrZ3dvUUzHemcCZtVO1VSDlOAJYVTKZjqZ9pBF+PHT30p ozvIyzBscu5ENXubTqYMKhUIE/i3oKtxnCRHZG4UBoAK3YerbjZeWJ2RJPHdEBlYm031 z4wFSUXPnKBWAgNgsSFGK34u+PtE87vDyM/LNblFNet+dXGYQ0yurQCOl7xmZaydVYEQ h1fGs8pdPXfPfeQs05tE6tt0YfkhYw1lZMjbnowC42MuumP2q49HeI0ztf6s3ZCM3C5g Cw7g== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=vJQlsZ2ZXiB1zgKGMVca5/jEboQna2tyetogXG0ZTxI=; b=N5GkXBkmmYoINWmlejYc8ATz9Fukb7YJfDJoezop0hcA5lCEPZyCLMna1vWh3iY5s9 LnKXJy8Un1Glfs4BjHC+nvNBaTMb1McBpshkbGlUqkqupBgzVZ/5qFYdxQC9n9AV7mRs qQshOoPIDJfyHS0Qdp/wgENalEIpbscL2OU2toKg5z4YRc6kSFHaNqryk/Vtq+5fyDXA k/pTfDX7sShhYiF0UnxSyHFm4jt8KnY9SnM5zGAr2jGcWvGciTjIeAKoy3OzibsKn5UB JrUDF63EdlXPNG4xIH9C+e2g06xD0Ti85VDjAW7aRQlNpDqrhAV5pPdBShFTsj/ZceNe Y9Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=sbyC+2ew; 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 w6-20020a170902a70600b00153b2d16586si8656248plq.398.2022.04.22.15.10.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:10:24 -0700 (PDT) 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=sbyC+2ew; 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 E96C6398B12; Fri, 22 Apr 2022 13:16:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384058AbiDUEOF (ORCPT + 99 others); Thu, 21 Apr 2022 00:14:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242619AbiDUEOC (ORCPT ); Thu, 21 Apr 2022 00:14:02 -0400 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 52D8FE0C7; Wed, 20 Apr 2022 21:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650514274; x=1682050274; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vJQlsZ2ZXiB1zgKGMVca5/jEboQna2tyetogXG0ZTxI=; b=sbyC+2ewThJnqjzAa8fD/dprKyx6vmFhWIcXjYzuIZIhoyZRlkB1fHpL kLLENjhXZI0JXj4i6P7Glh5xf5vzOAkM3O7zyqACenp0IC1wqSwrQN/e1 bLp+imcXBVIVfmm99SESKrG3i7sh1GbhPIBSgmCx7Mqgv/wewRYuzC5fN A=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 20 Apr 2022 21:11:14 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 21:11:13 -0700 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.22; Wed, 20 Apr 2022 21:11:12 -0700 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.986.22; Wed, 20 Apr 2022 21:11:08 -0700 Date: Thu, 21 Apr 2022 09:41:04 +0530 From: Pavan Kondeti To: Greg Kroah-Hartman CC: Sandeep Maheswaram , Felipe Balbi , Stephen Boyd , Doug Anderson , Matthias Kaehlcke , Mathias Nyman , , , , , , , Subject: Re: [PATCH v3 1/2] usb: host: xhci-plat: Add device property to set XHCI_SKIP_PHY_INIT quirk Message-ID: <20220421041104.GF2627@hu-pkondeti-hyd.qualcomm.com> References: <1649323888-12420-1-git-send-email-quic_c_sanm@quicinc.com> <1649323888-12420-2-git-send-email-quic_c_sanm@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) 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 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 +Rob Herring On Wed, Apr 20, 2022 at 05:36:57PM +0200, Greg Kroah-Hartman wrote: > On Thu, Apr 07, 2022 at 03:01:27PM +0530, Sandeep Maheswaram wrote: > > Add device property usb-skip-phy-init to check and set XHCI_SKIP_PHY_INIT > > quirk. > > Runtime suspend of phy drivers was failing from DWC3 driver as > > runtime usage value is 2 because the phy is initialized from > > DWC3 core and HCD core. > > Some controllers like DWC3 and CDNS3 manage phy in their core drivers. > > This property can be set to avoid phy initialization in HCD core. > > > > Signed-off-by: Sandeep Maheswaram > > --- > > drivers/usb/host/xhci-plat.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c > > index 649ffd8..7624ed9 100644 > > --- a/drivers/usb/host/xhci-plat.c > > +++ b/drivers/usb/host/xhci-plat.c > > @@ -305,6 +305,9 @@ static int xhci_plat_probe(struct platform_device *pdev) > > if (device_property_read_bool(tmpdev, "quirk-broken-port-ped")) > > xhci->quirks |= XHCI_BROKEN_PORT_PED; > > > > + if (device_property_read_bool(tmpdev, "usb-skip-phy-init")) > > + xhci->quirks |= XHCI_SKIP_PHY_INIT; > > You forgot to document this new property. Without that, we can not > accept this :( > Thanks Greg for taking a look. This series has a device tree binding doc update but got dropped after Rob's comment here. https://lore.kernel.org/linux-usb/YY7vAzxj9aR%2FzBSB@robh.at.kernel.org/ Sandeep, Since, we could not come up with a way to limit this to only dwc3/cdns3 controllers, please include the device tree binding doc and re-send the series. https://lore.kernel.org/linux-usb/f578947c-fb10-11b7-abe8-28b6b3f6bb0c@linux.intel.com/#t has all the different options we dicussed and why we went with a dT param for this. Thanks, Pavan