From mboxrd@z Thu Jan 1 00:00:00 1970 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 14D7DC4332F for ; Tue, 24 May 2022 22:12:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240379AbiEXWMn (ORCPT ); Tue, 24 May 2022 18:12:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238914AbiEXWMm (ORCPT ); Tue, 24 May 2022 18:12:42 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73D0D5DD27 for ; Tue, 24 May 2022 15:12:40 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id gg20so18045022pjb.1 for ; Tue, 24 May 2022 15:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=u8CD/oP1dRwpstmWmx4PFVLSC5EU/3DeFLUGGUSnZB0=; b=jLj+T7+1Hfq7NpU3hWA1j/dqSqZGIxKK2h7MRyu+Xdp3NbnM6i3JiEOdS9voRiJYBK dI57J846prVWNRcRGFP0bCLmKv6S5ZV+Szzn8qS9yQuBtkat0pvdelOHYF8RvpWlmCaP ZWJwz+M+SNRKzqA5LAQlIr9lRe+1YYbHfy1+0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=u8CD/oP1dRwpstmWmx4PFVLSC5EU/3DeFLUGGUSnZB0=; b=s15p8d/nT50wQWO4+0j055EbjqdnGNg4URZ3NxdqibLkkiyu4mgLVll6ruOSfHNaO1 UwQMxK7mWKa5WaFyf+KugQtKrPySZHe89lYbPDCRrojVNtLJfyZLsfjRMWMPmvF0dkYD PBe6478GAxhidNYELUgQtWH8vxNvhv89SYjpCS9KS0NRLzoJfvIyIeWN6tSQribEchOX wTuw9qbsdU7cBjyIuIsScR8BRG2F3J8xLfc+4pRBW7v3Vpp6O18zsg+eAd1/nKxG1FYN gTfX00dZTaIXdjy9yXyQ6UZwiqt/5cFFvNCdSju/Gbjd7IA6BDxinCgCFIjZ6WAaiuzJ 8qvA== X-Gm-Message-State: AOAM533exPpEUslwAgAyc1RB82RuO6f7XLTpYjRxv/TGvQdiGphEFqiF rF7dqvOTUoXVUmWwBbXgfL/cIA== X-Google-Smtp-Source: ABdhPJylZSxgbbxQTXu74nYTjl6enFdemPoZ3wjsjlyZ3DSDQI0D9YnLX2MmUg34d1UzfDnnWFjv9A== X-Received: by 2002:a17:90b:4a90:b0:1df:e3af:c6ad with SMTP id lp16-20020a17090b4a9000b001dfe3afc6admr6734751pjb.41.1653430360054; Tue, 24 May 2022 15:12:40 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:4d83:f549:9abd:427]) by smtp.gmail.com with UTF8SMTPSA id ji3-20020a170903324300b0015e8d4eb25csm1831169plb.166.2022.05.24.15.12.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 May 2022 15:12:39 -0700 (PDT) Date: Tue, 24 May 2022 15:12:38 -0700 From: Matthias Kaehlcke To: Krishna Kurapati Cc: Krzysztof Kozlowski , Rob Herring , Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Felipe Balbi , Stephen Boyd , Doug Anderson , Mathias Nyman , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com, quic_vpulyala@quicinc.com, Sandeep Maheswaram Subject: Re: [PATCH v17 2/5] usb: dwc3: core: Host wake up support from system suspend Message-ID: References: <1653387228-28110-1-git-send-email-quic_kriskura@quicinc.com> <1653387228-28110-3-git-send-email-quic_kriskura@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1653387228-28110-3-git-send-email-quic_kriskura@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 24, 2022 at 03:43:45PM +0530, Krishna Kurapati wrote: > From: Sandeep Maheswaram > > Check wakeup-source property for dwc3 core node to set the > wakeup capability. Drop the device_init_wakeup call from > runtime suspend and resume. > > If the dwc3 is wakeup capable, don't power down the USB PHY(s). > The glue drivers are expected to take care of configuring the > additional wakeup settings if needed based on the dwc3 wakeup > capability status. In some SOC designs, powering off the PHY is > resulting in higher leakage, so this patch save power on such boards. > > Signed-off-by: Sandeep Maheswaram > Signed-off-by: Krishna Kurapati Reviewed-by: Matthias Kaehlcke