From patchwork Mon Jul 15 15:16:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 13733594 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010049.outbound.protection.outlook.com [52.101.69.49]) (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 2A7F46FC2; Mon, 15 Jul 2024 15:17:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721056633; cv=fail; b=dEgjp+Vb/9VC1WZOMlDiT6c3CaWA4gJSzm2vVRG1VBmzyynlSYbuK/hj5KZiXY8djJ3noDD5sZ+fiJsD1+DxHVVODEWHLecTFIIc5EVpttb+F591iBgInoD/AvshmPLOS5pp2jwoheQacHtU+Q7fC24uBxeYWC0o3m3oSIWsO90= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721056633; c=relaxed/simple; bh=1ctZabOv651M87hFUc9K/2sYy2lUmoJ0sdxLi8cTLxs=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=gAMup+eZ4FwbbvDP2FlND2iOmu9Vr2OBlrwbyMW3LVTwUhrqUpRr98UHgjF+/o5N/1mkrMgwyUQBNigv7VSY3QiiYdZpC4KgbF11T0G3HLFxrRENaA4kPuWoFLkXJdug/LSLFs+Mh+ruP8DCVNWMAJY7ZMHKJXP5Iv40MsBwxmw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=gkd7vXQQ; arc=fail smtp.client-ip=52.101.69.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="gkd7vXQQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=umZqUKeMuWSmZaH5Llab1b7BoD3pk5jAn+i7fV8BrJEGUqorqwRgHZm91inX/sz3XXlW+aOTnP3ZHFscjeqt3NGEaVwi0vNE7bHajQfFhgi74uIUI30sFyxGKmRx2Lsrb0BB+UiyS9tjEZgVG+NGiM1/8M4rQaKZlo182yQBO5gbYbxELX7VvdyMzKuuQxoirm+3HkfBWrU1LQswV4V9R5Ju7y7l2rCrh1m9707rHfdiEF42BV9/wWYGuczU6YHkZopkLPNWKQ/nP9vZoO8voKW4p1UIg3+cV3miBHLS/zeqWi9ankT5ss3daPK5RJKz6gnde+ALI+SqHxfibS3SfQ== 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=c8M7BLAK+icICZg8KxC8P5n2ynFP5r7MLcgcjoN8eb4=; b=qlRLCQIO67QkLWs4hxYY44UqwDKLJSH0AFyHqO6Dz81slbqtcbubI58Hgj1LpgDoDaU+y2eyQ74dYXzy8QzaYw9tbligF6d6YD7rceYjtFE/zFPWiHHy9jNTfCpZmInbr6MuLQY0gYcC1Ly2ba4fhwhaWRPN+eHzm4aiOB+SEpjHdyn7x+8OvoRel88v2BafAesz/wMwPxpF7uOHQunoTLxm0QmBO+rzCLtWYvBsByfTP9GWQ0bKbQxPGdPeS71o+yFxcz73g0FyMCU+0+FZ6mkSK9IubFe9/Cc/TV04IQxUEOST3OENUMqt85QcvCkmx9bTyoWQhcrOM2Ni2GL51Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c8M7BLAK+icICZg8KxC8P5n2ynFP5r7MLcgcjoN8eb4=; b=gkd7vXQQ7Som6BjcKojuXEBSck4pHK5vpgJ6GGGutosRsg9SGv8VnkcA9PdiVLS5mYUv9Wmz0iHGwfBKdNUENVbu729vavgk9OdoUyVX72tMsVW6VZrhYEHT4KLTWRa9HDcpJXehq+roVe6NFOQc6+1DRJ4soTdi9eTKo2QAcrA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) by DBBPR04MB7785.eurprd04.prod.outlook.com (2603:10a6:10:1e7::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.28; Mon, 15 Jul 2024 15:17:07 +0000 Received: from AS8PR04MB8247.eurprd04.prod.outlook.com ([fe80::84f7:e2c3:ceed:c0a6]) by AS8PR04MB8247.eurprd04.prod.outlook.com ([fe80::84f7:e2c3:ceed:c0a6%6]) with mapi id 15.20.7762.027; Mon, 15 Jul 2024 15:17:07 +0000 From: "Daniel Baluta (OSS)" To: linux-sound@vger.kernel.org, broonie@kernel.org Cc: lgirdwood@gmail.com, peter.ujfalusi@linux.intel.com, yung-chuan.liao@linux.intel.com, ranjani.sridharan@linux.intel.com, daniel.baluta@gmail.com, kernel@pengutronix.de, iuliana.prodan@nxp.com, shengjiu.wang@nxp.com, laurentiu.mihalcea@nxp.com, imx@lists.linux.dev, linux-kernel@vger.kernel.org, Daniel Baluta Subject: [PATCH] ASoC: SOF: imx8m: Fix DSP control regmap retrieval Date: Mon, 15 Jul 2024 18:16:53 +0300 Message-Id: <20240715151653.114751-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: AS4P250CA0007.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:5df::11) To AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8247:EE_|DBBPR04MB7785:EE_ X-MS-Office365-Filtering-Correlation-Id: f2dcde96-4bc1-4918-ce45-08dca4e130a9 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: jEq6ky1yQQwXs1Mg8IGnIKp1mplFRsFv0h8iBOP1Rv4sG+qsiMuW11p/xNBmV33mpzf5NAhjY6Xv1P0CnxNp77SBIk1UI46Y89lgvF8My48PKvflf+apZICkV741zeU3QqYJZznC19dJQkyQJRbYIU11DIJY8Rzlh/IyBvId0troncNFlmyczkdfoGFOmTAIIk7zHkeeitvcFiIEOT4JbC+SlUmAK1GwLRJ8tL5aWxI9ruqE3T/NKr0MF+5P52zKzOzFWRmizlt+GN7mi9Qfarn35d+bFNxiS4IzXqp2psoJGcFW7rGpVlLM1cyeDDRMuHEQ0leH/+88NPqsjtl7Co05nWyzwKnpDBbQJRM3mY3K4h+l+/kcKBPjeuIzD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CL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8247.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: k6GDDr3JGW0ywTSXkGleHK6GEBQdP67hU9YmQB/re/t5f7cboIHrSvEJafgjb6i7oPXOPP0nWSC0jn7UGnWZxNxZMRqrz3Q4jhL1x3T0SC/gxWOMOnliP099mj1ZpoLMwL2COTH5I9kOFJ/BGpkFwqiOFgcnXrwycDP/RJKqb1AmcccYQgwRXb8+32pWVAzZk7hAuBvUgP8EMnqq8sSTEMDu/2g0k3h9YGBrMlrZtXiDKoxg4k9vFRsFxNvMFtaIwigcps5drBXnxYM/eCJcAMPjFim/V3ULnz24GWhy8sZodvvh4xSGkg3KxTo4XeTNZoQprH8wajoI+OsCECvAaZMQb9mvuBbuEWCkjhxaDgf7SEv0hgIAYZemu7VIQeH7I8OwWg8J5u/C32L60s4j3OpQjR3yYVsqaj99s93dxWwDNplP/rsedoZitzpky52MtP4wQsMeZgSB4VcJvuroU7L2frY0FzmpWxpMEXEpxVQN3Vy0/heaPDEWPZ3IXHBt71J3+0bdEFyNjiKUteDNPlGDhTCItK/GlEoDPfTZXARBmqeUwTih9NlJpHgtZTmY8hCAqvk7sB6uuOYAbJMWLjoNRC9IRjDp1JsldB75J1R+3BLx03aHSTeLNL7jfiMQ/K6qq6ao3kiQLMfyaIqeFLuliHQRjIUXPXNUl5MAAmfHNPHOlZEXz322ZDrsc7VreAPLH5SdT5B4IdxgCp3TtUHLPpXAYSVtcz4QsNbKwT0o61gXnreZBkYVYurhqwg5YyDdw7/e0TjeHyAKVsfPFBlxiiBnx1MNNzwOar9JWYiMh+IWTpb27zwA5J/4P1kQspwM59YQImNyr5hsR8oqiiBbxzz3nFoGlgdzJGROO11iFTL+JxFgX6/MgLCFqd9EVyK93mo/31Neb9Q5idDAijOsqS0Bu7ixavCXjpKHaLx6BZbXyKYH73RP7YN+INqUIG96mmKYPtatRjk7hN+Fplsu8lbwnW0IUrcql2no8baX28WtUoOWo4y9+eIsj8jAh7SG8QumpHtHS0uHnmf4AM1Zo7e/0MpIIF/K/u3Y1Lpx3mkQ2wKrMvMdCqjmqBhS8bmI4NzTi3yySJTkGcaUN+Wy8DI8Yt2UmoML53CoxP6X5IReEeLlcSJM5eYq7N6coqs2IEmrG/PJChygSDwv0hQ1CISFfNJy09+XUX1hJCCMcA5jFLnLGi/q+BEsdfxk889W/92oIxrXL0SMF1ddeLOCD5cCuM3cocwmzfF3u/3zOKw5XpX2mpw4AkpgiedDf+BQyqIWj7fovyyqCWVr1qajGEOZ7WUI9GgPTkLpbizQCagmRokZbWW4O1cCvaccXaBSCija5+mBqow4uAksQG9s5k/GssbTz+/dAPHRSFbIlE9jT0UEfPKTCWZbwoRgZy3/MTk8STIVhgT+ZjiFDlGzEHk1c3RYSbnTsLyukhalYzA9KwUKojO7D9nASieyLfUIVyA+mUZMHbCUxz4nTp+AbpcZoGfSCgXgjrKQlJ6je6gALvL1hPn5+UuCDQh9yZZ/7AnJs0dUs3DxeluRR+S13VGaPYTfhntuYh/+OQ3OUWiosamhrrd2Gg6nCIje X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f2dcde96-4bc1-4918-ce45-08dca4e130a9 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8247.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2024 15:17:07.4409 (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: QbtfYtIVt1/SNIG/nwli1br/DMJgJ7iuRGnb3DcEaaxuGh6UsEwSoVUlLzApmVDkoelKONzN0NeBz3kfVF9lXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7785 From: Daniel Baluta According to Documentation/devicetree/bindings/dsp/fsl,dsp.yaml fsl,dsp-ctrl is a phandle to syscon block so we need to use correct function to retrieve it. Currently there is no SOF DSP DTS merged into mainline so there is no need to support the old way of retrieving the dsp control node. Fixes: 9ba23717b292 ("ASoC: SOF: imx8m: Implement DSP start") Signed-off-by: Daniel Baluta Reviewed-by: Iuliana Prodan --- sound/soc/sof/imx/imx8m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/imx/imx8m.c b/sound/soc/sof/imx/imx8m.c index 1c7019c3cbd38..cdd1e79ef9f6a 100644 --- a/sound/soc/sof/imx/imx8m.c +++ b/sound/soc/sof/imx/imx8m.c @@ -234,7 +234,7 @@ static int imx8m_probe(struct snd_sof_dev *sdev) /* set default mailbox offset for FW ready message */ sdev->dsp_box.offset = MBOX_OFFSET; - priv->regmap = syscon_regmap_lookup_by_compatible("fsl,dsp-ctrl"); + priv->regmap = syscon_regmap_lookup_by_phandle(np, "fsl,dsp-ctrl"); if (IS_ERR(priv->regmap)) { dev_err(sdev->dev, "cannot find dsp-ctrl registers"); ret = PTR_ERR(priv->regmap);