Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2E81C433FE for ; Thu, 2 Dec 2021 03:17:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355143AbhLBDUY (ORCPT ); Wed, 1 Dec 2021 22:20:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347449AbhLBDUX (ORCPT ); Wed, 1 Dec 2021 22:20:23 -0500 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA469C061748 for ; Wed, 1 Dec 2021 19:17:01 -0800 (PST) Received: by mail-oi1-x22c.google.com with SMTP id u74so52817592oie.8 for ; Wed, 01 Dec 2021 19:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=f8tSGjZsit51ZITlSBYML7OThbDeGlSnXcANZo2xXoU=; b=OcAcusTmUQNb722Q+s0JJolLzmZh/A/oMIjkcGLj60eyHpAVWmMoW55wR33LD1BR+u yZtIfif+P8rJ045jUniTURO4tFThxLGIl4VfWy9xzmFtFN8sSu/l6nxOFBUoatDjsiEJ cj4Syc4/y63vqOFzjGlHSfLl4ubvZGlry23jU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=f8tSGjZsit51ZITlSBYML7OThbDeGlSnXcANZo2xXoU=; b=PGDjZEhDj8LVZ3Ks/zloDE8mV4GEZnUB1RzBH14ywAN5JQrJR7LoK4O5HVUFUmyOf3 egrvFPfUYRecLT6IbFaElX+vTmp1+L1iSZWvjbIwgIaA+YQ+FL2UN2s5nqLoZHmwadDc Wkg/66BCdV6jSio3EsMFDvt5XqQp+72bupBmPyVES40i6fyd9kzbgmxoUDbQZV2+AlK+ B7NmmSvhXHH2KNNMUNnLUADPmEXlStQ2/X80vcd4FQKGufdBVrkSAttt6iONzuQOAo+j nbdwRzijoRkH9u+/n2c4QzfUL/4rV36XyplbdltmyMkkxHYIRrQDLLT52dOks6bzMBD9 +7og== X-Gm-Message-State: AOAM533UH/P74FdurMlLo9+gckVjNs0bZzdCjgjktt9xHCXsb72fjQOO ceYGLHudvV3gVN6AEoYlSDzKLwclUm6J+SFEcwUScw== X-Google-Smtp-Source: ABdhPJxKKpqyYTRLZ/lnUGnoxlC6oopfHFJcy8Rj+02jlacnjWTqomFSu8Z35xm90T0/8VYMq8ziR8goHh2Z8my/XDA= X-Received: by 2002:aca:2319:: with SMTP id e25mr2366326oie.164.1638415021099; Wed, 01 Dec 2021 19:17:01 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 1 Dec 2021 19:17:00 -0800 MIME-Version: 1.0 In-Reply-To: <1638339338-6731-2-git-send-email-quic_c_sanm@quicinc.com> References: <1638339338-6731-1-git-send-email-quic_c_sanm@quicinc.com> <1638339338-6731-2-git-send-email-quic_c_sanm@quicinc.com> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Wed, 1 Dec 2021 19:17:00 -0800 Message-ID: Subject: Re: [PATCH v3] usb: host: xhci-plat: Set XHCI_SKIP_PHY_INIT quirk for DWC3 controller To: Doug Anderson , Felipe Balbi , Greg Kroah-Hartman , Mathias Nyman , Matthias Kaehlcke , Sandeep Maheswaram Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Sandeep Maheswaram (2021-11-30 22:15:38) > Set XHCI_SKIP_PHY_INIT quirk to avoid phy initialization twice. > 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. > DWC3 manages phy in their core drivers. This looks wrapped weirdly. > Set this quirk to avoid phy initialization in HCD core. > > Signed-off-by: Sandeep Maheswaram Any Fixes tag? > --- > 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 c1edcc9..9bbd939 100644 > --- a/drivers/usb/host/xhci-plat.c > +++ b/drivers/usb/host/xhci-plat.c > @@ -327,6 +327,9 @@ static int xhci_plat_probe(struct platform_device *pdev) > &xhci->imod_interval); > } > > + if (of_device_is_compatible(pdev->dev.parent->of_node, "snps,dwc3")) Are we sure that pdev->dev.parent isn't NULL here? > + xhci->quirks |= XHCI_SKIP_PHY_INIT; > + > hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); > if (IS_ERR(hcd->usb_phy)) {