Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp114675lqb; Tue, 16 Apr 2024 10:11:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJ9FlEW7JZtXPlDA42NlF/jGOe4Jvztyl6dOsiYZFRZBeniUDOIBmDpsfHgp4M/Rif5GBifGjwtiWlTFL/lwWjwBCeu1gia6xRIEOxwg== X-Google-Smtp-Source: AGHT+IEB0A/IqlLZN4tYwfiVZ58x7EpLPHG+4ulKu6jLtdvfnhC6ILg1mC6Px8Ryo5BqoEdZmL/L X-Received: by 2002:a50:cdde:0:b0:568:9d96:b2d1 with SMTP id h30-20020a50cdde000000b005689d96b2d1mr9457933edj.32.1713287504841; Tue, 16 Apr 2024 10:11:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713287504; cv=pass; d=google.com; s=arc-20160816; b=ZP8Hhw2yxy19fr9mCCWJWazn2FMCnQKq0e0L0hl5GUr64E+pXGonV1pyooW3eG7WOh GGn+fUp96WKh2Zu0MOUDK2d60LXpejwYAS+pa3GaGREAlyod0BIW7fpZSPhGjdTSoSlU FkQ4ATANhh5GnJ37nmNn1VekKjTDNz07B3OqkI1SNBnv3XCpMLFLZun7ea0fxrDOyNrw L9/cd+0mbgiMvhaGvZsd02YJXISdaK3p8pcSMnvXBtUjyhVCL5EGhcqeeV040Msti5mW QEK/y8deqVJWTJArsiGk/WoVk0FJR51roDYMLQZaR4RJJ1JxGGJhtzkn7t2Hb6fCdu8B Xmlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=WJ1BOSWGmumLXu8s8fakquMG4/XZVRzCDBL/o0oCKGU=; fh=Z5A2rbfnrLfYvqKqoxGQP2ALbAW0m3cM2dC5805K3+Y=; b=06npeSdngo+xHEcP99qFGCO+4DP8dwVPlCzwiDPLwhktETA44OhN/dT0bVfkUp2MdQ xn/WiUlLDWR5vWL/Q7NbpvXLJnG0jXiHmqMtFrVxaE69r5ba/tcIRUHaY7Sby/o6CmRt NCmIbFEC19l3tOZaAsgz7OTRbVDCpM8TjrSIHKN2pVGfQ6b3welJc+LqhZyYAnRgNlr3 DLgBvihe5l4WTtGZlfj0/I1zgpXoAvt2A54D+AsM+3Ab5ZW5HHeJvB6jWT1G5XTVaW15 DbgVN85Ivatp1fVuPhZaaBudHO354sBLt8tLIhWeodZaM/yN9lgbdyO/rc+YF24ptud5 FU2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HZqFs0N2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-147276-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w23-20020a50d797000000b0056e2374a861si5969908edi.246.2024.04.16.10.11.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 10:11:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147276-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HZqFs0N2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-147276-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8862A1F2360B for ; Tue, 16 Apr 2024 17:02:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 006D6131BDA; Tue, 16 Apr 2024 17:02:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HZqFs0N2" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 182F36CDC8; Tue, 16 Apr 2024 17:02:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713286965; cv=none; b=CfCg1pk1H5YSCj/3M6gPq2YR4ez5y2wand4/8xE471UszDhLOhjTLCO9pkkoInO8y4Wh1MVhAXUl3pjKwiqMoUPbQrKeib3WRGn6s+HpqgEB235biqs0eBxLh+uEGcJoa8Z+z2bduX/HiE2oZp5GrCY5iA3pFSv/UOhf8LIquPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713286965; c=relaxed/simple; bh=swpRmuyUm0NTUnfkBwhLOJvbAum9jZWIxRc49A9ZH5s=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=KJQzVtqfNYJJw8cp/bYzTfUfyw6tFiltDsqxrZNywdIjQmx2NwTAYO0ZZDFb2Wy57yTSFhnWpcACGbChlXsorTckYzlman/SNlYYTNE+geT1+Js/ErdByuGDyr4VR42/IkedBA4zkBsM8XjEJwqF6nw4YR7vSnWzliAmJLhIqFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HZqFs0N2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68FC6C113CE; Tue, 16 Apr 2024 17:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713286964; bh=swpRmuyUm0NTUnfkBwhLOJvbAum9jZWIxRc49A9ZH5s=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=HZqFs0N2qr133iHkYPMr1Mc2JByYkEaWVvjnKEfjaX32Nhmv2fqJG7Th2YDS66Tqs 4tpQoGzhikLNsaxlvpvZfPLEZ5mkf63F7BV6Y45dcVMkLUHVXzQjwmE6LNJHlU6qSa HCITBkntv5/CzIqgXeNgaitqisOJRTNxP27ZMevlI1SM9fXNRp4bLw5RiNzHbUhuET iMApbzOVc2SajcWEOI/aWRYOin/aZ25kh1mxYg5zENyMQ+DAYGVGpZRZqeV/WyM0v2 /fqYQzwTKLJvd6PHAdItQkBHuMO64xfKG98KmGhkCWJyC39XXmMqJpFqP1+TYm1Rv7 1SgIAXwx7MGiw== Date: Tue, 16 Apr 2024 12:02:42 -0500 From: Bjorn Helgaas To: Frank Li Cc: Bjorn Helgaas , Jingoo Han , Gustavo Pimentel , Manivannan Sadhasivam , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , imx@lists.linux.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v6 4/5] PCI: Add PCIE_MSG_CODE_PME_TURN_OFF message macro Message-ID: <20240416170242.GA164032@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240415-pme_msg-v6-4-56dad968ad3a@nxp.com> On Mon, Apr 15, 2024 at 03:33:28PM -0400, Frank Li wrote: > Add PCIE_MSG_CODE_PME_TURN_OFF macros to enable a PCIe host driver to send > PME_Turn_Off messages. > > Signed-off-by: Frank Li > --- > drivers/pci/pci.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h > index 19b4227a8a7e8..1f6d54a5a7cfc 100644 > --- a/drivers/pci/pci.h > +++ b/drivers/pci/pci.h > @@ -30,6 +30,8 @@ > #define PCIE_MSG_TYPE_R_LOCAL 4 > #define PCIE_MSG_TYPE_R_GATHER 5 > > +#define PCIE_MSG_CODE_PME_TURN_OFF 0x19 This is defined in PCIe r6.0, sec 2.2.8.2, so move this below the INTx #defines so they're all in the order of the spec sections and add the spec citation to follow the same style as the surrounding #defines, i.e., /* Power Management Messages; PCIe r6.0, sec 2.2.8.2 */ #define PCIE_MSG_CODE_PME_TURN_OFF 0x19 While you're at it, tweak the [1/5] comments to be: /* Message Routing (r[2:0]); PCIe r6.0, sec 2.2.8 */ /* INTx Mechanism Messages; PCIe r6.0, sec 2.2.8.1 */ since the "Message Routing See: PCIe ..." comments are run together and need some punctuation between the text and the citation. With these, Acked-by: Bjorn Helgaas > /* INTx Mechanism Messages See: PCIe r6.0, sec 2.2.8.1 */ > #define PCIE_MSG_CODE_ASSERT_INTA 0x20 > #define PCIE_MSG_CODE_ASSERT_INTB 0x21 > > -- > 2.34.1 >