Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3933237pxu; Mon, 30 Nov 2020 13:33:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjlUUucDO1f8YXExVC0/H5UbumtcwtoLbJNauPhSGfZ0zqYJYD3Zhrwp3Y1QEVz/MzWgoz X-Received: by 2002:a05:6402:1748:: with SMTP id v8mr4809405edx.136.1606772005499; Mon, 30 Nov 2020 13:33:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606772005; cv=none; d=google.com; s=arc-20160816; b=UIuDiJFlG1gH9vP/m/WHt/Zf/IUvG36NRygvxClWHJ5AnRxtS1uROTdQOlSj8NP3Kn QtZGdbb76wVPtE2He4Iz94E4glizj/mtflh2j3l09+HefwQDyFh7JMNG0bqruhRYPPIX FUPzgbSioOSIyqv+t3xlwLoGuWl3lZveQ8Q92j+NXy4Wx6W+J/GXgwwY2W7Si454epPT QLhOWv56Bq4ILTZsm5bJphLyH382m+0rfKDWLmKZ5JksT/IxC4JFUxHJyJDyRoevf6I7 gVuPOXcTVa9DHuZ9vAEvFptHOQwvoCv2u7+nDwPhonPoHZ+6YNFu3gyfWecUAT0jPLAl WPDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=DWjJunM0Wmbz4s0jLkRrF2o5zQCdYXKHU/3KOiaHX/M=; b=UCPhR7UHCRtv38ZnCxfzR8nRFVz+j8BVIxSvL4T51LDw3a2n5mgBCfPrSsqfhuv1NG +iFG0hN6uE0U5ZIbW9EkIcCvJKQrL51EuLWP0AqpkO2InRYax1qq4pDSJRkqM00EIBJA YWSSgMX6dUrcc2tk+0otk1BxwMbQB8A9UmsbFvrimXF2UZQDMPi7XglNa/FVQHOzxs7u nD4pAFyKkZX3vW8NbFfjqoQj3/uN7U7apOCKAydjQpm5Vcx6qpLba8WxR7qZpZZ2bFk9 UOlrSeqs2/I6yP4kFpi7NV/yC5dd8NXxFAgaN9UU/4Pci4E8ju8EgCIWthCMudj0Hgef 6A0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S6efCwhA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r2si12153530edx.114.2020.11.30.13.33.01; Mon, 30 Nov 2020 13:33:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S6efCwhA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388620AbgK3VaY (ORCPT + 99 others); Mon, 30 Nov 2020 16:30:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388554AbgK3VaW (ORCPT ); Mon, 30 Nov 2020 16:30:22 -0500 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D415CC0613CF; Mon, 30 Nov 2020 13:29:41 -0800 (PST) Received: by mail-pj1-x1043.google.com with SMTP id v1so397883pjr.2; Mon, 30 Nov 2020 13:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DWjJunM0Wmbz4s0jLkRrF2o5zQCdYXKHU/3KOiaHX/M=; b=S6efCwhAKHYgtmjmpD8Hzvbp9i8StDx5Lz4NYJ+CYPPhd1Zdg6rHUdBz7jUbMNU6pc 941P4fvSONwd1o6AMsUgGYvTHbO7j4sVS79F+79/J/xzbJHw9JBfyKb4BUH7OXiwlsuT SVWeo/63fBGZs4O9zdSnhq4K4rSof2wTCioSBw1rdW87M7bJOVKhjR0aThQohLTNLxcR sMLmqwIdwPZ9azDp5kJsdiZTbQqrZeXL9d6Dd3FlLJX1OCIShw9PpGR6fBjz3406BkSU qOl+hWW4gB3cABxugXx+xI2D9dQs72JNVxS8BWQKU5ZSBboje0eKCKEFjYw4WyQEzr41 aZkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DWjJunM0Wmbz4s0jLkRrF2o5zQCdYXKHU/3KOiaHX/M=; b=k/OTXOQdqmbEpQxFftaQr+3jva5w5rc2YDvb9G00uuKb3tthCYUk1HiJIUXeZq1vvo 6/OsSOlEZCpwwNNLDXReGHWTbte+kw6o6pBwB6HI54ZtDO2h8GxlnBq6VD/uY5cWug65 Td69Jri7vVwywwUQR3ml3A7OCiokVoREXwvv0vwFwk/lXSQIVF0Wbm3w60wVx8tiUIJu VMOUVRh9T7REg9MPTb8VDRagsjMaPxvzTilJfybWzEzZXnY9O/PFEgv6N5Lbjo/JuXCL RM4GAVmh8UJOMu19VZMWkUS5N6S00SN0GRN9rNHcWQE/os3isw8G6o8nDPwSozqWuNvF XaGw== X-Gm-Message-State: AOAM533XceXxsj2PmUqlCOf6xFPaLJRd7/OgLtBhtXxHRIN8HAqTjgzX 1QRb856cARs56tN1ivzcyBglGqlg7Fk= X-Received: by 2002:a17:90a:6b0d:: with SMTP id v13mr897481pjj.206.1606771781097; Mon, 30 Nov 2020 13:29:41 -0800 (PST) Received: from [10.230.28.242] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g6sm3923074pjd.3.2020.11.30.13.29.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2020 13:29:40 -0800 (PST) Subject: Re: [PATCH v2 3/6] PCI: brcmstb: Do not turn off regulators if EP can wake up To: Jim Quinlan , linux-pci@vger.kernel.org, Nicolas Saenz Julienne , broonie@kernel.org, bcm-kernel-feedback-list@broadcom.com Cc: Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Florian Fainelli , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , open list References: <20201130211145.3012-1-james.quinlan@broadcom.com> <20201130211145.3012-4-james.quinlan@broadcom.com> From: Florian Fainelli Message-ID: <611680c5-d889-41c6-a9ff-ac69b47cdb24@gmail.com> Date: Mon, 30 Nov 2020 13:29:37 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201130211145.3012-4-james.quinlan@broadcom.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/30/2020 1:11 PM, Jim Quinlan wrote: > If any downstream device may wake up during S2/S3 suspend, we do not want > to turn off its power when suspending. > > Signed-off-by: Jim Quinlan Looks good to me, just one minor typo below: > +enum { > + TURN_OFF, /* Turn egulators off, unless an EP is wakeup-capable */ s/egulators/regulators/ > + TURN_OFF_ALWAYS, /* Turn Regulators off, no exceptions */ > + TURN_ON, /* Turn regulators on, unless pcie->ep_wakeup_capable */ -- Florian