Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp4128264pxm; Tue, 1 Mar 2022 11:51:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5sgTpNqoNArKAfsI4Q9JTk79shusKkOQ9BOXlNIBmHQihfBQnmjxiGHuZF7AvrwAH+lcB X-Received: by 2002:a17:906:cc99:b0:6d6:e162:147e with SMTP id oq25-20020a170906cc9900b006d6e162147emr4951338ejb.124.1646164289511; Tue, 01 Mar 2022 11:51:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646164289; cv=none; d=google.com; s=arc-20160816; b=yc0CY7vXs+VRL5w4c+rj7fug2bFTEaaCkGHK7wPQEGaCV4HwSwbfk6sfqzn7GVSju0 1Na7gqN+EaBR3CSbNDabywPbsp4M/zWox4gqaYQzUaFXdk612v1xGCGdimV4F+dWCuiW f524r4YCYsi59eFm7+pgL44IcUdkqtVz0CMr7fCJSY2njnZnU/F34lVWJj4d/MfwuUg2 zKoWFFCLJXVnCE0c+sj94PM2ie5q+5aWZcnJwtrCfwDxjFhEio8r7qvLid63739SWkq/ 8eFjDJ/gWMLYIxDq9BIiSTrmPlXUPVHTEHJAlZEBBAHjIg7xI6gDOEClEZ1zK/HQOZXB 4b/g== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PTvDGXpj4QceN1WruyMqNJDszkmC9L67vBNfhw3P1J8=; b=ji+RxlVIMYBcUK1pSZppeM28GDMGTGH0/EMwQO4E4jAyNLnT1KaEBNMPIUH7NtmSfN K4ERbPkUzXacxDTh7Z03U59/gkCJ1eQ0BJWnVD4O4wEnDrmLIePk993zs+Smhpoz+7fP CtPXaJKF/oo5LVOWGGU5rwNhMt84Eoy5mqTYN/pGRtgZNfOQ311XCCY1lUcozWYy6c2l bVlk7geiz7ik8H9LDQG9X8Fwk3Df83Bkgi2fbq7+xITmKbrp06xBoxjRvxDR7BFT25MV bs/hfJYL1y81rdy5wrrbtYbuc21kWoSxpTlTV8fRvpCouZghPzweAtrPZrOMRyxLJj36 XxyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ATmAfbpm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a1709062bca00b006b66ac8983fsi8258331ejg.509.2022.03.01.11.51.06; Tue, 01 Mar 2022 11:51:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ATmAfbpm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235085AbiCANjN (ORCPT + 99 others); Tue, 1 Mar 2022 08:39:13 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.