Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1721841pxf; Fri, 26 Mar 2021 13:20:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeaVFO1kbZV4ZJCkolbnGsHQFdh50CaXeFaLbx+blzDnt6fKqi/ac+EbRjDWIoVQnqMFkQ X-Received: by 2002:a17:907:d1f:: with SMTP id gn31mr17031021ejc.536.1616790008298; Fri, 26 Mar 2021 13:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616790008; cv=none; d=google.com; s=arc-20160816; b=AwWTDLUaDOwSj2ZikakqJWkrj+wJ1OeIVC+NmSVkumleenvQowArDo3F09h5fRlmm0 YXSoy7SiMfS2qlj1zlPBRX1zS/6Ff75dxVcnkQnxB1LYsvUjvBZHTPiFFl2i1vQPJEem lc8lPu0aGXB5oM5smDiGUEWYx+KY0ZVpWwN5E/T1vZYRC8+w24D8QODEsuiGD9dE6G3m xjdYAf3D1MtfMGzQ38N68R5zfy0W1T5r5hl4klC1q1kugqZ14fO0kEGk/GODQfUcnGFx u3H0l8FV5pHM2vekhaq0vF1BeykOrj4lzlvL5uqvUP8atr23Gf2ZQ5Ocsg6W9Yrd6vs0 mYNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=/yd2BjQzoenetdZ7Su27IGj5G1AhnOOiPzpyVnOSyP8=; b=W2Z8Krp+Y6EF/bV+NDY2DHqdhVDdcsxFdt/1yYvdf5gkkdOdZnoakOaOXRVWU3Qp36 1xGF7SjJgbz/aBQlOda+IaE++86e+JOa4aAruMS+ls3bR4CjgaogcTx1Ny/zFyVoMWs5 UNh3gsj104xrtshxevXOy9dd666EoG/6t5ZtMy0qwCh3PXcvvrMUWVh5nhxJcidajmg6 NjG9Ko1H309woZ+abuo6fllFvinJfhopRiY7g6F0ui8mveNM+QkKusi986S/zzbSUkHA BN6tDGIULZ30kebI41vLr9998emlHDmcswmQgCGGJnf0cg5QgO4VLhh5ZAbrviN77WRX 2SAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ANchPUbA; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr14si7399576ejb.627.2021.03.26.13.19.44; Fri, 26 Mar 2021 13:20:08 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=ANchPUbA; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbhCZUSI (ORCPT + 99 others); Fri, 26 Mar 2021 16:18:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:37166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230134AbhCZURw (ORCPT ); Fri, 26 Mar 2021 16:17:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2450561A18; Fri, 26 Mar 2021 20:17:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616789872; bh=HQiYbloBWeueZbq2L4oIhpCdSmR81v4HPpPi6S55n34=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ANchPUbA7/niZ+2pM4ATJhblFIlE8ITlpAvMJLR+NSAxfJASezVQ9ueEhWhaJElvb 5Fjusoq4cJ0G/sOxwXl0fz5HbIhwNBasdrdYjbUx3UmyCIR9b3qNbDa58OMuixoW2X tAqhmk5N+YeYehwzOTjnh11PdSoJieSF11ZManBgDB4SgRa29rCFAORH3ljc5PkIbB ZKTGa6IrzdubbAH9NINQB1/6Ykjvb9+oSblL3CEV1aTv9MoLtZ90DjyEpoe9aJtQp1 GrFCofGtIWioYjjG8FMi4rBUtVqEWTLQVYfcrq2YwQgiawMoXxMqoMzs6DEKEsmYUh V+3mns8AoL8vQ== Date: Fri, 26 Mar 2021 15:17:50 -0500 From: Bjorn Helgaas To: Jim Quinlan Cc: linux-pci@vger.kernel.org, Nicolas Saenz Julienne , Rob Herring , Mark Brown , bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com, Lorenzo Pieralisi , Bjorn Helgaas , Florian Fainelli , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , open list Subject: Re: [PATCH v3 3/6] PCI: brcmstb: Do not turn off regulators if EP can wake up Message-ID: <20210326201750.GA905944@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210326191906.43567-4-jim2101024@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 26, 2021 at 03:19:01PM -0400, 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 > --- > drivers/pci/controller/pcie-brcmstb.c | 58 +++++++++++++++++++++++---- > 1 file changed, 51 insertions(+), 7 deletions(-) > +enum { > + TURN_OFF, /* Turn egulators off, unless an EP is wakeup-capable */ > + TURN_OFF_ALWAYS, /* Turn Regulators off, no exceptions */ > + TURN_ON, /* Turn regulators on, unless pcie->ep_wakeup_capable */ s/egulators/regulators/ s/Regulators/regulators/