From nobody Sun Dec 14 11:34:34 2025 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 676213112B6; Fri, 17 Oct 2025 06:50:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760683848; cv=none; b=Kd8zdxk2LkxYts5CltNVmvsSCuxxnXi9fHResIH0jPklPXlFndKai2NQkP1PwWyyIV2gDpzQOuGANUWfnDqW6j0Ebd5lyHMCVRC7ioeRhlhX8HQb2uQa2UHOHVxov/BjsJgmV/CSJWvpnz2dwmoSxSmRm5GISVSesC94nc8pXw4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760683848; c=relaxed/simple; bh=sfGUg1XdW/INcZxYB5duhxIMuQ7su9NDS1BtbJraJCA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=olTrNjS1cuP8FeWek+I27w9AajMSeSR1LlRTJiKB+M4MXZvfQjS7yYvbjY0QMoTGgB4FZ4BZG0hl1E2FHksvV9mOZkZUcGOyYp3LbynZmIpjzXHvIVtVkLgF17Aqgrm3nuZwoVaRPQ4ZvPMby8doJvRtWWXNzCK2lgG0ymvRX+M= 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=hhmFo38B; arc=none smtp.client-ip=60.244.123.138 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="hhmFo38B" X-UUID: 94e30344ab2511f0ae1e63ff8927bad3-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=ajn5+At9A4JOxBAGorfjMbDXlmTNGH+QYFIsy6Lx1kg=; b=hhmFo38BrNq8LQF3CWo6TCaYWuqQyRcyI1QCsuG/FQOQXM432NniKPTfq0YvuZTGDRalEGruBOYl/jQYf/5U11lS/0yKT91xKgicaPi+tHLyAZ0nfm4XOhxvbb3f8Ioanhq7Evgb7S4lcxuoQ6nTtJIF8m9Gi1FmommJju4PjY4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.6,REQID:49f33b9a-6a64-4b50-a336-f61d577398cc,IP:0,UR L:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION:r elease,TS:0 X-CID-META: VersionHash:a9d874c,CLOUDID:16da5086-2e17-44e4-a09c-1e463bf6bc47,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: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: 94e30344ab2511f0ae1e63ff8927bad3-20251017 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 598655366; Fri, 17 Oct 2025 14:50:34 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n2.mediatek.inc (172.21.101.183) 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 18/20] soc: mediatek: mtk-cmdq: Remove cmdq_pkt_jump() and cmdq_pkt_jump_rel_temp() Date: Fri, 17 Oct 2025 14:44:43 +0800 Message-ID: <20251017065028.1676930-19-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 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. Fixes: ade176534112 ("soc: mediatek: cmdq: Add parameter shift_pa to cmdq_p= kt_jump()") 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/medi= atek/mtk-cmdq.h index af66410b06d1..140c70bb707c 100644 --- a/include/linux/soc/mediatek/mtk-cmdq.h +++ b/include/linux/soc/mediatek/mtk-cmdq.h @@ -416,12 +416,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); =20 -/* 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 @@ -434,24 +428,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); =20 -/** - * 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 instruct= ion. - * 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 A= PI. - */ -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 ex= ecution * @pkt: The CMDQ packet @@ -606,12 +582,6 @@ static inline int cmdq_pkt_jump_rel(struct cmdq_pkt *p= kt, s32 offset) return -EINVAL; } =20 -/* 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 -EIMVAL; -} - static inline int cmdq_pkt_eoc(struct cmdq_pkt *pkt) { return -EINVAL; --=20 2.43.0