From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B913FEA806 for ; Wed, 25 Mar 2026 04:05:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=oVtXg1u//KQSDkG3AxcksQOdaQT8WeDudVdcXW7j2L4=; b=TUWiOouHtioi4GIZIpKCxDz3hj 0GzHfviESrBN2sQaPN10ja222WMlzvBNA2WnFB/2Ycro64x8J5m9v2hrjlq+Rb/vwBK2slR29V1wI dVMEyb76RCykGVLlvUI0OD+yrEU/nSBi/Nw1V15CmQ7yY7dfyM68zqehyij5NneAbH0maY6zkHZ19 LUxaK3XbARGxvpcTV+HBAtqtv9KMy4SmUB1ohnOUGnOy+7XEDSLNMkoN6JMS6+tcacEqUhuEEAmR8 BQwJx7reYXbielhpJTe1TZ4Qw0Sk0m1KZF1gQ3sESrg2doqpmQ3pGW8srZqnXLh+cp8ajcoBIdahe GSbcRW2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w5FUd-00000002e9k-1kcL; Wed, 25 Mar 2026 04:05:19 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w5FUb-00000002e8V-2hHj; Wed, 25 Mar 2026 04:05:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=oVtXg1u//KQSDkG3AxcksQOdaQT8WeDudVdcXW7j2L4=; b=EtT53pXLopvh2XDY6LMucjGvVG LuzwCaFRt0iwaaoYvJwiZrmtrBQICdmxr0lWD+FB1dEWcgX7VO7jfAWw0tL1OFyMxizx044ndN3ai yi9jii91YAy0cq/xMUS6C4mnKUo8Up2X8uUdidNceNvLcYVrNLp5tR9ac8NkRb7L2ZRZd0xb7aBib X30x7D6Rk8G8qg0V974/pFM863+PQh8EU5hXwP+hi81q1xDfgwBtCvm/Z8uOyoSa02/YnOIi3dklM IOsYf25pzhm3dJvaWTib8j2o+gTXoR5kkB+XSxrDZHCOX0LVmmtoPAEGWNzqMfvafOSeiU/KsTi2/ 922aFWYA==; Received: from mailgw02.mediatek.com ([216.200.240.185]) by desiato.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w5FUT-00000005Ocl-2QP2; Wed, 25 Mar 2026 04:05:15 +0000 X-UUID: cb5e765427ff11f1a6de359d7043e138-20260324 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=oVtXg1u//KQSDkG3AxcksQOdaQT8WeDudVdcXW7j2L4=; b=FCsSVkwiMfovm4e4uDE5YPD4hts9SWBAUoYOGei/OtbKvXIPTkJ4hlWyArBFBM2UaDfnow1w2D3U4YCd/0BBmR3sqrG9unusriyRDGNGHVticAaKn21aSqsSWYwaReyLDNsqxePYhBr8m7diNO9zm8oHwijFf931ZrK6uflcr2Q=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:22b41eef-d340-4103-80a6-d93e87b88065,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:e7bac3a,CLOUDID:550d6ce0-cf51-4058-942d-ef4f058f9afa,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:81|82|102|836|888|898,TC:-5,Content: 0|15|50,EDM:-3,IP:nil,URL:0,File:130,RT:0,Bulk:nil,QS:nil,BEC:-1,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: cb5e765427ff11f1a6de359d7043e138-20260324 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1882023484; Tue, 24 Mar 2026 21:05:00 -0700 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Wed, 25 Mar 2026 12:04:58 +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.2562.29 via Frontend Transport; Wed, 25 Mar 2026 12:04:57 +0800 From: Jason-JH Lin To: Jassi Brar , Chun-Kuang Hu , AngeloGioacchino Del Regno , Nicolas Dufresne , Mauro Carvalho Chehab CC: Matthias Brugger , Jason-JH Lin , Nancy Lin , Singo Chang , Paul-PL Chen , Moudy Ho , Xiandong Wang , Sirius Wang , Fei Shao , Chen-yu Tsai , , , , , , Subject: [PATCH v2 1/3] soc: mediatek: mtk-cmdq: Remove cmdq_pkt_jump() and cmdq_pkt_jump_rel_temp() Date: Wed, 25 Mar 2026 12:04:20 +0800 Message-ID: <20260325040457.2113120-2-jason-jh.lin@mediatek.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260325040457.2113120-1-jason-jh.lin@mediatek.com> References: <20260325040457.2113120-1-jason-jh.lin@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260325_040511_422360_CF002CD6 X-CRM114-Status: GOOD ( 12.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since all users have migrated to the new cmdq_pkt_jump* APIs without shift_pa, the wrapper APIs cmdq_pkt_jump() and cmdq_pkt_jump_rel_temp() can be removed. Signed-off-by: Jason-JH Lin Reviewed-by: AngeloGioacchino Del Regno --- include/linux/soc/mediatek/mtk-cmdq.h | 30 --------------------------- 1 file changed, 30 deletions(-) diff --git a/include/linux/soc/mediatek/mtk-cmdq.h b/include/linux/soc/mediatek/mtk-cmdq.h index 3d0de1a9cac1..be67bee043ce 100644 --- a/include/linux/soc/mediatek/mtk-cmdq.h +++ b/include/linux/soc/mediatek/mtk-cmdq.h @@ -423,12 +423,6 @@ int cmdq_pkt_poll_addr(struct cmdq_pkt *pkt, dma_addr_t addr, u32 value, u32 mas */ int cmdq_pkt_jump_abs(struct cmdq_pkt *pkt, dma_addr_t addr); -/* This wrapper has to be removed after all users migrated to jump_abs */ -static inline int cmdq_pkt_jump(struct cmdq_pkt *pkt, dma_addr_t addr) -{ - return cmdq_pkt_jump_abs(pkt, addr); -} - /** * cmdq_pkt_jump_rel() - Append jump command to the CMDQ packet, ask GCE * to execute an instruction that change current thread @@ -441,24 +435,6 @@ static inline int cmdq_pkt_jump(struct cmdq_pkt *pkt, dma_addr_t addr) */ int cmdq_pkt_jump_rel(struct cmdq_pkt *pkt, s32 offset); -/** - * cmdq_pkt_jump_rel_temp() - Temporary wrapper for new CMDQ helper API - * @pkt: the CMDQ packet - * @offset: relative offset of target instruction buffer from current PC. - * @shift_pa: [DEPRECATED] shift bits of physical address in CMDQ instruction. - * This value is got by cmdq_get_shift_pa(). - * - * This function is a temporary wrapper that was introduced only for ease of - * migration of the many users of the CMDQ API located in multiple kernel - * subsystems. - * - * This has to be removed after all users are migrated to the newer CMDQ API. - */ -static inline int cmdq_pkt_jump_rel_temp(struct cmdq_pkt *pkt, s32 offset, u8 shift_pa) -{ - return cmdq_pkt_jump_rel(pkt, offset); -} - /** * cmdq_pkt_eoc() - Append EOC and ask GCE to generate an IRQ at end of execution * @pkt: The CMDQ packet @@ -613,12 +589,6 @@ static inline int cmdq_pkt_jump_rel(struct cmdq_pkt *pkt, s32 offset) return -EINVAL; } -/* This wrapper has to be removed after all users migrated to jump_rel */ -static inline int cmdq_pkt_jump_rel_temp(struct cmdq_pkt *pkt, s32 offset, u8 shift_pa) -{ - return -EINVAL; -} - static inline int cmdq_pkt_eoc(struct cmdq_pkt *pkt) { return -EINVAL; -- 2.43.0