From patchwork Thu Mar 7 07:44:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 13585142 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2071.outbound.protection.outlook.com [40.107.6.71]) (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 BF54663117; Thu, 7 Mar 2024 07:45:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709797516; cv=fail; b=lJNqkYMJMgua4qUo3rKh+mhpmaB5ZXHQSVvvN44mVkf8rFWJx/FavynCXE0qktxIvXYy5mrlv3m1c80QLhnvD5l2quKqPATkPpnruflRkcldWCmhqF6KBD4nLa9sHOE9JpJMBDtF9bgv/H8kfkZZYMGuR9mmjrDmfzUfs06Vd/s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709797516; c=relaxed/simple; bh=UdzpLy7t/M4jL8zY0CvNf54Yx25bprqtjbhvuOVzB7A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=QHxRsZbANODOJEFJ6l4dKYepBwKoMdEDyzdpLfomsh6Ed7tCOBZ/vbYAmAAyGE3age2JvlYp6wO6S+vEwUzyOygNnlevn92K3DVfWKZk2ssUxs/0cYaFiw+yorPUKnDdkcADXkK2JItCNMgUHGXcuX+4JZ6IPBJXyprscUsiGuc= 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=NtyTkus7; arc=fail smtp.client-ip=40.107.6.71 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="NtyTkus7" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DMfF68/AZjEs3zQT/IypkBL92taO5AHqB7VbaU4Z+Z29lfs2dXSdHUy1JQzcXoPZPH0BLP4Oqw7karJGJiPYlREY+3vclM/jJ2Jv+gJxL95V67/QUweTCAj5u36r5FEEBwm07TmpuJYFop4jEINc+4rXyXqSnec7yKgvlIpr8f5J9QDZGvnkhxxvLhueoqDuhL3oDY9zGlfZL2f8VqHHysvjEnO3hzpCNZw/0GHk+TOrFWIKrXY67OCZ4/2Lf6Xr0LK0BGnbqjhBomwVvd/G1Uyl/0vwmM/r5NoMv4xN7saZJb+jq9a7ALpex9pxU4T05S+bsSrI20IqE1asvpW64g== 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=vbsh0ootkphFdcrrwWuCS7B7NeWjjhCbN1sssmNZ460=; b=EYBS5AdrxceELNyPtffsz6X6ZNL2qCI3AlnInr0ZkcpOQT7W9Eu7iKKhL//hSKpLt+B42/kYCe1xGn1ByLTxS9gnSORWy54wZ8MNUK0R5zCz8LwthEwSZtBBkQBucthJsre7wGzK0DLLd1G1ve1ds8e5q4A8Vm3err2r67MKdxSEzpP5/RB63FPc3w83LsKMotSNZ6YbsOC3Y6efr5UB7iMUAspIhvMzZrJsHB5RUzsadgO5XtEoe3+5KRqp0ZGPCcNd9iuE2N7DU5LeOz7i3gB6jBDqns7+SK1G79cwMCEv2Vx8d2J/s0r1WjhpoQWUfE1oedCr294dmcvhQp61DA== 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=vbsh0ootkphFdcrrwWuCS7B7NeWjjhCbN1sssmNZ460=; b=NtyTkus7ajEI4UlnkzDCak+BMH5wMMMgKFsWHKZ7DdLE0Foxxlmxbx0o1GU6ZOpAj8YM2w5RUI/ejgE/MbOHallsJQp0rmlkWs3T8FCD+qaAXmmXCPA0DRDkBXSa73qkoSLdG4hmM6hBEBBYw+ozmVwtda2KaXmNC78SRmq7pas= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) by PA4PR04MB9464.eurprd04.prod.outlook.com (2603:10a6:102:2ac::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39; Thu, 7 Mar 2024 07:45:12 +0000 Received: from DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::4bee:acb0:401a:3a01]) by DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::4bee:acb0:401a:3a01%7]) with mapi id 15.20.7362.024; Thu, 7 Mar 2024 07:45:12 +0000 From: Chancel Liu 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, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Chancel Liu Subject: [PATCH v2 1/4] ASoC: fsl: imx_pcm_rpmsg: Register component with rpmsg channel name Date: Thu, 7 Mar 2024 16:44:34 +0900 Message-ID: <20240307074437.1472593-2-chancel.liu@nxp.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240307074437.1472593-1-chancel.liu@nxp.com> References: <20240307074437.1472593-1-chancel.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0039.apcprd02.prod.outlook.com (2603:1096:4:1f6::9) To DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) 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: DB9PR04MB9498:EE_|PA4PR04MB9464:EE_ X-MS-Office365-Filtering-Correlation-Id: 6987bb08-24fd-4219-9705-08dc3e7a8551 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5Qp0EF8+j2QdiSwvQ8CMamKp+Jsd3xu31+TzNoIb1r6uzPtpMlBsl2Jf2+ZLPzcSP+xUHtYY8Li+qHt6643S0GxHqHdpP0PzR+4aH8O/VdtydGEqAbeVVQn7VLBc4C+MR2KSIjzAy7Au830dYI7NR1AcB618qglgBGP7SfCqIddZt+L3UsEINQkWasebUEapCa8RCJfo08XrOyS8cmJPkqoH8Wosyhr+psINIhEFQW3hPjoWuAhyKk+splUoTxZ9zCECXmGbUONaNlRtcAau0j1n5XFKb3CfcIJnMBpuqPyIVQUmAbu3v7WQHcxypoBuhbj9wyYnmKTV0OCAWnGRJ9a5fzNrY+Xq/Wv41GHy9o0nsYQHfZK54zG32HGKkSBiw67w8YAoEoQJi0b1BNse2B+fcETh5jNgYbo8rog6c0i5iRg0l8ZJHeb4s6OvFh3a1DFAZU2lsYtg/fyoxQQAEEAaVpZrFKxgL3MfE7bH7775Vzy5U7Wfgv3wAUDHQvpVdxWUjHeikTOt7qg7w547qCBwKq66V+D1cwcwG/Dudb/qPPzRsBLKzElSxhSARxwwYVoBeGkKTqp+xnWVVQrQiA9ocIyCkWC6f7ihXIte3Oqg8OyZiQ4d/tF9aSFob3UUvbqP7iY8U7/lbrf0zPLmNq2MXBbqHZjrNtmwVWSZMNWAadm5HOE0kF2+NBPauMO1t3Kl2zKz7NpX+jxdzqa/Muurd3jup75hqDtNBl2YVCw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9498.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Q42qnkxxnTm5tET7tjx8dZJcXO17X0AkD8y4sYB0SGwFdsKKuNbWRMSvPnSrQxQczhVn/FWPwIFyzK03RRtgomf9BwlR+VGJqc+0xXxiBiv2Oy3Yh34XwJ7FTyIC1q2ZcsZcJq0hD56ySX+M44J+11Zfk32eT+Q7rRUycL3NBTI69BBqsziDwYqYybXxV0OmUILd4DE/DFLfNebazbc3spS5xCEWvgR3LL+r5RSj6Sn/7aiU6KJgrpSazlqxdPE7wvUexC5yBhkaLfl/mq8YCdmibWpsWoMH3PxhAxBW7O8uvxnBIvqDYr6jEBHyL75lBuQGH1bq3A5Lz47gIJnOGNu1PjGeK524XqwwUkN88yl3i6WC9Qw4U1jB369vtOiHBnB/voGj0vs7gnpuHK6BZblMm+l/cag5YhANvXAZRI9xs9CHNx4U1jrEz2jvNkDxxDtdlzDYx7adUKvan4TvVOAK63LZ+f44X5JhWt6S4BeHG4Gq/ayEA5z6F7NQ4HXlE/MKFkOH8PblLXYF/CTeIMvZW+yWpTYGpnGY7HKZwFrGEcEm9GWUq0+trF4K4AnnEL+9U5fBXmXFGpWydl+YZ3+EZPqRGFbMSh8JusiUTy7PpFrnVRvqlJ0S10WsnGmwf+xeUURa9ZJjiiA9AahmQ7/QciljubnXHGCL1o5SCfejOOCNs2+S2SjU0d3gupl063pY6Qnua+TnVVfnIz/L2E0qmH10IjyAD1/LrfTpxhbjEclfdVMzpNUwMzqNwd6z1z0wyD1wEaG3oLba4CHpdlQeW9m1cEkk7MEXTZJS1EIf2aYikRiDM3sTQy44VKKn3ixoInBtjYvpaOXDlIufwNOMYdHZG4vUxpCJqli5eVRJMhdW3E22kbej9fUoZ+KLjtnsQHP6zauHiYUWvrCGkE/rSDzuCNnyy00z+fThfH/XhlmEwoDs62koUQQvmyLCj6iCFdAeWJhm6ESIyQSbTSWQ6B13EnzEnkvsbNgo9ron6b8R8zEmGxYVYtpJt8DHoZSm3tURVOJ/GDYCXejs4T/UlTJQzYmvOLKkEld4l0BHfj0aiHelyDG1Xz3ivOQF7jS01uQTT9C4O7wBmPC71I0EOoSK/dEZgkLCOKo6rdeVhdZPyosIXW2TXSL7+QTiInvm5egB1yzL65NSuekek36kQeXNAbBY2A8HWxtJQoYWiO7v/eXRi2E7h7XPE7CuiA0KHnwebC4Y7OiFg0e1JJ1zLU2/1BhtW2fS41knzM2+jIyiMi5TIrGKUhzwLOOy+nToUpmpd4fH0A4gqA2KnKnaoPjdfNQzTwILrAMByBq0y112QTyrwmE7Mycwc8aiRI5XIyXTBMqL7BCeC57Gr+c2j8dsojr6orEsa0P5tWS283QrmSyMxy58XzUeGr414jwdZiSrxxDL5Fa/7Jc+uZEZoaoOVZUvCQ3pgmYveOPim7E4svG3VQNEZsq92Xt8d03hHwFVP1mtwna6R6GvwTOM10i3Yt0qb7ksYc+bVvPAsbmQR/35awFhsr8N0pkAVxvaBlwTDxk19KCym5l7lCKhiv8cJ7AX8VLWMkp9iV/2aeYDrrMpiElbzrN/VRvW X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6987bb08-24fd-4219-9705-08dc3e7a8551 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9498.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2024 07:45:12.4927 (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: M9NBlHHcxqS2KpfLDr4SXPcmMgxJyM3etlZqx4ex/Ff0rS6fCd8MahDq1jaBEkN2+787q6i244fawwiFVIGBEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9464 Machine driver uses rpmsg channel name to link this platform component. However if the component is re-registerd card will not find this new created component in snd_soc_try_rebind_card(). Explicitly register this component with rpmsg channel name so that card can always find this component. Signed-off-by: Chancel Liu --- sound/soc/fsl/imx-pcm-rpmsg.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c index fb9244c1e9c5..2b9e4bb5e0f7 100644 --- a/sound/soc/fsl/imx-pcm-rpmsg.c +++ b/sound/soc/fsl/imx-pcm-rpmsg.c @@ -732,9 +732,6 @@ static int imx_rpmsg_pcm_probe(struct platform_device *pdev) goto fail; } - /* platform component name is used by machine driver to link with */ - component->name = info->rpdev->id.name; - #ifdef CONFIG_DEBUG_FS component->debugfs_prefix = "rpmsg"; #endif @@ -822,9 +819,17 @@ static const struct dev_pm_ops imx_rpmsg_pcm_pm_ops = { imx_rpmsg_pcm_resume) }; +static const struct platform_device_id imx_rpmsg_pcm_id_table[] = { + { .name = "rpmsg-audio-channel" }, + { .name = "rpmsg-micfil-channel" }, + { } +}; +MODULE_DEVICE_TABLE(platform, imx_rpmsg_pcm_id_table); + static struct platform_driver imx_pcm_rpmsg_driver = { .probe = imx_rpmsg_pcm_probe, .remove_new = imx_rpmsg_pcm_remove, + .id_table = imx_rpmsg_pcm_id_table, .driver = { .name = IMX_PCM_DRV_NAME, .pm = &imx_rpmsg_pcm_pm_ops, From patchwork Thu Mar 7 07:44:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 13585143 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2073.outbound.protection.outlook.com [40.107.8.73]) (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 F38B263114; Thu, 7 Mar 2024 07:45:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.73 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709797522; cv=fail; b=b2FJLEo3wm9v0DNIQr1CZLcFmIto//o2Ij1rqzGkAPQBfAeTVP4jxIvYOZ3N0TatqFHq+Oh+0Q4xTCCTqLDdlsLhCN/aFA8Q2dFdLaRo0b51MdzsIOzEl0mu5ia+gulQyEd+bRuzRIgcS/MNJYucMvbCAeObLIP1RftaEhWZW4c= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709797522; c=relaxed/simple; bh=HBmrhhEuWxy3hoO5iNeDkh8W1qQNc1bOWF6AbhCMw/M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=PQRSC/4LpvxoPxnXIAdPvuWCIiJSzfCNF8M/3wIfVqhK0XvhDjgoLGhCLwxMaACiXT32QX3fXWMIvSYQvuDZ2gmKxXWYJfvZ3QgIIkLC94fRscckwVCZH4Bixjd1ARwggIKJnmOt70Nq00KJWibzohECwALKbXysulkHXypHNdw= 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=nH4oJzDk; arc=fail smtp.client-ip=40.107.8.73 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="nH4oJzDk" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IC7y57yTNMNZIoMcl4TSXCMbiIgveYByaslqHzJKeC7lmTde0Bwwa3IXqtX8Hoabo8A5CTBAJjNAELKqdXvqItCBf/JSGuT7C1DmNn6J2ZAy77Z0oIJaE3GTtGlWcoHRPevTcfBomx0uJOmt5aMh4UR6hNdH23D4geZQbKNuOrTOOCdp6PsRMAv4pfSTglCsKTPzC1LMLvJaWJRkU3gSv93E7NU/ij5+VOWbSQJXJL5kjnymWhB3qO+f+M8LBOF27mPTP9usT/mj/rsMu1GtfOW43ExZJrO4JO3tfhUouQv1cqo9wqBjupECrkAkhkcbe8N/6KiAY7gOhvZoSWrmlw== 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=usFJflqaAIQAVMktPObw+rK+eyJhCtZONibE7XKKYLg=; b=dVek6ALtzlld0XWeMQ5i6roPY84SbgFwMJLEStNMHWJZAQ4AcpRrN0AMTxyZQzKJPu/c+08rHn1xKDQl849E6/SlKL2jy0WSmZaPW5h4Gv6+4luMQPnOHbr6/tbFKlN9Y/L2xlKjL7xoOhYJP3hYFUxVjl+u0sKkWXHBGUV/Pr1s7IP/KvCGwkHRt9/tlC/4azp5o2owlfmPX/eman3lT0vflFvZvh90/q483s+2hQ9yq7FmG7EhcQDhKbj7aM3OXQeLCHQo9UqynAJbqfHOdgJYAwVHKoUydSfTFLeGZYuoQOv8o+chCzihvuD22wvzvORvjB6Qh1RTkb9/Z9gh2w== 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=usFJflqaAIQAVMktPObw+rK+eyJhCtZONibE7XKKYLg=; b=nH4oJzDkG2wAUgv7e65xJb7AAdWRhfHdQh1Lu93/iN87Qi4lPylBCP5V5IgXxaZenUL1AC5k7rB8kM1jXhZa+pdilv9EOtVwsFh295SZaHc+kWXmprLr7L451Y4OXpBTtkUeBXQkW0XLw6Rm/FemqUUulSxwK9cH3ZCHi+TVGN4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) by DB9PR04MB9789.eurprd04.prod.outlook.com (2603:10a6:10:4ed::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.26; Thu, 7 Mar 2024 07:45:17 +0000 Received: from DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::4bee:acb0:401a:3a01]) by DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::4bee:acb0:401a:3a01%7]) with mapi id 15.20.7362.024; Thu, 7 Mar 2024 07:45:17 +0000 From: Chancel Liu 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, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Chancel Liu Subject: [PATCH v2 2/4] ASoC: fsl: imx-audio-rpmsg: Register device with rpmsg channel name Date: Thu, 7 Mar 2024 16:44:35 +0900 Message-ID: <20240307074437.1472593-3-chancel.liu@nxp.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240307074437.1472593-1-chancel.liu@nxp.com> References: <20240307074437.1472593-1-chancel.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0039.apcprd02.prod.outlook.com (2603:1096:4:1f6::9) To DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) 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: DB9PR04MB9498:EE_|DB9PR04MB9789:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b7fa820-1e62-47af-fc6d-08dc3e7a8869 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hrb8bHveiWB1Ntmug/Lz/7CK+jlL2clC2XdXWWLjmejhvjivAJPQBB7KR18/K8ZJDUzFFZK7bTuAbe7bb/c8Xnw5g53/SDAXn2oyxJKGShUybR2bhv8woz9ljWeZyzTTzV4wPGi9/z1aUHMFnaT9NtXI24Kt06dStDGzyGqreA+H5cjFpKWog4LZ8Hst3CtGRHr7fw7qUsq3yAEjwHxexO24LhQGTCn24Lib9P8QIE/tcTsk4Lk1w+1D3wiZllZhd3LnWIQGPuPVfxLP90YTlKqlQCSIgptvfcLQVFhf8+wub+mbG3ukab/0YY3CzyB2LvuhFcqmEciRPQ9d2lyk1vl+P2uIfI1rhSOcr4OWYM4Jf4XPggICJWaVWRM/EORw8JGVf1yVMGusjXoVCEXjbLhmE771wq8zIRo7SpRBBiDF3jwvn/7F+OZGnAGjUTBT5YmstwpaLcX94p/hYUgPNECBP5rZbhdPeLBx8ht4nRqcB16rwqicYw1UcWGus5rUMmce4zuvgewJBe2EnF/OJL9tTmZ++RmKCu2AI/J9Pqv84VGQeoPYcHMl3eV01sgtTMUDNR54f09xfri6NXoBrLkWgS9LawdlOlHDbL89Zy7roiMGbxl84vnKo+6laBmnEKCF/2Fucm1ZcUQzw18Ojn0M2DTqusYwHiZFt4UzyqU3TuCUVdfPO7SlaOYLyxnQU8Rbcg1CLCHn6Swcc1EGHYdxqIcRZWSHjwWQugkiJuU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9498.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sz4lgKgC2gVz74rtM8+3ee1R5RkRvtisEaxJlVSZ4wunDSikLcJmzZMIWzk0TYVCEMj025QWJRGY0sMuQO8cDIEZMeikJ33H55hkHgYPrqYCnOFOxlsR3hX7TgYt7B0Bhmr1XXUnf3Vt2/ivTVROanAHmjFSDwWbt8dQa8d+N7KI8IcRBntVzK+sjL4cZ3d0aonjQOCR1XyuUyOM6YGbWpryHNwh27V2PQtBOdnvJ4DF88ryh78FXQwK9pQg1PkA0yRD4TzKfs0nW17LBxTKSxctll/5DCWMrtMt0FfLtWqObQ2F5xWiZvVyVofMKGm5tS00RchFkdyNtBcsTOYW5Wx0RVhdyp39PlGuWMAr+/EnGjw9p6gFJgjScDnbDWdkeri4oZFJsH5jESdSPiE/7zAtuYl0Sh2W5J+NbZ/bo65tZbe8f4d2+KIt68IU2hOTPhW+1ze4PVrEyVsTzaksv8THx4O5ZhpIn4zkhHqns2XmFDhQJZU5E4SFVLDbSQyhdJAZVzHHPPYB1dGeE+ubKIkjWp2TmpKpk2DXfQSePljNx7PzuJASPlIT0e7ysON+Me0IYYVIF5yDUBtO4ipz5Md/3jUAP7Q4JoY5YQDB8gHS8zQwosbOuwCMe5kIHD29smQlSojp433u+ngEM0cvF4pRj6dFSg8VFw4K0tOM6aBRDnqaADJqeeKTPBwwfnhlnaovKRptbcdqEjZyuAM/KwKqrTqEbTuaT3V0kpCsUtPcE8XPH8UcMYGhlROPb3xpHDd7z3eheC94TolXfATJ9ZlDEAHjOFgHtTOSMnjOOYhhTDS3S8cflrvbAEUPIMRP1WCye/g176byqGHxHSxy/jWpF+rr9EF8sKZh2xpcA7RgTCcBWqwS7TWIpR2+FM495JlaRuCzQWi1P8ioFD+VYDXAQQSYeSvvNfw1GHzKLHjT1qx0tSNdzySXeKemusvEuDlSrrxacAPr3TGnjXg2QYCa04nCAlSGPlcdXjzbPPEgz7qu/fSFKJxipzNGBKVHSRo/xrcITcZQvq+pm8qMcXnyIsr0vxHKgso2UEUTmIHwM42xo5A6hscOv9j02xjFM7GQcSiEVDgC3mUlyOBUZLgxZ0L9XXqZT5aQXm3I+1Ypvv9pb3bsaP9qWlYhLeschEVsplOHZ2DHq/KVKrWIe8ZDXp7PEoAnyUieJzGuSeQE9I3O5egk4YRXyPV0UxIjTOyqS8kpJj5VaQPtpOLaf/RJIG57f2dBJI0rNxmdompbCLsgl+mSs/TK0vAFVgkxUy5VvkECG8dhU3w651S8t2iE3KpH9aAak1FSAQHj7FxQfFZpT1h/JlpIdGQIxdfYEPAJl0QII1sLX7RnHa4qyDKrLB7ti6Rtg+wNblCjUkzzyfFUG1oR8cpd0xDPY6cJqRpCQB4nxOGYXUy4+c8PcswG5wA3KOVyeLA5j2urUbLQyUGIIBZfIoDtDxRjzYzqHIwYJKrjlt9+0eS8D3HxYgSpz4nfhbUdgOuRsFnVr7aNjGQ/A5thpECh6Az544rqez8ufDRnylj3lXp0/Ilxw0AE1TZNCI357X8nj6QBJgIM1aLaG9Ywaw5hLFxL+S41 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b7fa820-1e62-47af-fc6d-08dc3e7a8869 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9498.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2024 07:45:17.8277 (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: RqAa2oZOgLs617BIdT8HhOTitbvwB+K3K8UXJ6TT4cpy5Kv3u+oTmOMKpq3yfEjbpgbXaf2IvYeCjyoGY1Ij0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9789 This rpmsg driver registers device for ASoC platform driver. To align with platform driver use rpmsg channel name to create device. Signed-off-by: Chancel Liu --- sound/soc/fsl/imx-audio-rpmsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/imx-audio-rpmsg.c b/sound/soc/fsl/imx-audio-rpmsg.c index 289e47c03d40..40820d5ad92d 100644 --- a/sound/soc/fsl/imx-audio-rpmsg.c +++ b/sound/soc/fsl/imx-audio-rpmsg.c @@ -87,8 +87,8 @@ static int imx_audio_rpmsg_probe(struct rpmsg_device *rpdev) /* Register platform driver for rpmsg routine */ data->rpmsg_pdev = platform_device_register_data(&rpdev->dev, - IMX_PCM_DRV_NAME, - PLATFORM_DEVID_AUTO, + rpdev->id.name, + PLATFORM_DEVID_NONE, NULL, 0); if (IS_ERR(data->rpmsg_pdev)) { dev_err(&rpdev->dev, "failed to register rpmsg platform.\n"); From patchwork Thu Mar 7 07:44:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 13585144 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2045.outbound.protection.outlook.com [40.107.8.45]) (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 0522A63410; Thu, 7 Mar 2024 07:45:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709797527; cv=fail; b=OIX3s/Bqg6+NBAiPgwwsYIl+ZMdPG1N7uP/pe+h0SpPd0CmdZmMk6BeAFHwtxmMOuA1idU/Zq4hM0YyZHPEd3DsxmZKzuJV5AgYyT9tRPA3rhxLOo4rOCFmvrhNC3CLiLiiJAOfL0t9HQL7gl9ReiTzxoaoAj61R2ZEmS8/r460= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709797527; c=relaxed/simple; bh=XKAcyC2MunkBPcbvaKKpNKcBV78NQTVI+nuF3EN6IwM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=UGHCfm+ArcYWCdhPMJggWfAlR0BUjdbJDoa3/lYzO1zHt2xeygyNde/Mf/YHqVSgMyxW60LthpzQCt8T3lmNh4OjUa3S4A/UCryeqspY3DflT+MuJXiZIObGh1BmPOsIsJNBnLBMvo2G8WKkfqSL5ghW1DhCp+IsWxe4OfJR7xg= 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=jfkklg15; arc=fail smtp.client-ip=40.107.8.45 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="jfkklg15" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cqjjAK1JBSA0GAaEYjpx+YxzOW62YpnGVJBNDn6Ohf+m7bfqgYmUzP441EyBSI43G9PM/y/bfEbSLkGWqPxMcROwayJ31Ev8I9C0VvBYU/vM7t4wIB03zzKsnTKAaD+uO1Qw0LS4wN3eWp/DOto7q7UtZba1a/YOldfXjuz9qdPYsHlVOxcZXvHATOVxUFpAepuibiD1puoqZ7NhPPbk+gmIN4aSNBrTG0EzdZcO0Sk4GwVEipn87X368kMTxDGkP8HsD4AOKGl9nCq8FEAWKNyl5HsXV3SJsLchhekTuqwKgzHY1VnxearewXv4l0SNeCwijNufqPowGCYNdMMNFg== 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=aZiJj3fsB+O1feVfob5RoaOIMXTf33VgcwdmeMj53/8=; b=X++ePnxiuHebSPEuB4Wkm/DBdDDQAXO3vRDtmispgZsl1m1r/qXTbsaaVkX8R4ZmI1panUxSKv6yD9jd5fsNWoj+dkJ87iKK80ot7AFoWnbZVzjzG2Oa4l5PNSc9Zh281vhmSiVfvNVQyTPcEGFxH5u4miK4OpFWxbCr/cjpPzzja/wcfMe1MISOMKxhdKm+z1sB2S9G+2kI1sNBDN8T4eM0ig1R1YoDLQIY1H/e+8LOp3ZKnlN3bYThZb45OcyKRsbjA4eVsSkZNoijPeqMHDBtqNuvb7knBmgPl6yPwc6oILr+VgKTObOeJvUin937yt8i+foS1HZy55hybBF9vg== 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=aZiJj3fsB+O1feVfob5RoaOIMXTf33VgcwdmeMj53/8=; b=jfkklg15+TlqaM5hQbjowyYLNWus1nNjq1oC0ZrI06IuZYl7CVyVv5SRO8iFt+4/gYpWx5xd1vHi2WLmqYmp47FezU/qUDWBtrv0+cPlqSTnBymG2hUg9EFh0MBktRxqYrTS9ZinWNA65T+AqS4gUhvbNMwsnEChHNZSSBHioYc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) by DB9PR04MB9789.eurprd04.prod.outlook.com (2603:10a6:10:4ed::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.26; Thu, 7 Mar 2024 07:45:23 +0000 Received: from DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::4bee:acb0:401a:3a01]) by DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::4bee:acb0:401a:3a01%7]) with mapi id 15.20.7362.024; Thu, 7 Mar 2024 07:45:23 +0000 From: Chancel Liu 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, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Chancel Liu Subject: [PATCH v2 3/4] ASoC: fsl: Let imx-audio-rpmsg register platform device for card Date: Thu, 7 Mar 2024 16:44:36 +0900 Message-ID: <20240307074437.1472593-4-chancel.liu@nxp.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240307074437.1472593-1-chancel.liu@nxp.com> References: <20240307074437.1472593-1-chancel.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0039.apcprd02.prod.outlook.com (2603:1096:4:1f6::9) To DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) 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: DB9PR04MB9498:EE_|DB9PR04MB9789:EE_ X-MS-Office365-Filtering-Correlation-Id: f0ecbf9d-514e-493d-6ecb-08dc3e7a8b97 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pWcnNUqzcq4SnESXhzNeFuVqofqrp/GZR+YML/h8LwGo6qHbxzu6JA9AKRZ4S/Irt09E3X/Eu//VitWVo++AcxB6F4SJJ7UZ39ldVommbGgxU0ASFJU6xaVzAHc0o0tpFQM3v+ptbD5hZk2597H9Csm4evkYR62gNiMjwLHHKYlrde8MmaWL/CGzq0lrFj6phy7rYx2BDzjIWjDuOOVBGxUU6DuTGmaSX68aEKsdCTDiDuykT4K7mU4AAI0RlQ17IMsKSd41DEoI2V66wTdjajFEufD614cBrCj0Y16YV6oMe4K8Jjo4r09ymc1nyuK+6G8QV/qwZ3gHjJVNPv3sZmsRcAey9hVr6+KoKdW915D85lU5oFUTCXehjv6s4TGsLk2C4uMhYyomJHnJAI1JxiLatvyl3daDNCHymAsaHljb2SxbL7+MWrQIpMLCxuEQp+oRFykLLmLc628cx6yML0Wdydg75FOl8K7hhrIdc0IiPwIZGka6H2NEsbxyJkPqOg9bAN3TbT/okBAiNANSx5z8TJH7SgywHNSVGzHajdCxk7N5wLfkPW9bIPQFeuPfDExNGH4fheeIc06Dlfpc4QcVATIYHSUaDY1YeN7ofYKyQ1DC9vvhdSE2RWkXWSbz3G5UPEGNbH7w15R/Drhlq4PjqRK7mynsko6AwuhE/PEjQLFvg8LBnSyDbXZSYRhHnw+3NzenA304YqmjUmC4DSULDDnw3mWaRywyyRXh9f0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9498.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vQOxgWPFUzUHuFlnq+UbZyZrqCCLNVpXQbaYw22ppExgN1T+JEII0dlEr96lVF0Q383A2I8e+E7fb+hKbiVaPr8B3ZgOR2eutO4LQ1LZNlnk4BybrPvkj7yCyqwc5RSt5Ew6YLiO14v0dC7+X0Ee/vhH+trWk4aqfLRn3DiY7unkLJPnMT7GAglN+a8FgCX4xVxw/SMSqb77nhB0nhh0LBGMGKKZPJgSRJWxMi2x1su07tpWfmQrXMglw6SmDftRlYjZAvjYLagi9DHYwn3la5kxynivzfhaUGYDhVY0izWmNI1laIYvlprSVmoROLPXOC0UYXArTw18qvoQoJyZY+pz07/wv00W2PvYV+fTXw10l+zB+JElVggs8vRPjjgz59BaJx7t0nE/R4wHWtarxeVpUIfpjM/a9APMkx4FWGoZLikRapY6ievUGkG1/kNAJOMIO+UCvl/RL/NKxWsZn6ij3SzJ1JiGMMxZSg8emGTjuwHFoQQVNLkaroidprVuYeWbyaosdTJb79rmbA7VY0SdwZVTV4kNSnSkFTHB1yb5qKUhKqSZi+y9QQ9Ox8hZ+tegg+sMb8zz4kK55UXFJji/HzDG7vnkq5y3QZ3ENoQa6Y5/XtJZqLYZ4n/fRvfZa30APicY1fnzY/WqwPxyIg2AamZ+UPUpdVZ1AMbGcMgEKZuqP008vUxhtfxwTHWkSVTAuQk1JzQakn9ZZaKWo8SxzAULC0amwUL+iljaoB5A/1kaax7snbx/ctU1YM82106qVs072gxjj9zmg7YR7y0cOuMr++oZqWMP8KWRT636fJV0q4XJzmscAnx91zNyV5yDkdf3VY9wQT3wqyN3+qmN+Ib5ysq6NqmSeST6NtYuehTmGfIpVy2OUeVT7vFtoATMwLjG0pXKOU34VZh70Nz+RJSNbBhre1lx4Mn6lMyLc0Uk8SQ4mAFUZNZeOJOgjGRA07m2c4rM2k+a+wR+v32y5flAxbxswC1U0w1xVcGq3QG6zlpWgu8u1tpgghPw91jy4lUWN0KIa99HEAn2q60tJXGjduPTOsYLkshu0Zii6OIxlynE8xoyT7Rh0iUJjMkngWOB6J4iF5wn8a9nE0wCoast1KrKMgSlG9fHmmPx12dUqe2t60uGHqC8UCAvfIy/HMRtutfUO2dl2VN2j6N4v1ozK1CvOdwU0oXSfZdgEN+/QiMeHQwDcbkChRyN2t0S5QA9XFJnEi2ocgBoalLUTLGxukRHCyddS2TcBGFmMWq3nt9Qh0TkLnTfGbiyFLSxQzS00gmJWqDA0wHEYYnIrMex4iBJJDDJpQ7hz+NHdgt3SDly2kUmLjoFWn1XvMcYtWS+OtEfkrdeQDbYnIbz1mWKni0EFi9+04TgsXGl5Yh/WQIFKHpdmnylxMUPG4e3qfAMmMNq3kc6irCoXLbz3cAaKTvRL3n8al4kdQg/vpY1XeuQwcGO8NMPEJve50IWuElj0m8R7j1y9bY5rA9swNmjmnw4TJzqPJztYfa4kJGXAAG4PNxWkD9D9qwLdxVss+FIa/BZG5Mko2vSKFrjkQtuiMUohYKjCt6YSg6ApP+zuQBOAO91JM4uC5Oj X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0ecbf9d-514e-493d-6ecb-08dc3e7a8b97 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9498.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2024 07:45:23.0398 (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: yGMT21PAjoFlZ4KvMAYDcVCsFGFKBpS1kxem+oDqsLZQJdA1U2aP1kLjxqcpJ3c025j9wRjHG53WIWNHPGS8XQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9789 Let imx-audio-rpmsg register platform device for card. So that card register and unregister can be controlled by rpmsg driver's register and unregister. Signed-off-by: Chancel Liu --- sound/soc/fsl/fsl_rpmsg.c | 11 ----------- sound/soc/fsl/imx-audio-rpmsg.c | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/sound/soc/fsl/fsl_rpmsg.c b/sound/soc/fsl/fsl_rpmsg.c index 00852f174a69..53bd517e59d6 100644 --- a/sound/soc/fsl/fsl_rpmsg.c +++ b/sound/soc/fsl/fsl_rpmsg.c @@ -240,17 +240,6 @@ static int fsl_rpmsg_probe(struct platform_device *pdev) if (ret) goto err_pm_disable; - rpmsg->card_pdev = platform_device_register_data(&pdev->dev, - "imx-audio-rpmsg", - PLATFORM_DEVID_AUTO, - NULL, - 0); - if (IS_ERR(rpmsg->card_pdev)) { - dev_err(&pdev->dev, "failed to register rpmsg card\n"); - ret = PTR_ERR(rpmsg->card_pdev); - goto err_pm_disable; - } - return 0; err_pm_disable: diff --git a/sound/soc/fsl/imx-audio-rpmsg.c b/sound/soc/fsl/imx-audio-rpmsg.c index 40820d5ad92d..60f27b0a2530 100644 --- a/sound/soc/fsl/imx-audio-rpmsg.c +++ b/sound/soc/fsl/imx-audio-rpmsg.c @@ -12,6 +12,7 @@ */ struct imx_audio_rpmsg { struct platform_device *rpmsg_pdev; + struct platform_device *card_pdev; }; static int imx_audio_rpmsg_cb(struct rpmsg_device *rpdev, void *data, int len, @@ -95,6 +96,16 @@ static int imx_audio_rpmsg_probe(struct rpmsg_device *rpdev) ret = PTR_ERR(data->rpmsg_pdev); } + data->card_pdev = platform_device_register_data(&rpdev->dev, + "imx-audio-rpmsg", + PLATFORM_DEVID_AUTO, + rpdev->id.name, + strlen(rpdev->id.name)); + if (IS_ERR(data->card_pdev)) { + dev_err(&rpdev->dev, "failed to register rpmsg card.\n"); + ret = PTR_ERR(data->card_pdev); + } + return ret; } @@ -105,6 +116,9 @@ static void imx_audio_rpmsg_remove(struct rpmsg_device *rpdev) if (data->rpmsg_pdev) platform_device_unregister(data->rpmsg_pdev); + if (data->card_pdev) + platform_device_unregister(data->card_pdev); + dev_info(&rpdev->dev, "audio rpmsg driver is removed\n"); } @@ -113,6 +127,7 @@ static struct rpmsg_device_id imx_audio_rpmsg_id_table[] = { { .name = "rpmsg-micfil-channel" }, { }, }; +MODULE_DEVICE_TABLE(rpmsg, imx_audio_rpmsg_id_table); static struct rpmsg_driver imx_audio_rpmsg_driver = { .drv.name = "imx_audio_rpmsg", @@ -126,5 +141,5 @@ module_rpmsg_driver(imx_audio_rpmsg_driver); MODULE_DESCRIPTION("Freescale SoC Audio RPMSG interface"); MODULE_AUTHOR("Shengjiu Wang "); -MODULE_ALIAS("platform:imx_audio_rpmsg"); +MODULE_ALIAS("rpmsg:imx_audio_rpmsg"); MODULE_LICENSE("GPL v2"); From patchwork Thu Mar 7 07:44:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 13585145 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2042.outbound.protection.outlook.com [40.107.20.42]) (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 CCE1E634E9; Thu, 7 Mar 2024 07:45:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709797532; cv=fail; b=ZKIR4Lv8QvvW2klTtTx1RC95h5FGQ/6J77sgQKykJSPNhrGjNh4Bk52JLc3BX8E2mAt6XEy4qJfcrhi4I8i+p2BhPwKIsFKUM16n+BGccv5gh7u7exNUqD0DCsYhwLM81gnotNaC6QutMASLR0g+5dvwkgLrwvm+QZumx848juw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709797532; c=relaxed/simple; bh=ABObIBVV0pm33eBjssCezbbuagIOtvDFTS+Is3Z2YtU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=BAAi/pTqLUeq9xn0u1JmXEjb47Q/SSINVchNseEWEjoS4JdDOJwLc6qepGr4qBX3uyfBnAXpXEcT+BB6gzpmMG/UJNVuo0tR677131DeY9DHjxHghLkXKwtCqhV823GsVEMxWmYKs7slFGnLa7E33XJE3IboCEtnyNiYtl/P9nU= 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=ZJmkDjme; arc=fail smtp.client-ip=40.107.20.42 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="ZJmkDjme" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a2ONkWDtUtO/9GFh4F+WcGsREP+3MeR/uJ47fJ/pyZFYH7la3nFsAXsQOyBGthNtS3qLwrAQ2YEVVZGrFddQiocoP2wA0FexjUgOPeeOw9czSPPukTNxFVzJujvU+LxILjrGVQmiLTGdid/ttULTGvSXQnnIKAh1jRgFE9szOiC5Q0B2n3qzvE2PvHd9qWhvw0MdZJxO6yeUE/Psf1IkYF5OBm1XroOWk7FGGqMbD2jh6TfqDiCXS5SaikVBa1jWoxAPAVrXmrDuzPNT+oqnbuJlYbCmF8nMV7tZduaFJCz2V8hPu4m2vxrr8wo1cDn6W04nNe23PLmi1dw6x97S7Q== 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=C0HxxwqbTUQyhMeXXnXFbjpyx5CV83NN+sqlk2mdOZE=; b=e5Zjm8sNyBkmxArtJr9HmxzMJYkxK3D83gLGPKWrOKMMlhLFa+fyAbf3g/U1ZTtNs7xIEgYFjTXy0RTiSNYseCLXqAah/ncwYlQ4pMfwhYIunvaN4+lWO1bD5kDnr/LvVTaLVd/U9fZ4Myn5DrnKgsf0jse1l6wHP3huHFxoX7KHpBir1v4fesFsHH5H/odZKD6RUmfQf7KQN0FH6lBuQGtAKfjh2O7WrfhdMQoxrCnYDrXseUzya2njkmpPadfmalAVeXZIdJcbMxzTZciDoyZvc9zXyB0RTezJVFK40sqESBGMwF8zjz8fhE+KRx8OPGolrLB26Ix53Li8Y+j5xQ== 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=C0HxxwqbTUQyhMeXXnXFbjpyx5CV83NN+sqlk2mdOZE=; b=ZJmkDjmefw/Et47PZ+STJPHEMnpqgjRvb41VGaYlmOK/QPkTAwNnn2qyJrM73JSd0cuO/M1wYXVP+jIk9+jTp9kjCEhQgV0aof+IsKnETEWQ+S6v1yzCY4C3TF40FiXnFbvHvYKYxxMPE9tNQQYFdhjiYjyLlZw+RxHjiRkiJKw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) by DB9PR04MB9789.eurprd04.prod.outlook.com (2603:10a6:10:4ed::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.26; Thu, 7 Mar 2024 07:45:28 +0000 Received: from DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::4bee:acb0:401a:3a01]) by DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::4bee:acb0:401a:3a01%7]) with mapi id 15.20.7362.024; Thu, 7 Mar 2024 07:45:28 +0000 From: Chancel Liu 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, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Chancel Liu Subject: [PATCH v2 4/4] ASoC: fsl: imx-rpmsg: Update to correct DT node Date: Thu, 7 Mar 2024 16:44:37 +0900 Message-ID: <20240307074437.1472593-5-chancel.liu@nxp.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240307074437.1472593-1-chancel.liu@nxp.com> References: <20240307074437.1472593-1-chancel.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0039.apcprd02.prod.outlook.com (2603:1096:4:1f6::9) To DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) 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: DB9PR04MB9498:EE_|DB9PR04MB9789:EE_ X-MS-Office365-Filtering-Correlation-Id: 59b5b6e1-8187-4330-db11-08dc3e7a8eb2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: beI6JMLbyc9lm1JeMJwmAt4ZnB6s/pGrB9MmYvxQUU4vQuyaj1KsqdoZLCuKF7H0/u4WYbt9Qojb00/KmEedGxH8jXpcgVFhCqJt094kYi8yC5NC4oNvz0/j728aVTCF+ybTeClWHEhH+VJeeGMAGF8jdAMgTxLXRGv7QPMt0HPXxUoRfQ41+It/GhoeLqr555X2a4aabBHyBaPqYI7wSPhoNBT3VK93sDjp5NPFxPk0kIelAJjGht/m0IW6zhPbblA2tAz9iJVX/4n8CZf/HaeoilQyz9tpsJDpo8k29Br3vvnd/ofiZOj+47kBigMS9gc0iXXaWR1Plo7KAC++fd1ZI3v17VeSxEOQClw9VFiS72Sv7kRb2hXEjpvi6/LtP7RKhksEG4Ij7GnjfMFOy20tOjA10HklS4HIC/uP9768HQ0o/xhaOEiMIq79WBokmtIIpz2cdAHu4YLu+UL/JXaDUZY7ETbiMka1FTrLio1Kbc3BNTOkNelrA5GZdher4R25CeVGbCre5mP+Kc4u+bwbKcJe3cDGAhDjASNribPI4hMC61EAefMTAIVJkZy66Qs8ofp00ppNolPIV9aTBjBFAOAaZDNcWIGhsG9wBYYpStmRn28AGVwGbLlRUH6qE2kyIv6D+rJnMHgaDEVIdWrXxEIT2y/tWwvMWooZaYcMnVlSgrkl3Wvs2h8qm7dYpVN1CnpuynGt+rykgjct8c0T0T6wua8L8IVnxAM3nTU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9498.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /PNPw7YXhHsmpL3EBOkeotYV2SmpkF6210/1+3lgWVGpjXg7E1ZDlOL88SON1YRNEVTBHogMzIg8DcFWjuG1JrolFOOR08m266jCBAztZ+tXYStUoJXmBbIEzfe9v1PLFxIMO11a0mChKGPmzf0x0JFpWbqkFm2PAVQyAFSroETYBo5zip5FGSgP2iDv8efGMkFo1Vlzye97Fatm4fhWIKcHjRMfdXhf+pqVY6mk08wr9pv40jSn3RiOAxB/OwFMx8/nA9bzWz2rTSs/i+Z3NVovLeeRinFU8/5AzMgbo/t3+afMCRiczY4ORZH92D/vKuUL/hyEQI2aF3sK2id9Iqp16/c4vjN5/ZkXimYdeNnVaN23w6AO1GaVPAP3g5kaS5p+pS19mltRuDT0hELANzJTdnI6N/2i4LSs1OfUrn1tPJheFWJ3ggtVwlk87ftwsesFc2DPo4VdRzWpuNnFm5qw/OxKJce/N8V6DQGvV5I/Fc6sU+zfBN/+9z8nkH7e1zT9hBDax4pgCye5smG5bHBdiEfQsDm1xvCAQJuQEpy6woL+Xow6hZsew1EQ8OjwxJZDNFrknsXG2dodvljqXcCCn2AJPEcvVSo6qNG6Je/Dcv4aseQnGQ+ZaDpC5dv6howlQkaxgwJhInMN25ktPwlekdwAX5ZurtLDEYOxhmRz1ov6+xW3/FnEMUkCFTLh12wzGCRBPtjOeCrFI0OWRVBedmRYvY89ybj5cCqMj8G5pidCSwkv5VI2+XmSAQ/F7MTNqHx6xNjeY7cLqqd1aFLtdpKoPuk05e0qaQAKzS89+vCa4xhpY+p3FcFFOAiMkvuSYP9jXDkveUAtYNNm3/3ZJj3h9dxc6RwtCwzhfm7vNC0mvZNrPkhnmADlVTO13pWFbUMae8mecRcoc4OBzB1Qrc9acy6+J6n3DhAvPWc6Qn1y1114nZ1hO305SGPsZvNfUkjYW7pmHOw8bBvuaBsXO8QrMhF/GrdVsAI3DXrwNgxQNyJLxK/aYsrMz4Y6KUU32AT2kpDCjhIrB574i74py5ty/3IfhwOu8Vij94+8RQgNtTF7EDYjaDUcrUslowBWi07OHihQVEXayEt178fXmjLHcKTa1EJ7RSa34Fv5HNuJ6b0OaL6HqtFQWHa0mnmPurmeqz1mQOfKEqWJZHWJAkgpbf5D2YPUmnfKCgzyI8XKTfBp0gSqZ41GWeRStfpq5fJnPeCcgFye2x8cGFlU7mw6LXB28RXQpXkqPWKKLNRhlDRaWh3j/CO+1ezXYzcJgfOvikYd6HU4kIE4qCQ2iq8POtJPqNDsW6Ei2ZH6YMafHoCcYYc17xBBzbr6Oh7g5GFIcnZb2s8fHNg9uEV/NdB/LOx7AfIZx1SIFdS7CN3udQEJdo2WkM5u03xmwzIuHoCBi6kwJVqsgVzosQ/2wFeL136WLrFnOreWh07ScyxpZ+exzTcL3lJRatpEfH0a/a0fr1co7fSxX3A5XziDWRTj1Rp5uzPPrUhOFP10N1jtivdeC9HEEbGDfnes+gC7No2QFFPqdihQg4GN90gnOzoJWgMlIUkFh0QoMjKstuD780+4m/XEbbKuQuTl X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 59b5b6e1-8187-4330-db11-08dc3e7a8eb2 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9498.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2024 07:45:28.2863 (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: t1xhy9todpSmwZEpcfCQtQOZ/++6/kq2zcFLeJEdznIFTgoiO1cOF38lIS+FQOQzIjtRRMScWHi/5D6Tj5wNAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9789 Platform device for card to probe is registered in imx-audio-rpmsg. According to this change DT node of ASoC CPU DAI device is updated. Signed-off-by: Chancel Liu --- sound/soc/fsl/imx-rpmsg.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/imx-rpmsg.c b/sound/soc/fsl/imx-rpmsg.c index e5bd63dab10c..2686125b3043 100644 --- a/sound/soc/fsl/imx-rpmsg.c +++ b/sound/soc/fsl/imx-rpmsg.c @@ -108,10 +108,9 @@ static int imx_rpmsg_late_probe(struct snd_soc_card *card) static int imx_rpmsg_probe(struct platform_device *pdev) { struct snd_soc_dai_link_component *dlc; - struct device *dev = pdev->dev.parent; /* rpmsg_pdev is the platform device for the rpmsg node that probed us */ - struct platform_device *rpmsg_pdev = to_platform_device(dev); - struct device_node *np = rpmsg_pdev->dev.of_node; + struct platform_device *rpmsg_pdev = NULL; + struct device_node *np = NULL; struct of_phandle_args args; const char *platform_name; struct imx_rpmsg *data; @@ -127,6 +126,22 @@ static int imx_rpmsg_probe(struct platform_device *pdev) goto fail; } + if (!strcmp(pdev->dev.platform_data, "rpmsg-micfil-channel")) + np = of_find_node_by_name(NULL, "rpmsg_micfil"); + else + np = of_find_node_by_name(NULL, "rpmsg_audio"); + if (!np) { + dev_err(&pdev->dev, "failed to parse node\n"); + ret = -EINVAL; + goto fail; + } + rpmsg_pdev = of_find_device_by_node(np); + if (!rpmsg_pdev) { + dev_err(&pdev->dev, "failed to parse platform device\n"); + ret = -EINVAL; + goto fail; + } + ret = of_reserved_mem_device_init_by_idx(&pdev->dev, np, 0); if (ret) dev_warn(&pdev->dev, "no reserved DMA memory\n");