Message ID | 20240222154120.16959-2-chunkuang.hu@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-76797-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp24629dyb; Thu, 22 Feb 2024 07:42:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVJctAVE3950C/Q9ZB50P5G86xqVhFymS3InSBTBNn9pDNYDz3svbRAcIz9jeW5o+M+5ppbnOIXDS2VZRBRR1OWaJVQZw== X-Google-Smtp-Source: AGHT+IGAbGzQ5IQGg3OcPoUMbddkE72GoTxPYwlCInAW4rl1piJJ7bCdIJSce7yqS1Zh1pN4EJol X-Received: by 2002:a17:906:e2cb:b0:a3f:175b:ea91 with SMTP id gr11-20020a170906e2cb00b00a3f175bea91mr4735334ejb.13.1708616555896; Thu, 22 Feb 2024 07:42:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708616555; cv=pass; d=google.com; s=arc-20160816; b=JjiBQ8fvt2+u0ROnLqS1kTcjy30xRV67gSOXzp1ja84mje/nK4DnRc6BZ5T5vWvKI2 ZWk2b5Ue7qzQuS9CPZM5IlOI7GXQkyeXQU3aP+8wSYdd0WPtxDuaPOj4tg3hZwMffIha nDtbB3Jq+whi+kSUlBDiQwyzT+gP49IGBv7emI24XbBSuLNboGyEs6CbN1oCv8YQrL+2 QuB8jr+ye62u1Ho9cOYlkbIhOg/CwYhitvltkwn2L0tWy1lgfBOQjKcji1NFhV3s67vv 5Wlrm6PsAPlQi1LfQcK6hLeFfnsBBhmoSAN1sMuc8/JYi52YsXQLJYazGC0Nraqx+Q8Y FTMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9eIuDrb97tVunrO7xcRol8+vKXsVHalaYdUrzl+TA84=; fh=vD8tJ9d2mp7H51jNKyMUDglMjHY1Ew4hzsuiSabS+YY=; b=WbOpkN8aOEQvvlsK6ExssibzdwjwvSNDWrTIOvjD6rUOwgpf0USdp7s8SYX9ecF4qX G42tS8CkGlCCUYoMAhe5ocDNuxwXGKHh2GQeh5vi5rrnhzTv/jjQYFk/f5H70tL89p5n mdt6O7FrMrsRaj05JbzECgkNPCv/L4fxD0AydS8IwixeBUx3lSWXtrPnK8jUZzRhJC7S MaBtFefHqtycvrj9q21uwR4hyXT9Kt/xLRTcMmaQvg2YkbHiaTB6oYkwmFqWYcAIYAq6 g/CFLtaxk/jMuJpJcyE09eqpGTbwrKL8WmXXSwC0YOaPeDUc+ztv57rRkw5a1i3y4Vry pf5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pJHhs7lb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76797-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76797-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p27-20020a1709060e9b00b00a3e6f79e9f9si4279204ejf.659.2024.02.22.07.42.35 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 07:42:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76797-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pJHhs7lb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76797-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76797-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6B0971F27249 for <ouuuleilei@gmail.com>; Thu, 22 Feb 2024 15:42:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DC071534F6; Thu, 22 Feb 2024 15:41:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pJHhs7lb" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C95B0152DF4; Thu, 22 Feb 2024 15:41:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708616492; cv=none; b=MGXlmT4Fh3tsV+P5QxUCTZA+bPJQf8k7jx9lVkjdHM75xqYRMQduDXi+GPy1pVcao0w0YPcVhFfKveVpuZhU7Hy9Lvp3BP2f80A4zZk78pAxCUju7/OMubWisR8YYhd2BVyG5ABwMk1C8FEXzg+EMQicllaSL6oSj2yoKDSa1A4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708616492; c=relaxed/simple; bh=xCIGBwYX6XIyecIkEgq00nSGxn+xtBAV0Xn4DI4lFRE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BwqW9tsMt9uvoYI09W53TAz0DJthhr38MQECVM+5J3FrI7tT1xFlpTpOyPEvxrFK3AOQ0TLGUPKQbXbs19BDm3xPuWyv0JVRLg2Ji86H6ciy+F11WlpnuqfgrHzXSq6UZ/j4zFHKCi/3zGEIeliRBvn6kBQTudhUZUWhTqfDX1o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pJHhs7lb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AB80C43390; Thu, 22 Feb 2024 15:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708616492; bh=xCIGBwYX6XIyecIkEgq00nSGxn+xtBAV0Xn4DI4lFRE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pJHhs7lbcCFk6UhjYW0wfrz8wcaLvrooR3gSmQxaayS7Sh4/AjqZeRw3hBjMXCEvL 1VzZxJIhdEXWO2U3HCUkWX4Eqq3Ao6MkESVptlhbSp1xaao6k6jbMQqq7x7q3YQAk/ T3JMH2d47sIiA/cjr4RcPUiw8u7MWM19rC/DqOet+LpAmb0443YJsoYOzpdSJl28aX GmUV8fLYij3E8YVd76XEa0xITi/eND1F23dNO7hol5Cfy598RficTVlU5nx+Bf8/R7 MeVQqHDOZENPkIAr8Lh9DraCSOP6JtZPf6iKlel0mtsAyzMECXuV2UES7u4KcpqEDZ p1EfRNUwaDA/g== From: Chun-Kuang Hu <chunkuang.hu@kernel.org> To: Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Moudy Ho <moudy.ho@mediatek.com>, "Jason-JH . Lin" <jason-jh.lin@mediatek.com>, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: Chun-Kuang Hu <chunkuang.hu@kernel.org> Subject: [PATCH v2 01/12] soc: mediatek: cmdq: Fix typo of CMDQ_JUMP_RELATIVE Date: Thu, 22 Feb 2024 15:41:09 +0000 Message-Id: <20240222154120.16959-2-chunkuang.hu@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240222154120.16959-1-chunkuang.hu@kernel.org> References: <20240222154120.16959-1-chunkuang.hu@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791614313395156414 X-GMAIL-MSGID: 1791614313395156414 |
Series |
Remove cl in struct cmdq_pkt
|
|
Commit Message
Chun-Kuang Hu
Feb. 22, 2024, 3:41 p.m. UTC
For cmdq jump command, offset 0 means relative jump and offset 1
means absolute jump. cmdq_pkt_jump() is absolute jump, so fix the
typo of CMDQ_JUMP_RELATIVE in cmdq_pkt_jump().
Fixes: 946f1792d3d7 ("soc: mediatek: cmdq: add jump function")
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
---
drivers/soc/mediatek/mtk-cmdq-helper.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Comments
Il 22/02/24 16:41, Chun-Kuang Hu ha scritto: > For cmdq jump command, offset 0 means relative jump and offset 1 > means absolute jump. cmdq_pkt_jump() is absolute jump, so fix the > typo of CMDQ_JUMP_RELATIVE in cmdq_pkt_jump(). > > Fixes: 946f1792d3d7 ("soc: mediatek: cmdq: add jump function") > Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
diff --git a/drivers/soc/mediatek/mtk-cmdq-helper.c b/drivers/soc/mediatek/mtk-cmdq-helper.c index b0cd071c4719..0b2e5690dacf 100644 --- a/drivers/soc/mediatek/mtk-cmdq-helper.c +++ b/drivers/soc/mediatek/mtk-cmdq-helper.c @@ -14,7 +14,8 @@ #define CMDQ_POLL_ENABLE_MASK BIT(0) #define CMDQ_EOC_IRQ_EN BIT(0) #define CMDQ_REG_TYPE 1 -#define CMDQ_JUMP_RELATIVE 1 +#define CMDQ_JUMP_RELATIVE 0 +#define CMDQ_JUMP_ABSOLUTE 1 struct cmdq_instruction { union { @@ -397,7 +398,7 @@ int cmdq_pkt_jump(struct cmdq_pkt *pkt, dma_addr_t addr) struct cmdq_instruction inst = {}; inst.op = CMDQ_CODE_JUMP; - inst.offset = CMDQ_JUMP_RELATIVE; + inst.offset = CMDQ_JUMP_ABSOLUTE; inst.value = addr >> cmdq_get_shift_pa(((struct cmdq_client *)pkt->cl)->chan); return cmdq_pkt_append_command(pkt, inst);