Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp163543rdb; Wed, 14 Feb 2024 16:51:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX4pRYcJaU+rGgtD8AMXENNhR3cmexPn+qDGtgOtQmBf1xEV32XblGukKXDU5aMxZf0ZkSsr9GFPJOzgIW3X37UJIDXEBvBPsbHPpuZDg== X-Google-Smtp-Source: AGHT+IE3vbSbqIQW4U0h3KJJvbvEd6spD0PjonGeLsRu0hbfhljGUdVJoYePHaI096jcF7ZZYNIl X-Received: by 2002:a05:620a:1026:b0:787:2259:bdb8 with SMTP id a6-20020a05620a102600b007872259bdb8mr386784qkk.59.1707958282227; Wed, 14 Feb 2024 16:51:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707958282; cv=pass; d=google.com; s=arc-20160816; b=DVVOR6u3anotAlSg6nwbNGRFiWQb3dGXhRwIAcpVF9Hgy05s4ROdviTL4qWj5U5rH9 padp7Dn4q8NlSUwFGhRENlvv8I7W+Pyyfl5qtjilw9IEc3+R6XppYedWgw/oYxMff1cu o9DdVczM39Bnb9rhRCcSYuFT5XSaxddoFh6EnfIymOAK0ViVfa3oFAcjR79IFnnqgQYU Ukv+vQ2e9ET2DpYiFmnVPyvJmhm8q6W4wnVfFcJhNWToFJJRIcOsRUWjTfn+TSkWr50V gG61/V/fPRY9QLYwhR45sml4BXPFUvUcA/MU5Ej+8wiUa7rmOM6zB8yQj6YVByCQfyra P+xQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=teAO/z1wRkmRFTetpL0BlyZl9LGlao23cKF9pVPbHs0=; fh=5fJ5HuOhQ8tDYrJs098Y1CAol/Fv56LtamixBAqCzME=; b=CUkNtanSsrv4UDCq+idVyUJfZ8nChwo69NR5wG7xHtJpUUfJo01TXhi0KEeq/IDQu1 phErqZY2mK+60RbG3KAKYKW1b6caNYJPdeZdrdhLfCXx6Ru//pMxRc0bDitn2IR1QAl0 xjznoT3/B8VkTrXKHh0D2g9qKBrt/UryQRaFAiGzzTJfAPkz+2O7cP+spz3uJDwmbrwZ iyM+O1O7WTDZEJtiz2OCrWqdKglZHEvKekZk+/fgsbn8EnQOKrcoHmLARaq0Q+taYt3F Tz+xqxkdD39YHBYLPsrzGP45mZ88CeMQaQms/kvcrzjYJb7Bce3/66J6MRA85d/h+kAY lWww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j8SoANEa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66195-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66195-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g7-20020a05620a218700b007872453d88bsi345042qka.289.2024.02.14.16.51.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 16:51:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66195-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j8SoANEa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66195-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66195-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9BCAF1C264DF for ; Thu, 15 Feb 2024 00:50:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE1E710F7; Thu, 15 Feb 2024 00:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="j8SoANEa" 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 0CE55A50; Thu, 15 Feb 2024 00:50:01 +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=1707958202; cv=none; b=l18ncRTEpWdvXNvkqgalLATtUKQeLyD7Cd2L8/qp98lTDUnwelDumc+iEEZQ7pPzx5CCQcpwXBmEO7/79DeGyXSE7KY6IOLu5a+nR5y8N9M/cdm5Hd2O+U/BTasFQgfNF0/kgp+KgTOwaYmxVwBRvcbqzWPhduDON6EMEqTZeKs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707958202; c=relaxed/simple; bh=IMXlz+K+vPt7moPsPtyRvbcUlG72JSuixPQZI0qMeLY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=UDW5ft1hfC7pXlpLt/JbnoMdyjazkyeItOe9FqE/f3cNzqRLTwgOEtoGUhGvGStLWQISzgRnTuxAJE8nnam1MhSnslWOQkftH29VY/6IV0XC4/Ly5N+rpW/+fWIXTHJkUf7t/utJsjl/fG/hGtZd6deD4MPanavwaUqYZPpIZdc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=j8SoANEa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89A98C433F1; Thu, 15 Feb 2024 00:49:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707958201; bh=IMXlz+K+vPt7moPsPtyRvbcUlG72JSuixPQZI0qMeLY=; h=From:To:Cc:Subject:Date:From; b=j8SoANEaHx7kyPgIzpO6tg0EZvR3ELnnl4+G7fyU8zcygw98P8pl5Kd/KFvXxZ9NC fs9OxOGNxFsxZY4IckiKG8Cz10UhA00lr5/MpQIg+oNn2SN8TLk3IObpAjsBwErRvu oqFudwiDf75/+NUUQ5QZlW/CVDYxX8wpQWWYvs0soJnf//bnHBpVPpivQCy7jh5Ack 4XM4cGxDNKaElSGw51QMD0mFLjdD+yz05CmgGBZeOLL4A7DNJ3K7jXV0jYO53cyuek T96GybEFfgb0ijQADnEDbJWd1oYCwm9iq17jkeR5A5i2Q4depdspDqiJFPWDtDcDce IC5OLPUe8E0xQ== From: Chun-Kuang Hu To: Matthias Brugger , AngeloGioacchino Del Regno , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: Chun-Kuang Hu Subject: [PATCH 0/9] Remove cl in struct cmdq_pkt Date: Thu, 15 Feb 2024 00:49:22 +0000 Message-Id: <20240215004931.3808-1-chunkuang.hu@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit cl in struct cmdq_pkt is used to store struct cmdq_client, but every client driver has the struct cmdq_client information, so it's not necessary to store struct cmdq_client in struct cmdq_pkt. Because mailbox maintainer do not like to mix mailbox patch with other patches in a series, so mailbox patch [1] would be sent independently. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/commit/?h=mediatek-cmdq8&id=a1b2f7a7488285975c1f439086f1c4cc51a13bb9 Chun-Kuang Hu (9): soc: mediatek: cmdq: Remove unused helper funciton soc: mediatek: cmdq: Add parameter shift_pa to cmdq_pkt_jump() soc: mediatek: cmdq: Add cmdq_pkt_eoc() helper function soc: mediatek: cmdq: Add cmdq_pkt_nop() helper function drm/mediatek: Drop calling cmdq_pkt_finalize() media: platform: mtk-mdp3: drop calling cmdq_pkt_finalize() soc: mediatek: cmdq: Remove cmdq_pkt_finalize() helper function drm/mediatek: Do not store struct cmdq_client in struct cmdq_pkt media: platform: mtk-mdp3: do not store struct cmdq_client in struct cmdq_pkt drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 9 +- .../platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 14 ++- .../platform/mediatek/mdp3/mtk-mdp3-core.c | 2 + .../platform/mediatek/mdp3/mtk-mdp3-core.h | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 85 +++---------------- include/linux/soc/mediatek/mtk-cmdq.h | 50 ++++------- 6 files changed, 39 insertions(+), 122 deletions(-) -- 2.34.1