Message ID | 20240201-pme_msg-v2-4-6767052fe6a4@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-48491-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp267916dyb; Thu, 1 Feb 2024 08:17:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IF69lcBI7SC9XV9Oj945D1A37C45EVgy80o9jKF843rYDASduFY1iUXsJ0PavixHkGWOKEq X-Received: by 2002:a2e:84cd:0:b0:2cf:2db4:cd84 with SMTP id q13-20020a2e84cd000000b002cf2db4cd84mr3802266ljh.49.1706804266811; Thu, 01 Feb 2024 08:17:46 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXYyvo1AGxqucUheNOuqDArHfXcccWsJMPxDYvtL0Pp5GELr6WoLN75mmZSuMGJ3i6CfRjoEXrs3hcG9TcCOYvxZXfRMg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g7-20020a50ee07000000b0055fc08ef164si611975eds.272.2024.02.01.08.17.46 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 08:17:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48491-ouuuleilei=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=@nxp.com header.s=selector2 header.b=Ks2o1jbz; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-48491-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48491-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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 6DDAE1F2B1A1 for <ouuuleilei@gmail.com>; Thu, 1 Feb 2024 16:16:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4550915DBDB; Thu, 1 Feb 2024 16:14:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Ks2o1jbz" Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2048.outbound.protection.outlook.com [40.107.104.48]) (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 DA00A163A8D; Thu, 1 Feb 2024 16:14:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706804043; cv=fail; b=hgMwm2oj2lTtr0/K7+iGN687sqk4bKrdkJLqkcA9H8uD4TLHGj8ZWNmHY639LTCnRrczOQXWKreKj3N/bGTGD0lR5rjKqlrOBE0muDvpcRAxGo+kcM3LKv2vK+WuCslypwqqGT/lC4+Gb7upPY5Ep2fSPqMX2LiyE/xyF41JvfM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706804043; c=relaxed/simple; bh=D3OVyPoQgbl9xXSYR/1BiTXAJm+k9I1uFEMvcHMr1z8=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=bEplMuvIuZZ1G8614BPCzS1sf7HFsPE2pIvgzMSkCEVTeTR5D0ZE4DXkYZ3Wsg/Zq4CJ4r69L3unjxSdQAO1D1s3pPGK2KBhvJKaw/G7gbxiRWyl8uFcNSnjytJIzHRiMwH2cdjj57nO6py08/dNtB2xYACx5s1Xf/7LUUQ+A6Y= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=Ks2o1jbz; arc=fail smtp.client-ip=40.107.104.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A+8HhHzFsMXwnNPcQLF94YRsh1ZhAHuYDU0/W8qmSruDzht1mASF5Oe4NfMIbvWMCU5dDUtWFy+hnHR7L7C30Q+9dhUDUwU3tfed4dAKPpA2F2wAEleKALiW3XoyIRfWn5JO+ClnPTPwlArQ7lI2Ljd1qO9j8FvCwPaqKqaUxWMSomJPoVmcB4cRLIitsCrNE52uMiYoDAudmkH0xE+EryxdnOT8zN+7rfo6PdRSUx1SvOA79Wm8u7U8VlmYVyl5u9ld2oNPYnbQECu7+AEAxddBerAfRxY+x3mmjVXxC46iyiOhZmV3grf2Df2yP7ul7O5JgiJOLVBE8ndWW0hcDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iyF7iTLz64XOA4J2OBaNogx5ppHO6pakjQq/PoIvIyg=; b=drChc51E6aZfArqiPNhYE/igfmLZs0NHm3j2EFwlIMzGr3E9j6oPVR6K8/sOc0OY9uiAKYIzxPvAQ4ZwELRNYl9TNV/a6JqBl0TXNkiMQ/PNQJOK5J+t/QRquw1Hoi5eiKyp2kb1jLhJs5b2xjRtwOtgV3QAzOU29eG/IA+T3Ipcp5d2Zkb6uGkNvNas0eHjBMcDDQKmJNKlqzkJO1o9d7EbatHvVnlLFEft7+dtJeMjpy8jzaI+zuRBEXmZo6gRw5T54zPf0BNtHI2Z0YzH0/m2d+mS8pYYHjj7k0cmugZdrn9USUbD8YcrF2ImaB59QU8W6Eg0A7htMDmP8EL/UA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iyF7iTLz64XOA4J2OBaNogx5ppHO6pakjQq/PoIvIyg=; b=Ks2o1jbzJynA4dsfFZ0d/kvwLTbHNZMJS+4/8ZhcgkH0Iu1eP5ruDxjtwsGMJVzQhPsD1I1WhjEoCiiNvlKBuCYkxKYEqb266cijNGL9wtES0bcmmUs1jPUd60aoWniLiRRjGtBlr0WMAipz1is5Z0JN4tFFnHM4oWKEeXyznUU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AS8PR04MB9110.eurprd04.prod.outlook.com (2603:10a6:20b:449::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.26; Thu, 1 Feb 2024 16:13:59 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::c8b4:5648:8948:e85c]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::c8b4:5648:8948:e85c%3]) with mapi id 15.20.7228.029; Thu, 1 Feb 2024 16:13:59 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Thu, 01 Feb 2024 11:13:28 -0500 Subject: [PATCH v2 4/6] PCI: Add PME_TURN_OFF message macro Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240201-pme_msg-v2-4-6767052fe6a4@nxp.com> References: <20240201-pme_msg-v2-0-6767052fe6a4@nxp.com> In-Reply-To: <20240201-pme_msg-v2-0-6767052fe6a4@nxp.com> To: Bjorn Helgaas <bhelgaas@google.com>, Jingoo Han <jingoohan1@gmail.com>, Gustavo Pimentel <gustavo.pimentel@synopsys.com>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= <kw@linux.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, imx@lists.linux.dev Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Frank Li <Frank.Li@nxp.com> X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1706804020; l=581; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=D3OVyPoQgbl9xXSYR/1BiTXAJm+k9I1uFEMvcHMr1z8=; b=Z/MykaJG4lN7Eiy498ABqEaB5K84jhUBMRuzNHiZIQonpO8C+NfdT7mGWSyLdCdXZ/K0/12S8 wHVy0K+btKfCFkUfiSO2NUHSAPSbJ0ZcfPhorZYcRN7PR6NVVJuUPNt X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR05CA0065.namprd05.prod.outlook.com (2603:10b6:a03:74::42) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS8PR04MB9110:EE_ X-MS-Office365-Filtering-Correlation-Id: d1ef6813-9f81-4e3a-f93a-08dc2340cc47 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fpBvu/vARqFGfFJgptP20iruQ3x9w4wvHVrMf5wD3YOnZBYquY4nR/pPvonM3WJBUX99B/8xcmcUDoEBjfECmduu70vDlSJsK0Yp8FxDj8JHnlhQS/KEQYMAI9rEQ6paUx2MSR7xisGcTl+fJyVMoz1ImkrdF4wg4nobaYm6fdHpwQiRsVCwKH1H42bpFBHvbibI2d0wusel4gyamNh4xRluX1SWWbmaswH1n0inGWP/gWvYtGcpiZCGkamK35P+ebgP5vJgKXjGIzImlQwAOihSCXcTCBwvtMvNc/7slxnQaD1WIc3A3rlgdUhTb4YxgRcFpqms/ssewbPgP8EB3aYMilEty788rQqR/xbzR1EmI4UlU548yviLOB/smiadunu8p+c7cPRmXF6GDeUN0+2WGwk+SMxrrKQ1/OwWI2QA04wyIDTN8G0tOTQ/1VvpamsbZxq4Nn+J0THKG2ivlI1x/OwpCbbFmUwf3CYtl/BNJItLCZgFXQ1TNRCvinHTQef7RObM44lR+ApfUbCTpEt0t5d3r8NJnenCcwslfQ/v9ZVvJQIOnaUGLRyOvRfEQIvT5DJaJrEqlH6QU4E09egZkQHlZ3Bg7ESauXtJ9H5LRtYM7ibte/+HKcuovEo2PbodMPj9Z33YY2Gfpw8wew== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(39860400002)(376002)(136003)(396003)(366004)(230922051799003)(451199024)(1800799012)(64100799003)(186009)(15650500001)(2906002)(4744005)(7416002)(5660300002)(41300700001)(6486002)(36756003)(86362001)(38100700002)(478600001)(38350700005)(52116002)(83380400001)(6512007)(2616005)(6506007)(26005)(6666004)(8676002)(8936002)(4326008)(921011)(316002)(66556008)(66476007)(110136005)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8uo6ZcivkTmV/Pa7M1C9ha6thhzN?= =?utf-8?q?FVdu6G2PIIcjP1rPBKXcWsHamS4s+gYYdg0rduHlwFK/aJUt78PFO823JBD6ti2QD?= =?utf-8?q?t6fb6quh2cU+IhiSQ0MDDIcD9CYxxO31MTb4izQMdl9SrL9dxS1CZA9O2psWOAJvl?= =?utf-8?q?2ewHV5cDOh5AV4T6cUfmLjvPb2TOxxRBPg5704sELphhxD1EwC/pj1R5L+3gqkBcf?= =?utf-8?q?TE9J2BdiqrphKoEmB9eaIhmS3h0GwVv71QI2XipRNY2HGlK8PEbddpcbCdLav2rBJ?= =?utf-8?q?CcgY9iCSsZNU3xO4kpRa+mu1vRC8zHyjeTapGSofqqd06MFzFayq2PYDyDF1nvYCX?= =?utf-8?q?/vFT+daJg/jmh4hMdhtXlJQDU3gEgUtbcu2Q0uMEW5aai3ZbNPZS7II2/PS/TXsaY?= =?utf-8?q?o5pMAiAZvaw3g2f3XiS7oZl/lqa0dfdF442hPcVbCR9AWHq0EyrLg260IVBJ3ldxw?= =?utf-8?q?YKU9eXTD6RcRyR4E2mLKck6nyyU9Hg/P4UrXTd8IGkt+ZkpZgyNHe4NC32Qw1scuE?= =?utf-8?q?1DPwAcAW+pMGoLhk5qh/Pxjfz8f6QBgXGCzo3tA5VQDbUYHjnbt/i3vYaKX891eD7?= =?utf-8?q?E+Ve93ixv+N6QYzgoXYIgALKcD/llrsxuxHjesYbN6w1AvfkHBDn7hzJGvFZ7uKH5?= =?utf-8?q?UytpmabdQWu5wfB1jdR7o29dzO962xgZt7vD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813-9f81-4e3a-f93a-08dc2340cc47 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2024 16:13:59.3100 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xPwITF6/7Y4hcOeYCspHaZ7VX+MsRfsHdDv/LrE8LNBe6Anc0yYTugFZDCn0taqpAsDoPuP5cseMu8PcBBgxfg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9110 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789713990633819187 X-GMAIL-MSGID: 1789713990633819187 |
Series |
PCI: dwc: Add common pme_turn_off message by using outbound iATU
|
|
Commit Message
Frank Li
Feb. 1, 2024, 4:13 p.m. UTC
Add PME_TURN_OFF macros to enable a PCIe host driver to send PME messages.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
drivers/pci/pci.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index fe42f5d10b010..46bbd815efccf 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -40,6 +40,8 @@ #define PCI_MSG_CODE_DEASSERT_INTC 0x26 #define PCI_MSG_CODE_DEASSERT_INTD 0x27 +#define PCI_MSG_CODE_PME_TURN_OFF 0x19 + extern const unsigned char pcie_link_speed[]; extern bool pci_early_dump;