Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1180252rdb; Fri, 1 Dec 2023 08:58:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7/FK2CH/gRzCEEUiGbgb+wTqOADa/5wW/QYcXWVCp3yUOG+4rUgZP7aTBelPIZCBp/0oW X-Received: by 2002:a05:6a00:23c1:b0:6cb:8cb8:2f79 with SMTP id g1-20020a056a0023c100b006cb8cb82f79mr27537848pfc.22.1701449885526; Fri, 01 Dec 2023 08:58:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701449885; cv=pass; d=google.com; s=arc-20160816; b=pMZlFJkKzNwywHxFPx/gjWLj7tuldj+CHQQagk9Ha9ufPeOb0TVhAf1a9rgP3+b/+S LGlhSc2OhdbFbUyjILBCd7n8owMH/zMwQw9LDdrEY46EXOQegpVmD1TeluX+4VktXIIE jocC9cB4pCQOqV2E2tTnnVwTZCN8xeLWKCl72TjdGrK3PhX1xs3+gy4TIdBDWSP5PjPu jbCiFnGIXhmD7wwh/H+CyMpZ41FTntEG1tV4oZdqYZH11mRjv6q3dAwj9u983QYXF5+w 8aZx9JDWSMM/BolHcliKYq0OsanSLspi0KLY5/FiWZJ+s1SDsF4nLXay/3URayViMVey 6nfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=exM7pQii7xBQlI4hetaZD2uQ6p8dFoNyHPVysuK6AmE=; fh=v/jM2wn1AT8MmGliQzsTYb8d2SqnkzZtnVlwdeycEpM=; b=kHMu0J0OWksNPAykehE4vQMxi+VbsTCi4+TsTBmrRszew2RMGeV/6vlTPvGMptLky2 NWqBWfmzPV+ZNJU6fEHdozUm82TF5Eys01U52vQbkAf2HyODE6I+P3bHFaKHcRZRqsjC REEg4jQdgsVzXtT2pgo9LG7Ar6fbSBAz8BQY1g643vr5TVRcdpNnbbWbu2j1Z/jxyTlw ElmCrlCPRBcakFwgWQM/Zxd4E0nkGYPEXBKDnyR3hVqp8RtQaqtH2HjOeaHVY/QRKkii 7NFefHmb1BsI/07WtYWVV4dWs8yzly/Q6REEDR3dmqUH5emZBtEzT9jeeblZaMQ1VDXG ZPnQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=FoWhYZfd; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id r14-20020a63ec4e000000b005c1b5aa3f16si3509722pgj.777.2023.12.01.08.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 08:58:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=FoWhYZfd; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C202E8048697; Fri, 1 Dec 2023 08:58:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378533AbjLAQ5x (ORCPT + 99 others); Fri, 1 Dec 2023 11:57:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjLAQ5v (ORCPT ); Fri, 1 Dec 2023 11:57:51 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2044.outbound.protection.outlook.com [40.107.8.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14CEE103; Fri, 1 Dec 2023 08:57:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WQDg0/9ETcn22wc2o6sSffpO9mAOxaUoYScU7/crew8B2rSRfeDboZcGY66tMzgvwXcYkqoN/lVulIj2XQ1xoWbW5hNe24a+968Upq89wNSBNtTT/JAm1IPgH3VQrnCBkIWnAMbUcgmda3zvKWQ0dQOUr7WkD8ZZYYGuOLuqLHdA+LE/POjmUaHhJHi0D5jyzsRt8Xk54FSOaqFBPEsfn/DrGHOBubDCj/aZc7uuAuGGwHZXRanIKw/PpDBW3kHU6+eJdl8BAGRXhSruHVULO+GJCDfq5+R8lDTHi+3G7xONBUpU2/PklEMcK5ibjDbujaC2HcUEN1rxGAqGk0D9aQ== 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=exM7pQii7xBQlI4hetaZD2uQ6p8dFoNyHPVysuK6AmE=; b=Pj9XeatpMt6AsCwJDThb7Czz2oFTpRHhi7gzpYTxyBgkJyEm4+97a8yL88RylCxnPOn6QITosfzz2iEWuxQ01Z9RnizcPhMNooUarRjfqfCfuY1owPimPq/fW+DeD1sOp13N4HLdxsSYztfJQHwgqH6aYQMvQkylSbq+P+NjV2fe/W6IAeK7y+YJG89Jq/EW1Or7x1FO9QDo4wFMyzAefL+N2YSg7RXQRd6vJIbRKk8gAfFzzp/a6PrYMytwM0sUth1G4RLoanzsRtdX1bf/uer5jAw4T0ncqzGwi8g5zNUfVKZuK1o/lq5J1jUAzZ6vqsGf5ejqFQPvYhTjcLj99Q== 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=exM7pQii7xBQlI4hetaZD2uQ6p8dFoNyHPVysuK6AmE=; b=FoWhYZfdh5buyEH9JQiPMuOGEOftfpCgxPSSha3MJ4P24fNcmiOslqXdtza17ODD20WEcrN1uUisXTyndnWbUSQBgoW65OQjZ8prOUOJmPLzhvDyaSp016Au3hLJXH2TVYcsvJ5CCHlWqfz/hFs1hxJ0p7nz5l6SL/2YFyOTocI= Received: from AM0PR04MB5956.eurprd04.prod.outlook.com (2603:10a6:208:114::23) by AS5PR04MB9800.eurprd04.prod.outlook.com (2603:10a6:20b:677::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.11; Fri, 1 Dec 2023 16:57:54 +0000 Received: from AM0PR04MB5956.eurprd04.prod.outlook.com ([fe80::611a:53a9:3185:c548]) by AM0PR04MB5956.eurprd04.prod.outlook.com ([fe80::611a:53a9:3185:c548%3]) with mapi id 15.20.7068.012; Fri, 1 Dec 2023 16:57:54 +0000 From: Roy Zang To: Frank Li , "manivannan.sadhasivam@linaro.org" CC: "bhelgaas@google.com" , "imx@lists.linux.dev" , "kw@linux.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "lpieralisi@kernel.org" , "M.H. Lian" , Mingkai Hu , "robh@kernel.org" Subject: RE: [PATCH v5 2/4] PCI: layerscape: Add suspend/resume for ls1021a Thread-Topic: [PATCH v5 2/4] PCI: layerscape: Add suspend/resume for ls1021a Thread-Index: AQHaJHHnnq69VzUD20q7VrwvBWLj1LCUpguQ Date: Fri, 1 Dec 2023 16:57:54 +0000 Message-ID: References: <20231201161712.1645987-1-Frank.Li@nxp.com> <20231201161712.1645987-3-Frank.Li@nxp.com> In-Reply-To: <20231201161712.1645987-3-Frank.Li@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM0PR04MB5956:EE_|AS5PR04MB9800:EE_ x-ms-office365-filtering-correlation-id: 20834806-c2d6-4e64-2632-08dbf28ea998 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uHrw5XLep8sjv5iD56mfoGEz3oH8wHV8nQyhVy1xKVGnS882IG9AjALCwhfpoDdBuUqsdYepiXzztQznghEE/fkLRALvef+tA3NGAYhnGyF1dVdel4Oxe1VmHyCWfi6yj0IGH2pby3Wsi/bvGHWT7vAbpEj0T6ohXNSCapIJbQzKnPQl/ZBSMQOqda3n39Sgj4GlTTBjr5ylGh7xCUWu5bq6aQkYUZp1zCw14kf/4YUZ0xt09GfP/BkunOLabWhZy69j9TfqKJh/iuZ0WQNGzSJNBOTut/gDFUSfinbgdj6RyxTSraWSv8ICaneyA/RkumIvXHOtGwxqdYs8yT4FOwvmeTR39tDRdcP26pqL/2ODqUUcQCvxavwhhIexwHL+SCVuPfXAYXR5M9GucfkY+ner8CRbSQIdJW2+JuSdT9P22elneVf2SmxMEacGuZ2y8tgYi6R+nJysX5BhQfJGHfCH5rKMvgX2mk0U7DYfPq4+eDo2A6wVanC/lMaeP+die1aoNTMWeNuE3pFqCzWVaw3j6/lGOlO0nDEiYuFF8ntoUy4Z07PjRsY6pxYY2fZFLhWB9X3r+YK0m9dlc7NkH/gCCjEv1i03ElcZU/wKjF094YKc7qtsAPOjVIqPV6yx x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB5956.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(376002)(39860400002)(136003)(366004)(396003)(230922051799003)(451199024)(1800799012)(64100799003)(186009)(8676002)(26005)(38070700009)(8936002)(6506007)(9686003)(66446008)(7696005)(83380400001)(66946007)(5660300002)(15650500001)(7416002)(55236004)(52536014)(71200400001)(2906002)(478600001)(41300700001)(316002)(4326008)(110136005)(44832011)(76116006)(66476007)(66556008)(64756008)(4744005)(54906003)(122000001)(86362001)(38100700002)(33656002)(55016003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ajpnF2icG0/+QPBB0/sT+mBeQcNO/pu8jtQxN0zKuhjsfaG7ZFKA/laWNaXv?= =?us-ascii?Q?glL02RW1wPNYAs+GHgxYWFvPgi1JLDABJEhrSsjrIieOcL7DbwWFqJbY3ukH?= =?us-ascii?Q?BXS5GqoSQzgpxy8IyhlsRlYAjuIONXJWBUkYasLu0r48BYEEKkBXk5wKyKtE?= =?us-ascii?Q?bt4XtUVabw8rSTsqwI0P0M8Hg3FwFWnFwisCry+5LwILg05VWZZvOfwzzWGy?= =?us-ascii?Q?IZT23ReMFV2dAzJeV4TczVYMpcBxUYMqIceI2R7R4l5YjEW6KsvdeqXYgvmo?= =?us-ascii?Q?fvZiyG7EGJVw0c4npHtKrMAI8KGkwcwEgfF2RzcCMrka6SKDrP9Yt+oVyK6x?=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DJjWk4w1CjljfciW8oDaKP?= =?us-ascii?Q?9NYkcRsaS2z2L+cK020Rz7ADETAMdwjrHDLctgDvQNcGhPax6xE7z8PCWGNC?= =?us-ascii?Q?ap5zOi0S2YHAgPPKPvGiAbRJjNopEyf7d/eL2zhkr19MONy9H3kTl1w5PELy?= =?us-ascii?Q?Gunt8nT495CcCF0OyRpaU5FjHZnuGYQYGxX7DwZGmXtgP3OtwLC4/OEv5yrn?= =?us-ascii?Q?JI+9/PSWUlxzfaL2/EHhe1cXZbW9fLpCELhOkp4zD9x1CBcsV7D52pCD+x4Q?= =?us-ascii?Q?5zgGw6AxTraSv191YK/ciiiGbC7JLcIw7Ck1cIvs7d6pon44cdV2+0MzaYct?= =?us-ascii?Q?PlJvqkG1az3tSDqWODc=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB5956.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20834806-c2d6-4e64-2632-08dbf28ea998 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Dec 2023 16:57:54.7026 (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: hzHziuYGgakWOheNxGL4OSwV2PDn0EgWZ5KORdU34IAAFtv2fL/a5hBMxiZSWPsbtJBftphE16vdcAK0W1QYxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9800 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 08:58:04 -0800 (PST) > From: Frank Li > Subject: [PATCH v5 2/4] PCI: layerscape: Add suspend/resume for ls1021a >=20 > Add suspend/resume support for Layerscape LS1021a. >=20 > In the suspend path, PME_Turn_Off message is sent to the endpoint to > transition the link to L2/L3_Ready state. In this SoC, there is no way to= check if > the controller has received the PME_To_Ack from the endpoint or not. So t= o be > on the safer side, the driver just waits for PCIE_PME_TO_L2_TIMEOUT_US > before asserting the SoC specific PMXMTTURNOFF bit to complete the > PME_Turn_Off handshake. Then the link would enter L2/L3 state depending o= n > the VAUX supply. >=20 > In the resume path, the link is brought back from L2 to L0 by doing a sof= tware > reset. >=20 > Signed-off-by: Frank Li Acked-by: Roy Zang Roy