Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp116640pxb; Thu, 21 Apr 2022 18:41:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytNjWBsMn47oTcUoI21FTuIjLo+OtMo4EJfRShw8teGbE2ZE4/7g5LQZukGhZhjRE5BP9c X-Received: by 2002:a05:6402:1e8c:b0:424:1d6:1b71 with SMTP id f12-20020a0564021e8c00b0042401d61b71mr2403623edf.211.1650591706306; Thu, 21 Apr 2022 18:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650591706; cv=none; d=google.com; s=arc-20160816; b=AWp5dS6O8CIF+wI9r9ReYDY6cMK2kwbMDquwixgmi/bnAhgSK/Vo82k3ngWRSGgCJc D/ICe8E4bzSqwXclPVpDarSTNwXOfP98fB53D3KDVlu+Vl8yqhVhYLy1GCTOw3xHKmpy YOrJ0y9jZ8ZGzk+kat6XCm8gSUBJBnwuMf2CevgXXffAk68PkWfjdXq/wxU3+oM4LZm2 DXov1iL+tXvm5mc/vPx+1kuf++JWFLYdPYWgSCTKP/8cHsOvlzfMvs+i9xbw8qdQ0yQx wvaPWTl24ljiaEkX0XaO0dd5zdHy5CHjdsIEXjC27NLKDAu8G4cRPk6iSdfogu/7fgBb ojYQ== 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=P95A/ueRztRGVysmekPboPHHKoj9v09Bnba5Qhz5LU4=; b=YhFV0GXecxvtpN12oKJEFZ3cWftF1YCCBGNfWJqwbI0VpNxmGT1jFtGNOfqlsqKciD J7SbDd06VCzNJLxP1IJn5pGkhDIbHlZWgWEOZDW3rLO44W2NBCtYK39rInEr6s59n5by oxCNqwdjxmkP509HwOnIs5jSm95rOpKC1iy1LtK3s+TowDGjQ0QrxEl2Rc7Qa8cs5BTv mlEyO5UT9rcXZ0lhQZD+YSC9fnp+Gd80g8rszMidFnGWVU5hsY38Q9kNV4u1jmPvb03y DDpnt3jHGmMDy66WSevNh+DiSMmG6USV/Yc2hxC1AzjA0x3njuEPBuE2J5rxup6Rtfzw TP8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=nP3OCEUO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020aa7d40e000000b00420eb5241ebsi4741823edq.373.2022.04.21.18.40.49; Thu, 21 Apr 2022 18:41:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=nP3OCEUO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384194AbiDUFE4 (ORCPT + 99 others); Thu, 21 Apr 2022 01:04:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384180AbiDUFEq (ORCPT ); Thu, 21 Apr 2022 01:04:46 -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 B4418E0C0; Wed, 20 Apr 2022 22:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650517317; x=1682053317; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=P95A/ueRztRGVysmekPboPHHKoj9v09Bnba5Qhz5LU4=; b=nP3OCEUOmALA5L1saQHNtzYyrYVf26NsuuEkMt8ysD36hhNr0wSIo6E8 E6HfZBOYyp9c8fRa+DxpLlD2TIlegiIlypR0DJDpad1dbF+5jWrn40qjz EbIJVx8yE6wMXqtecPlNLfaGpe+lAl2eUU9w1w6QEDzG6TfMrAotR0zd0 A=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 20 Apr 2022 22:01:57 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 22:01:57 -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 22:01:56 -0700 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.986.22; Wed, 20 Apr 2022 22:01:51 -0700 From: Sandeep Maheswaram To: Krzysztof Kozlowski , Rob Herring , Greg Kroah-Hartman , Felipe Balbi , Stephen Boyd , "Doug Anderson" , Matthias Kaehlcke , Mathias Nyman CC: , , , , , , , , Sandeep Maheswaram Subject: [PATCH v4 3/3] usb: dwc3: host: Set the property usb-skip-phy-init Date: Thu, 21 Apr 2022 10:30:55 +0530 Message-ID: <1650517255-4871-4-git-send-email-quic_c_sanm@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1650517255-4871-1-git-send-email-quic_c_sanm@quicinc.com> References: <1650517255-4871-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: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 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/dwc3/host.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index 3902b56..eebf203 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -68,7 +68,7 @@ static int dwc3_host_get_irq(struct dwc3 *dwc) int dwc3_host_init(struct dwc3 *dwc) { - struct property_entry props[4]; + struct property_entry props[5]; struct platform_device *xhci; int ret, irq; int prop_idx = 0; @@ -115,6 +115,8 @@ int dwc3_host_init(struct dwc3 *dwc) if (DWC3_VER_IS_WITHIN(DWC3, ANY, 300A)) props[prop_idx++] = PROPERTY_ENTRY_BOOL("quirk-broken-port-ped"); + props[prop_idx++] = PROPERTY_ENTRY_BOOL("usb-skip-phy-init"); + if (prop_idx) { ret = device_create_managed_software_node(&xhci->dev, props, NULL); if (ret) { -- 2.7.4