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 3DF0BC433EF for ; Tue, 1 Mar 2022 13:38:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233689AbiCANjM (ORCPT ); Tue, 1 Mar 2022 08:39:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232055AbiCANjL (ORCPT ); Tue, 1 Mar 2022 08:39:11 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5943222BDF; Tue, 1 Mar 2022 05:38:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PTvDGXpj4QceN1WruyMqNJDszkmC9L67vBNfhw3P1J8=; b=ATmAfbpmSQgx4C/xTj8lT7/TB0 eHZTZVRcvLJzGR0a4gdeUHbjJX/sDbo6liX+3izIMNeXz/esL51HF89uMwqqILim5R0GdM80ENCRf 3ilyZGA3JiWqbgsnmxxVCPpl+DP7rP+B1gLy1lTP6xARcOO3NOmP3nJYB2bGYcgnNQ4RXhQAyKWLg aXVE+JMlTD4wd6S6+HfBog3u6rO3sRuDyGyGPaB1wRbDKr1BSbolh7fy1fHuFLKZPcGscAPfxbjvw 2q/NJVegB4WKM1+5SIUTxU9guQ6m1HUdDTNhTBQVEiUgxqGrw3M4ZLVqVmGcEo72pNckf17htyb+s nj7jJ+Yw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nP2hr-00GvQj-1M; Tue, 01 Mar 2022 13:38:23 +0000 Date: Tue, 1 Mar 2022 05:38:23 -0800 From: Christoph Hellwig To: "David E. Box" Cc: Christoph Hellwig , nirmal.patel@linux.intel.com, jonathan.derrick@linux.dev, lorenzo.pieralisi@arm.com, kw@linux.com, robh@kernel.org, bhelgaas@google.com, michael.a.bottini@linux.intel.com, rafael@kernel.org, me@adhityamohan.in, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V6 1/3] PCI/ASPM: Add pci_enable_default_link_state() Message-ID: References: <20220301041943.2935892-1-david.e.box@linux.intel.com> <20220301041943.2935892-2-david.e.box@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Tue, Mar 01, 2022 at 05:31:51AM -0800, David E. Box wrote: > > Is there any reason the ASPM_* values aren't passed directly to this > > function? > > The ASPM_* macors aren't visible outside of aspm.c whereas the > PCIE_LINK_STATE_* macros are defined in pci.h. This is similar to what > is done for pci_disable_link_state(). Ok. This looks a little weird but I guess we should stick to the existing pattern here.