From patchwork Wed Nov 27 03:00:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 13886516 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2041.outbound.protection.outlook.com [40.107.249.41]) (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 EBF951946B; Wed, 27 Nov 2024 03:01:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732676476; cv=fail; b=F9ri5EUktZ1dHq1E2klhrGkkjBJbH3XCVlW8L5vsBX+VNTgfO0NzZWSJLuL1vu27i4XE+DVIyK65ST6jQvyezbr/1rlErKhSqLDHaohIqwzMnvXcfcbeH/35j7I7NEcGzfowjjdWrcp8Kxa15qWNJnE6aEMxZT7wIRNIzU84X74= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732676476; c=relaxed/simple; bh=03zPlS//KyW+BrSI9a0uJxeBWDE6pIq27GlXgb9/Cis=; h=From:To:Subject:Date:Message-Id:Content-Type:MIME-Version; b=EG512PR1NOZXyzSw96X22DhM1pAJQamZLBddp5sNg7xnx7NSBSFXFOP6jpAuu7ZrjuOmDHxyKTnzFJV1Ob7oHcq0aP7nyyMjfWspNrEthvicxJ3G4ivMQVqwkruZn8UL/tNURUut7AfjcqOENyteL9fs7HALGMfIcnu0nENRVkU= 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=evSwU4e1; arc=fail smtp.client-ip=40.107.249.41 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="evSwU4e1" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=L+mzDQEEUc5cStvCUAx0JppftkQSuR1PijvsXO/9MHmMlkg02XRtwOGy8VC9ib9KU34raNCNbPR6vrinj2XbF0I2F8p9wUKCnt2CHpw38YJIpzuX4UokdZmiX+h3vdCjgmOM686aHfCHzC1QsXRmqFJ+NTUrPztymB5WlX+Eg8QgOhmyF9wgduKmHJhAmMwnuxw4IPaD7W2uiZvqQPyqc3Nq7nUG5mvlaXOIxxcmGNolqczDhgqLMCxtpbA7Kf7ca4QcSiu0TO5HDPsXgPT9TnfrFsPgASpPxZ6grQMsvZHJyPdbMhEaG+qIh2VpZbxyo14NIjMWgjlCF7dIMifb5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=KPJQSL8hlxZ3bXXls9T5Rwu1cuQ4BGhFWlnH7UolnYU=; b=WE0cdw8u8f1rE7r2hY5Oxsq9L9ha2yg6Tf55d3Rx0NlRxbXc+dcobo4abLF+L4BzVmFH/wHPWdK3LvFKpwzLToN3PiMOCvo1RzwQI2LIJEfikGJbCi8ydLAu/SHcPswTYFr3rtsGWHFrt1ax54UWhDLWaa2xSEZGGNJwSPGuRwDncjnLGQ1pW5HmKmBhi+PE2qJVIK3z63Ta28Ks53S375OD4KQiLBXA+ENgvWcSo50rvDwZhHsElnu8lhelVtPEK+HU+be2Ka0wgerRquci8RskbLQpgjwmJJpRZAKisOxwevFZqFCptSkOh5F/aAYR4b9mVQ4QfozeOm4MWOXRqQ== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KPJQSL8hlxZ3bXXls9T5Rwu1cuQ4BGhFWlnH7UolnYU=; b=evSwU4e1G6/Lf8YVYImgeDczrBeIerfeAWkhffqFxbccpGeWP3/UZWOW5ilsvZUJXwhzCsxfKRDXZm6wPgoTkvIZP97Gvi6+46XbyWCvXDqbGcATUsNNSvjxHvf9UHnaXqcVHgxiCYjN9d+8Nd2LOoxcJu5gcCeGbsE6cNvTdBWhKWn7i4NQivXTKvCPpl8Th+MY14zrCyaVwemsmOlMaVoiuf9axEBWptJzzVATGjuJPGxptN/NSs31c4MsVpxvw5Wu4LqFnmn22+7Dbigmzt11WvW3C3I5yOjZWnXttjCV0EoqLQayQtloOtOp0Y213bXgmyHvjfp8qfCR6gzPdQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB7044.eurprd04.prod.outlook.com (2603:10a6:208:191::20) by DBBPR04MB7771.eurprd04.prod.outlook.com (2603:10a6:10:1e6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.13; Wed, 27 Nov 2024 03:01:12 +0000 Received: from AM0PR04MB7044.eurprd04.prod.outlook.com ([fe80::7be0:296:768c:e891]) by AM0PR04MB7044.eurprd04.prod.outlook.com ([fe80::7be0:296:768c:e891%6]) with mapi id 15.20.8182.019; Wed, 27 Nov 2024 03:01:11 +0000 From: Shengjiu Wang To: shengjiu.wang@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, linuxppc-dev@lists.ozlabs.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] ASoC: fsl_xcvr: Add suspend and resume support Date: Wed, 27 Nov 2024 11:00:33 +0800 Message-Id: <20241127030035.649219-1-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SG2PR02CA0012.apcprd02.prod.outlook.com (2603:1096:3:17::24) To AM0PR04MB7044.eurprd04.prod.outlook.com (2603:10a6:208:191::20) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB7044:EE_|DBBPR04MB7771:EE_ X-MS-Office365-Filtering-Correlation-Id: d4c0d1ea-6671-4bc8-47ec-08dd0e8fbfb5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|7416014|38350700014|921020; X-Microsoft-Antispam-Message-Info: jJ3R3uMwkRf0ZglqNiYEfGaSob67m3s71a7iPK7CYDuY9+wRdvED3bHYFEyp51VL8QFCvIPh7VO4QwuBcN2wesRUOsyq4jnup6LzEG3XKpj6h3bXYWM7AiNFxoBmvgNTWAJHi+z3iHdB+KiCWSYR1JXjQvekHCLktEmjvYiMKMQD8ONB67THKyT2cw/3wBmBsFXtPDY/4GwS+8SDNDE28+ynRbBhScf5EI4vJVKrFf76hK/PweSWd9AaQBhj+GtSkqPu3cprQpDLaExEF1MvOLNkw4Zka6651N8mrUuWbCrENMBVGlND9mJLTi9h6X9Aspvr29ThXzxkfY0Kk8gca1idIylkZ/jsvFCfCNsbvsxynjqOI/u65RBv7tMd7SEqhwseukLxRZt0K3elyA9bLjh8swkyS2gHoyDKLe/LSITNnAVoR5vIfYXzJm9I/himVxiyUmhF8+qT1e+3d5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d04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(52116014)(7416014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: S2iTHPR5LvBEI9vHm5i+disGgdBvW6li9ddQF2szRY8JU8QXYG2W0lhSBGn19UTzVnDZ93lpRh01JtEbXGfkgL7GWBLGOSxTakshN4RqszSjvEZTI6paf3PI9d0b6uGor0dLB0WrYsXeaJcsWn7DI0bdEEa9BkgbdraL2YIiaoS+s36NLweUHtMZU1MmzC/r5d40vl6dKsAmLrxsmXDddNRd+ZXKFMEakERhKMd9L5lrUWdiUGua4k+5MpQw5SAHUk7uo6fkjy+DdAcex9eG2mi6IdRK2qxhDpO27GLbIlTKZ+Q4ROBoUhTGdZLBHj+QI2pXagDzuO3PGWzGITT8d+JPFsQPg1uiZmk5MVw6hM3Mfn3mhoAxx4o8A67ERhYm3spMaiEQxUYaV46r2LBi011kBAbKwkIssfpVddtSogAu9NPxqNvjhVZj5g9xt5V5RvWgFlyn1asA5vyle+HaBfQnzQAcm0YVuWy0k7kctu8ORWZaEjzXKBRJcpWo5Brj4KA/z+Qmtq3+9SEneXmLUMJi46Fd4grp86AJZqkKEwL93PZF59HwLVC2lQUO0sEWPzL0+dryoA9ouBqBFHFd5kGoaT74QVzeIzKGEPcJMLrzIaCksr4YxZR/lty2tpE2eKbI7nZyVoJzObsOuprUC8bniGFCnliLbWdxC/NgyKBZRLvSjf/hA4RWk4jSQvLZaJ6ITA7ToM38S37nBCwGSbra2MW5iC6f6iQuCD5kXQlssDqBXACPLncz/ojitlyr2H9hBJlpA7Szv2VX9jKz7mbs5idzPLGdK4p1X7iYuo4QqblDxf7fPuNjFF5iJqYmWxSSbcuCpE1l9Lg6D/QtqXOn8zXjbGQw1X0CY592IRESLcqI8f4eHVvg2rYxp3JQUkSkxBvShBardAy0NCyXLmr63D5+wOeEDP+RC8H9wjgsTWHxxFF/AISZNt9+T3N/9ksdHDltsGh2mRfTDvPMoA6ZiV17MbywYjVpkvLg3jt7IKxPO0wGMIbcfsbb06YG4NN44PtIWSvhQsjQyHWi9ELaDSlbH4ZWQz7qPHyvyFmJW8v3qRpVXH54lYQE7bsHaGn2iz9IWdFXq9LhpqtaoI7vOfiYy9G0djtFpUkUN20W2bl2mqQJPZe4YyI1UicOXHgIgvczQPv15q/vzikyWEmmo6h+dWXv1q1m9LCspwtZaVm9JDa9NtKjl/vReVesA9EPPgcMqf7G+6y7Rgw0ImXxeoXvQ03h9LL4xZnWQn+n7lA01Iz95bFn7RUeIAuJX7P1oj97nv4C0n5WJkELmgzXAKn0uu249mMGsA2t+R9pdNQb1RHf3PEO02NerAOnxdfcShgxgNL0xeWwlG2Czl/jS55HDuWDUluXUN9+uwxkpWJcxmO+9OUXWmT84UNUJkvnuuL8ZPyEFlx+AIYyuYbohJKpWeN8xy9iWH6H9eOT4dZ+ZOhzYhonCfnNSsJSBep49SHn049gW1qJOLuB31VrfY6SCcXJ2srKblDxAbDrFKbnnkDmNcG/pAE6yypEhlWaxG1iVJGPOfvFXpNh4y3OMNeZ1I3mKl5vqazOeEA6jjGFHHsmjrCJE4C2Jl26 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4c0d1ea-6671-4bc8-47ec-08dd0e8fbfb5 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB7044.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2024 03:01:11.9220 (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: +jslXWkiZXSdd3JjRUMeHneBh9FtJKcgFni6kUwI06ASfByJwfK0sIYH2Pg8sBq09CmRLboyO5EbxItm6zHX/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7771 Define regmap for PHY and PLL registers, the PHY and PLL registers are accessed by AI interface in controller. Then driver can use regcache to recover registers after suspend and resume. Shengjiu Wang (2): ASoC: fsl_xcvr: Use regmap for PHY and PLL registers ASoC: fsl_xcvr: Add suspend and resume support sound/soc/fsl/fsl_xcvr.c | 384 ++++++++++++++++++++++++++++++--------- sound/soc/fsl/fsl_xcvr.h | 13 ++ 2 files changed, 309 insertions(+), 88 deletions(-)