From nobody Sun Dec 14 11:34:34 2025 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (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 E101231158C; Fri, 17 Oct 2025 06:50:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760683848; cv=none; b=jxjJiQ355bVDDKODqqKF31kO4N5CTB7UeOcSRyhP5D4ajUwy03v4q08sUjRKZN9SQLAy8dbZzTlR8VTP0xPQJG4tluoFF4Bt/9WCv2ZI8K4Mtpupw7+NSTcL14WxLgruFdsmgbaZ9VxBZ9S1KmqxV//e786laIZ1ir8hrkF0254= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760683848; c=relaxed/simple; bh=iWyfD9a767KCrv1+cQVJw9FUADTAuvaGY7XHfO1Sdug=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UCc1fARVt5t+eATacIU7kaD6ww+XuYoNfkJydsH/5UgVFTQrJ6kSyHHV6F9UG23MY0aE+yebdYS3pnTA7FhidN6RPw7uo4O6AVmms0Cm1foBDo3eMDsnkMObWGcKyoDSHFBK6F2e0Jr/+RrQJMAzbwiYZ0dJsF5iHSydUq43hfw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=oe6oaXZU; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="oe6oaXZU" X-UUID: 946d93e8ab2511f0b33aeb1e7f16c2b6-20251017 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=vyjHIshOwF3QP9j3tT6Kjm7WCoOd6J77B7Bsl61p83I=; b=oe6oaXZUjXjMRF0UmlZVaYG75NfZcUBZGW9yEgWK2AW+mw7KUmVtE28LYqH282gJ3IpBiANENcacJUwwaNvak00VkqFzVgcV6YL629+sZlhmeY+qP2Vn2V8E52a6L2P9bA7GCY/bpDGpFlnjUB6y2Ytt7PsIuETZASm0RrGqfFA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.6,REQID:4f720ecc-70f3-4751-a2e1-0cc8c11c5918,IP:0,UR L:0,TC:0,Content:100,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:100 X-CID-META: VersionHash:a9d874c,CLOUDID:23c17d02-eaf8-4c8c-94de-0bc39887e077,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:81|82|102|836|888|898,TC:-5,Content: 3|15|50,EDM:-3,IP:nil,URL:0,File:130,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0, OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 946d93e8ab2511f0b33aeb1e7f16c2b6-20251017 Received: from mtkmbs09n2.mediatek.inc [(172.21.101.94)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 616855045; Fri, 17 Oct 2025 14:50:34 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Fri, 17 Oct 2025 14:50:32 +0800 Received: from mtksitap99.mediatek.inc (10.233.130.16) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1748.10 via Frontend Transport; Fri, 17 Oct 2025 14:50:32 +0800 From: Jason-JH Lin To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jassi Brar , Chun-Kuang Hu , AngeloGioacchino Del Regno , Mauro Carvalho Chehab CC: Matthias Brugger , Nicolas Dufresne , Jason-JH Lin , Nancy Lin , Singo Chang , Paul-PL Chen , Moudy Ho , Xiandong Wang , Sirius Wang , Fei Shao , Chen-yu Tsai , , , , , , , Subject: [PATCH v8 20/20] mailbox: mtk-cmdq: Remove unsued cmdq_get_shift_pa() Date: Fri, 17 Oct 2025 14:44:45 +0800 Message-ID: <20251017065028.1676930-21-jason-jh.lin@mediatek.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251017065028.1676930-1-jason-jh.lin@mediatek.com> References: <20251017065028.1676930-1-jason-jh.lin@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MTK: N Content-Type: text/plain; charset="utf-8" Since the mailbox driver data can be obtained using cmdq_get_mbox_priv() and all CMDQ users have transitioned to cmdq_get_mbox_priv(), cmdq_get_shift_pa() can be removed. Signed-off-by: Jason-JH Lin Reviewed-by: AngeloGioacchino Del Regno --- drivers/mailbox/mtk-cmdq-mailbox.c | 8 -------- include/linux/mailbox/mtk-cmdq-mailbox.h | 12 ------------ 2 files changed, 20 deletions(-) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-= mailbox.c index 1bf6984948ef..81cd98fc9664 100644 --- a/drivers/mailbox/mtk-cmdq-mailbox.c +++ b/drivers/mailbox/mtk-cmdq-mailbox.c @@ -123,14 +123,6 @@ void cmdq_get_mbox_priv(struct mbox_chan *chan, struct= cmdq_mbox_priv *priv) } EXPORT_SYMBOL(cmdq_get_mbox_priv); =20 -u8 cmdq_get_shift_pa(struct mbox_chan *chan) -{ - struct cmdq *cmdq =3D container_of(chan->mbox, struct cmdq, mbox); - - return cmdq->pdata->shift; -} -EXPORT_SYMBOL(cmdq_get_shift_pa); - static void cmdq_vm_init(struct cmdq *cmdq) { int i; diff --git a/include/linux/mailbox/mtk-cmdq-mailbox.h b/include/linux/mailb= ox/mtk-cmdq-mailbox.h index 07c1bfbdb8c4..a42b44d5fd49 100644 --- a/include/linux/mailbox/mtk-cmdq-mailbox.h +++ b/include/linux/mailbox/mtk-cmdq-mailbox.h @@ -96,16 +96,4 @@ struct cmdq_pkt { */ void cmdq_get_mbox_priv(struct mbox_chan *chan, struct cmdq_mbox_priv *pri= v); =20 -/** - * cmdq_get_shift_pa() - get the shift bits of physical address - * @chan: mailbox channel - * - * GCE can only fetch the command buffer address from a 32-bit register. - * Some SOCs support more than 32-bit command buffer address for GCE, which - * requires some shift bits to make the address fit into the 32-bit regist= er. - * - * Return: the shift bits of physical address - */ -u8 cmdq_get_shift_pa(struct mbox_chan *chan); - #endif /* __MTK_CMDQ_MAILBOX_H__ */ --=20 2.43.0