Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4887077rdh; Wed, 29 Nov 2023 13:44:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEE4kGmy1buyLNcT+q8HxI6CLoKBRdarGhPHd0NkwjdhRWcLStxzEo39ANfHSxUPp/E3gfy X-Received: by 2002:a05:6a21:a5aa:b0:18c:35a5:e3b6 with SMTP id gd42-20020a056a21a5aa00b0018c35a5e3b6mr15175634pzc.31.1701294285367; Wed, 29 Nov 2023 13:44:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701294285; cv=pass; d=google.com; s=arc-20160816; b=pNU6BVRRXz9nWdkHEi3sj+rIo12YZGbQ25U9IO8lSdnasuXIOXJ75TcABk5qKriU5U dOOAKlD5dFHh/szhqtSILdTnhjjaCaLa3QCzoTLynoPsC6pa5ZWZWg6iX7ncoeA04mRT YRIkTxBm8yoDDee5jKORoomrww+tUfkT/RrvdEmSHgbtSqsB5CcA3O0pmfVBFWxKH9LZ BmWbJls0u/4M954iKewhF+G8YX5wjJHAypnzw/R8o42Fbvle7z9eib1vc6FFHdpLDApd 6fO+KVZ1SsQL9DdWsCKmEYMTT4gZIbXWI6nVq6NZurw21MpZBmwXcd7MTDwoUz/AvCqs lBSg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=oNR5nva9cphYOl5n3WTk/K88y95S8YANkVxkCeZvI1s=; fh=G2Za2XEd7lFHZ2j3w8Am2dhf4mDmMexXUuvn1GAozXQ=; b=b5bPztBLMNRYJCg8C64mYbVn4/NBTvx9DQsKFusn9njnp/nWFrrNEE3CwwsvrKWSrS XXZQFTsD81kstZrG9gf2RZP6R+JzyXI4R8a9xKYvan/TiW9yD8eR0PBDQ3OMwJvHlsTX EAedI/VaQwFIcjYh0w52UQoPhsj2fWXsaVcLNNwM5t5Gao+GKhUnrwGHBcU8UpEpkng/ A2ZPBZvMiVG5Qe7J5Ogthby0W1i3gdlhGLj+8UwqKclMnrmYbi7SJ0Ygocx754xn0OJB 4DSbtagx4L3nWC8TnpXDstwZ4iOYnPbQTLqZClsRFZLyhuD6NDQd0VZjyGeLLMdjyezC E/dw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Fwm8Qc5w; 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 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id m22-20020a170902bb9600b001cf9d8aeeafsi13277045pls.247.2023.11.29.13.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 13:44:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Fwm8Qc5w; 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 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 7B4BA8043AEE; Wed, 29 Nov 2023 13:44:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234581AbjK2Vo2 (ORCPT + 99 others); Wed, 29 Nov 2023 16:44:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234559AbjK2Vo0 (ORCPT ); Wed, 29 Nov 2023 16:44:26 -0500 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2059.outbound.protection.outlook.com [40.107.247.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F01910C9; Wed, 29 Nov 2023 13:44:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U2zwfe93MEcyp5v/in0baLITQx4uwJXHo5rIS2mPwFLj9sLl7KfDENUXUKjzSUaY2lkqUx7AjNNiXUztephzEEKIr95CR3fj+7qYP4BoP4TZA8v2ShwyVFN48wseTfIzthou+Dk6jiNVjaBy58xn5AJf8ua05Zd/Y8lKwnuZIu1Bo8c5WybGetDOMFTkx61az/hRD+XRVUe94tTmez/OjBqKsdzfkAcvDj3QpPv+FIcqwE4ImtmT7CEdJUfewbOxXEicdm4vV86R8sujSnRCaqbrGgH0d59teYJgp9YWIs7cky2pbPy/ig/3pwJeFlcRj8bbys+KpjC6GWb/YAU53g== 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=oNR5nva9cphYOl5n3WTk/K88y95S8YANkVxkCeZvI1s=; b=ZcKmTNVrJ93h/ITrmuoGyqNMn7qePRoi06Q+f9DkkYkZA3Xtd/bwGp7uR87vAqAkSpSGgrFv78Ei+dSKk5yxXMNCpWdTKHavoMlHb4C2jckGyywi/9T/fuyHwpnqPHviRXV6Nddg6ruDfYjlva53zK81Q3dB7hWL6d7a9BsASUNq7cRs2RxRZl1414AQRVFjY3qT7PKQBsqGvErvV4ffWoZQpdAYG27CBLanQKjPqwQjG1IQyoQJ+/RYjXynKxH4YRPCQmLRwLRTV517lzqQx415nmLp1B39BBXeTLL6fihVt4Rlfj1+teRlYNoKJ2UfDFUX9WgIH27VxF2EZ0tk5Q== 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=oNR5nva9cphYOl5n3WTk/K88y95S8YANkVxkCeZvI1s=; b=Fwm8Qc5wZP+XYUk2H4pY0wJgbQ2LCf5+3U1Cvgasp7k2g2ye+SnzPIWOoYFFXfwGBEvVokdg4SJI5nOayOoPCv7UkVixFDPVmN5oI+lWh/JY/iKeGibujOwxUuNdEhV8UEQPc1HIel7CEfN7Kbv6wJ8/qgqYTYZayB7qpzMkfDA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by DBAPR04MB7416.eurprd04.prod.outlook.com (2603:10a6:10:1b3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.11; Wed, 29 Nov 2023 21:44:29 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40%6]) with mapi id 15.20.7046.015; Wed, 29 Nov 2023 21:44:29 +0000 From: Frank Li To: manivannan.sadhasivam@linaro.org Cc: Frank.Li@nxp.com, 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, minghuan.Lian@nxp.com, mingkai.hu@nxp.com, robh@kernel.org, roy.zang@nxp.com Subject: [PATCH v4 0/4] dwc general suspend/resume functionality Date: Wed, 29 Nov 2023 16:44:08 -0500 Message-Id: <20231129214412.327633-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0136.namprd13.prod.outlook.com (2603:10b6:a03:2c6::21) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|DBAPR04MB7416:EE_ X-MS-Office365-Filtering-Correlation-Id: cd3f2b74-9a4a-4fba-a1aa-08dbf1245d5c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G9kEgLlHr5Zjp+XQhF+E8+oSalnCbeGR4CkxfhlhVRImY3gOpeVlrsFs5lueghj0RJAnlaHoPQD8UaecgHPDxvj16YJwa6QGsVr0pidFpzj3O/Q0FnBlzhVcmJwTAxnmkRAPH6Sg3Ci5Pcv/rrsceU+t1XRjWiBRZHxkoMidSomkrsKtpUnAvPmM/EcrBIt/wP7wJdXVBWPcbBHYXCJNPoVTEh/OipymPHDUNl0Rx0BBf5VJf/zYXVZOU2p/K9pWym3wNMwwej0Qz8eXODe+2fd5k2DpK9Gun9iRgtIUU8i3VO4+Ti5OkSPZnORanzPs1G8RbJWQi6VWyLtGd0F+f3Qsw5r7VHsq9mlgCIhk6aafrfTpasTLVVU4uVBv7yX4DSJPe3ToLR10H7nk+CrnQ6zasT0MxQUZeD829Mr3vxH7Fs0b7yTgO7znKEHg1pY2VSyRA/WIQGIsMlsWwcPMQwFdlCnPdnyKT//KrlYrl6R2FMKpLaBchM4i9QZsrz3yUfT44NcJYgsaHSOzcETOj0q2oke3nzAm6e0olVJPUBXpn/l451FGeygeKyibFhhkF8Ps2Z5hQy+pHk2LrAN6JLsI8W6+ESvyywi/mGyjne8oWUtcDAd1eJN3sd82klrL/bEXMsqXhxpZ1l2Gs7KCoCTe4HnIP5zUTtpsCs40Id0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(39860400002)(376002)(136003)(396003)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(83380400001)(26005)(41300700001)(8936002)(8676002)(36756003)(478600001)(6486002)(316002)(86362001)(4326008)(6666004)(38350700005)(38100700002)(202311291699003)(1076003)(2616005)(6512007)(15650500001)(4744005)(52116002)(66476007)(6916009)(66556008)(66946007)(2906002)(5660300002)(7416002)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?MdpPYLLvYzyjnZI/5Gvy+8jUySzazBIwh1dwSaF5CbEvZkOvz/pxKLJX/GpY?= =?us-ascii?Q?oyWp5gGAMQhQSH/o9G7VmCLy+/RaAQjcofSO8+b9B1UQ0NP8obW5NRFewkKW?= =?us-ascii?Q?uo3MSiNXavqCzawzjkk5p86d9zu9aa+w2rWMnCU4nWpA7Ie4btwQRxNCN6kG?= =?us-ascii?Q?dsjtLJBYCsgAIQQ5h9S267gcbT+fIf1MMTY0kdOI3zEEc9GwMNViftkx0lJX?= =?us-ascii?Q?l8pSrATVWpibZpuYICU8TPsnevb89b6Kj50AFXawoMkNf2MGItM+OrFNPJ20?= =?us-ascii?Q?sFI5bpCaAxJCh5FMGpnIZaVjy/9HR35y2PqPzofzS6+y7LuAzGM5jYjnCCEa?= =?us-asc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x91fRYnMvLVvJpO?= =?us-ascii?Q?W+RG/llDlKo9zkTo/AyDYog1VhSVhj56CgZY4WydlkXmLemNzGoD83YDl31X?= =?us-ascii?Q?LzJ0D/4neFqfwa2GQvWkOEzLumgwd63QWq9lkDfq1UoXbnSO7KKYviXsVlsW?= =?us-ascii?Q?5cyKcmniyBTrKpCd7Dhku5C0IGQfkwMP3vT6Jbwk0iz+qexd6WtTYq+1ZVRk?= =?us-ascii?Q?Xv6AL7Rf3G5+X4SZiWY0UWXqy7gMnXSixV2f20Um7dOmk/UwIQrg6emsnahL?= =?us-ascii?Q?or1ucNPr1Mk5DtiSM+tMR0HSUmvWWcWxuvgJrn8BcmmiwkmmDc1TRhry0Hfz?= =?us-ascii?Q?c8b5a9d3EmLfK7rLmg4=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd3f2b74-9a4a-4fba-a1aa-08dbf1245d5c X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2023 21:44:29.4068 (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: bHhgXYGF+tP9eeCB/17xRDZ7nBZ+zc/TvjZzdos5htjF+xZTFc7jM/WYHXolo2rzuG5eDx3K4ifVc1NxofdTKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7416 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Wed, 29 Nov 2023 13:44:41 -0800 (PST) Add a API for dwc suspend/resume. In layerscape platform call this api. Frank Li (4): PCI: layerscape: Add function pointer for exit_from_l2() PCI: layerscape: Add suspend/resume for ls1021a PCI: layerscape: Rename pf_* as pf_lut_* PCI: layerscape: Add suspend/resume for ls1043a drivers/pci/controller/dwc/pci-layerscape.c | 191 +++++++++++++++++--- 1 file changed, 170 insertions(+), 21 deletions(-) -- 2.34.1