From patchwork Mon Jul 29 07:47:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13744502 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010055.outbound.protection.outlook.com [52.101.69.55]) (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 3D03A86AE3 for ; Mon, 29 Jul 2024 07:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722238706; cv=fail; b=H6m7X5L+jrUBbZDqMuJLFGtZwxysnXFk/otwcjvdds9nB0xgsvkoVgii094lPDI0/IHPwuZAjHIvht8/6wuEvrkMgG0LefFD5Y7bTaopXk46jPUf5Cs5il1ukT8s53APm7PkxihfRZx10p8k1db33D9lPZfqkumgOmYJuvI8QJc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722238706; c=relaxed/simple; bh=eJ5SNdVVoF0XtsgfprGl9ayTteShMbsE0ORhIk5sOzs=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=XEPJPqcfoaKlXh6Wyov/FQFSAud5vXmVq/yeOuXldJ1WhBASqMJGLYykJyksdyH+T+Q2xNcdvRo+lfQ6Q63JTkU8xI6NrYtH/UH8KBcy2h2l/YrzO1rGd/HxFE0Cxhwx19z8KRvnJ/pU06Nh/TpHJug/5aEDNtBtDVGu03+CFD0= 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=d3Hb5lr8; arc=fail smtp.client-ip=52.101.69.55 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="d3Hb5lr8" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WLhdc0kau7ruCYJ3h0gw9dg71WCw8S83t3NaBRXFxBHfDxFlybyRwMVzGRsIpcWxvhcrJ81Pw2EohoMCOP5+TTE+9QI/UTBjy6A9ohn818JHWYjpA7szBAzmTAt0V0bMUtWf+CAzHq6yD5QX7yvg7yVVJX9p+i8b5PagjuzKzMAb2Or/C8lRAWZzHh7TXqu4K34aUxiJOWidSE4JkMnSUoqD4QWEEYDzsGbiOL+bya9CDXAvBcioQHIKVj8AZzGenU+Xg4O3BuBLAvTQnADCQffGwy66ACgMz9+0xPfNKAS/NTjnNAUX6+gnMbsCWPXqc2UDZpLSzRMaM03iHSHIoQ== 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=mlWLNdaxiVLj+jo6z8oPvLsrRO9t1OFmgrzytngQcJ4=; b=rMyMx7VrbRwz/cy7FUjk3EwXWhIVlFTusFy/76w98515kAlkDeW8uWk425fotu0N2wObo/n1K+YxYUncXr2qHhj7W2FDxdZOnwcWjBd+17jIda/7RKfaRSf8Mg8l+P8RgUIg76PtujLqPKjBZXJ+WjaGJGa0C/ijQqiXOzXZYyona+58LRhPlKf+6mvn4JLya13pSbhEAn1zMldAih5D5d56rqsHgIQk52tlmJ+OSfXnVs0skmb63JwL7vrvTPE/knfiokJXotTlFvNBMmFgr1UVOm9idopKy7fMUKLbgoZWyhS91leD9M8MPmZUq0zvS6rLHsecekGNoBUKGmOuoQ== 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=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mlWLNdaxiVLj+jo6z8oPvLsrRO9t1OFmgrzytngQcJ4=; b=d3Hb5lr803im3xiQ3hFUO/jGfqByJChH1H0sEUoQ92ilm8shBuivDzFOkXyFCZYIAz/BfjvYhodriffVxIXY2GpTG/GInAeg3ruBES59tEt5c9hsqV1+HiOzQ5rqVkJAV387oXIXFYXqxD4W5sLRqLzfPZ4i+XB32wrRjj+S4fUOZyuoBcn/9nKMxJDYqlOnDOam2waCtx1cu+XckXn7JRsBw2+p2X/gXLCXKeAwUBYMeG2bsQWYRS+/ad0RyvDhXp67erfmvMtccMZzueVHdlOqcbB5Ff9OfZXQIlnUXKj8GO8trE7cAKsGhmz+vx9WBBt7TX3NS9YtSZyRTvkR+A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by DU0PR04MB9671.eurprd04.prod.outlook.com (2603:10a6:10:317::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Mon, 29 Jul 2024 07:38:19 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%4]) with mapi id 15.20.7784.020; Mon, 29 Jul 2024 07:38:19 +0000 From: "Peng Fan (OSS)" To: jassisinghbrar@gmail.com, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Peng Fan Subject: [PATCH] mailbox: imx: use device name in interrupt name Date: Mon, 29 Jul 2024 15:47:09 +0800 Message-Id: <20240729074709.2293935-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SI2PR02CA0041.apcprd02.prod.outlook.com (2603:1096:4:196::20) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|DU0PR04MB9671:EE_ X-MS-Office365-Filtering-Correlation-Id: 0bd3cf26-076e-439b-ec64-08dcafa16ab4 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|1800799024|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: lBh54U541K8DmEfR+vyDcHA3movXOGneiiugWE2hafQrefzyZHtK5EDHdXKkyCI5ISAY/x7QdKBeFyS+ct+hl4U/fPMNZSn5PH446zfu9qKYpXI50qvqXCrDxBlKr+JvZwUOkwrmNbCrjFNmY8XWN2uEbZejbeQA6fwAg1FLfgKcQRhqKQPzsLrTT6NdqB2K11YLEtqc1v8R3CNLmltI5/Ie/y/d9348Teetx8g5FWNkoZuIeFqA+whfwW5evox5uAOPoGSVT7dot4Tz7O8MppZ/2Ro0lkLozQnhEw/cSFn8vs9l/zGQjU7xdwszBOyxVQCAIUupDI6YeJBS1jhKX6kc6368tIor/ehYlAyxKW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X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NfEVLUM69pwDc5NEvA6a9TYXOLqd5tLi1Q096v3+6/FejJEE5Ee/vMp16qNHKxcZRrQpCd49WOVlFpl3NMdk2rJhsJR0CkZgOaRl84Ne7vM8FvGIkoHrBr5vFbFiSaF0ZMA/zMPWlxBGUw9yJhci4+OmLkBUNGtH0x3YH1NJEAu/CquO4lMRcO2XRkXRFuvBBEzbWV9Bct3GHTsqlq5ukE4Fu0Wq0YRGYufzOb/VKyD8b/j6NzvFxvCTBc2mEUb2ON+WaR+AFmeJkTrkZIi2mLkJ9hspd1pkASeuuwyu7wuTDrWcD/yMssdMoBq/ZWCMUutnFKIYAPkpk6MqMS+Qs5BRUJiIwMdMZpz8pTi6ewqdtOpWWNNDVsMkYg9tMowfvJSc0DEX+j2s04xW37K95DRQR2pZ6i0fIh/MdsVNh3C2bYze7rV4d8EdUhAz9Jcj27G3fADBkIcudPhr3bJEM/ae1s4BhIrdUDai4jAqP264PxfY7xGkz+Cn44QAN6U+KdAYdbWzEsnwFNr6WAmhysHwfisi30Hn7xg4Sw8bM1TBTgmTQl5KRdg1iXdDfo21JFpGwrK0Ff0aBwVKJtFy+iqtAJnWxi+Y7VuPuR7utfOPOx/aAzWMj355jtRv8M7Mwpea3KqDgJwrqWSTsrDKqVtHfzxOueT/XbnNLCGhuYQ9ZkPK/f1UpzX+w1toZ+N5lVUMsrgYgsPu0DB9oOJjYU9tNHtZeCv7bR3i+LcYcGb/p7i/ZD6cd1Q2GJfoz12xZGm/PjdpHaH8GGymcuQrCQfPT726U7ShCMGW1J7qqEBUJtfQEmTcTjYy2zVuPSrqc4OL8Pa06WRZ/aBHytaoq6il2ZftmtkwR2/WsVb0vMYat+RxKIjWf4fyMu/rsnWojwHBw2Lkn35OKiEtDNudFU7oD1ETXvY5PxKPzfdHtQGWNmCMVx2AWF8dTjfjeTN6G/S0mtsN6tMI/VvSmUot7UabWPJzMI0wL/260PUsmLdHkSktCjdrG7VeYshqhYc+nCQ9Zec3S+jtEf3I4Avi3NAC/NfN6TGS/EiRgqqsrBg5a0aGFYnEdOeNdHrY7H2SRXtAb+LEjxtr/3y9oBlBkW4sbf4EzoCWVQzBQdfui/oMrVLTZE9zZsJ4HzU2m9lWVgi+PUHgeYnlgd35VFhO3Os9VC4EGVSNgnUP3OQDJ614hx6/EAGdZuRhEhNRQzfb/yJ0ZhNYAnEbiRQBYrm/J4Y/ZEYgn3TWmc17NO00yjbDHKlXIKZDXnRhOJV2U0q/quISEcIA6LixZh31dNZay4PwYcJuI4rVg5khvguuK6Rl4Y70hzR0QyFwl4RKm7plmBRSAoRO6VkL6KGGKOOKG/uvGIlhLqPNG3wRyFJYNpFzrK+htrZ+p9EXAC0PMJwwdWR/elN//HiSdthT8PyUnHdpBxjDRp1GbzriIgO0lY+GiXTDMhboZ8ELgDqa1jNZNGn9bvV3+zS2hmNsD0k+x0Y49R7ntAyUtFPcys6jhityd8RdiOMHfq2f+nkZ+X8mceT1x7IkPXBVijU4bNXd8wYLBzFGYBxxn9toN1KRFY05K5XzdDEDWZ+gAf/irlfj X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0bd3cf26-076e-439b-ec64-08dcafa16ab4 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 07:38:19.8149 (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: VqrcqCVo5sZs9TD4PSKUXC1OgjMG5FGGFo9Y67wf2Yzz9jwzuhv4XKUOXA3xcp58Sobd7uh4cJtZo+w+dDCiqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9671 From: Peng Fan There are several MUs for different usage, SCMI MU, ELE MU, RemotePROC MU. Using "imx_mu_chan" in interrupt name would be hard to identify which MU triggers interrupt, so use device name to make it easy to know which MU triggers which interrupt. Signed-off-by: Peng Fan --- drivers/mailbox/imx-mailbox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index d17efb1dd0cb..f815dab3be50 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -30,7 +30,7 @@ #define IMX_MU_SCU_CHANS 6 /* TX0/RX0 */ #define IMX_MU_S4_CHANS 2 -#define IMX_MU_CHAN_NAME_SIZE 20 +#define IMX_MU_CHAN_NAME_SIZE 32 #define IMX_MU_V2_PAR_OFF 0x4 #define IMX_MU_V2_TR_MASK GENMASK(7, 0) @@ -782,7 +782,7 @@ static int imx_mu_init_generic(struct imx_mu_priv *priv) cp->chan = &priv->mbox_chans[i]; priv->mbox_chans[i].con_priv = cp; snprintf(cp->irq_desc, sizeof(cp->irq_desc), - "imx_mu_chan[%i-%i]", cp->type, cp->idx); + "%s[%i-%i]", dev_name(priv->dev), cp->type, cp->idx); } priv->mbox.num_chans = IMX_MU_CHANS; @@ -819,7 +819,7 @@ static int imx_mu_init_specific(struct imx_mu_priv *priv) cp->chan = &priv->mbox_chans[i]; priv->mbox_chans[i].con_priv = cp; snprintf(cp->irq_desc, sizeof(cp->irq_desc), - "imx_mu_chan[%i-%i]", cp->type, cp->idx); + "%s[%i-%i]", dev_name(priv->dev), cp->type, cp->idx); } priv->mbox.num_chans = num_chans;