Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5320229pxv; Wed, 7 Jul 2021 00:35:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEiUi2ZA6W2oLGgd4sG4ZeER/Mk2JpvMl1rDSOZbT5eTdeb+x0qj68jNMnnis4CW4KSfXL X-Received: by 2002:a02:b78e:: with SMTP id f14mr4583188jam.136.1625643319209; Wed, 07 Jul 2021 00:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625643319; cv=none; d=google.com; s=arc-20160816; b=F109D1fKV2CxUYVhANcuzNIbuqoBC+zqWzRQnJeTj3VJLRXl7BddIsya2Mmbt8N8nL VwwjnqHUIweBvD77t6M5oPBQKPKKK5+m3dlixpVtF5WKmVdvpBjKziVb1Xh0lBE5mi1U Oq0/kUIrZ4B+b38b2kZxN4AbNW9iY+rfH2+00AjeZBbRmsD23ZtU0HjjnzlgxlgX1Uz4 Wx+jcK0y0BOYZ8c0ssAIOpWYPTsIT49lsee0LXouyiXVDD6VYRFDbHowMh4WsqaxL8If fLpe/SUByX7ILpKB16+eNp0Oeh0EFOPc5o12CNeJP+htKL5tQWMMmdmFPvxvnJu30reH jWjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OJlTGwQarQCwpYvNcauR++9WrrW2NSvtHc/ue7RodJg=; b=ipEeJ8zPdKAJ574A/yyqeB3S9tKu3ufY46Qu3gcDAwknsP5AnruaUZNz6Mj4jR+08r iGH0G8U0Sij5HNGZ+jI1hRasuJM7h9cSugxjHgM6nLa68fJ0y3JJyYa08Ka47EM7Cvri UbBYfc9MgQXq6UYplg1IyBVcClDbtXsiX11jLZwyhtJncIyd+dkRL254m1TEpI2euoD5 6msnic5EFmFINgX0yL74ZJvrf5dAvVmHuEAIpmKs8UoEorNDW+Lr4AfaA1Rqwyi/miAV 35muOifXpqK3jxnZp1daWM7Aur2QDPcDdZII467P2T7lsxW+mvfOd7p5nUCt5tVUE62A qTGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AuazIt6w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m13si21193844iln.153.2021.07.07.00.35.07; Wed, 07 Jul 2021 00:35:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AuazIt6w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230395AbhGGHhM (ORCPT + 99 others); Wed, 7 Jul 2021 03:37:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbhGGHhL (ORCPT ); Wed, 7 Jul 2021 03:37:11 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C6AFC061760 for ; Wed, 7 Jul 2021 00:34:32 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id b14-20020a17090a7aceb029017261c7d206so3145031pjl.5 for ; Wed, 07 Jul 2021 00:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OJlTGwQarQCwpYvNcauR++9WrrW2NSvtHc/ue7RodJg=; b=AuazIt6wRB7ZeBAjhK9ytxJTkucjF6k5BsVeoltdwkePA7cS/fKxHnORZSh77uRfoS RgvulmIxxv889zhp87tFqJBjuxeVPZJ18OHG6HJoMlygPw7p00n6oQWrzWneR/2SNMez 9Lu/mVfByWJ4LmChRXj+IIwAOjqqeAWemaTUs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OJlTGwQarQCwpYvNcauR++9WrrW2NSvtHc/ue7RodJg=; b=qMZMh5+4pJkSLdrgk2vBO7s0lydrxhbGg+i8ocjNO2MMwIkLZNA2EGEXJ5BFe1RF0t 4PCpvOfuq4Y27Hc2dSrXG89MrWsKE6WsZzTf9pGJUXU6U1fuEU2PGsclbKVp2RJAX1dO hmmRGJQVUzrEb2x7CUu390tzLZNMHLEFb3BH5cKO/hvozvY4HZ1U0u8iVElSyxztUoJs 2Kl1ffd81GmcxqRKGp7YvgaDPdZOMAYzLJonTOJWSL3m+wixbm+UYhNcozzD5tk22/Mw MW98IH59hjZu17f/LE9hv8lUBxpe/bS0/wiGOJOs5AidbBm+Ip+1TZyCSEhHrV7mWpwb 0VuQ== X-Gm-Message-State: AOAM533S7df6GaPu5pbFYnCP5Y+WZRf4CIXGRxSibImNep8B4Oc3xjfH U4LYB+x3OFMbvgOKnhV6JRhaO4OJRyIG0w== X-Received: by 2002:a17:90a:b28a:: with SMTP id c10mr4537829pjr.59.1625643271395; Wed, 07 Jul 2021 00:34:31 -0700 (PDT) Received: from localhost ([2401:fa00:9:14:ccb9:d95f:4dac:dbc4]) by smtp.gmail.com with UTF8SMTPSA id f4sm21323341pgm.20.2021.07.07.00.34.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jul 2021 00:34:31 -0700 (PDT) From: Eizan Miyamoto To: linux-kernel@vger.kernel.org Cc: houlong.wei@mediatek.com, enric.balletbo@collabora.com, wenst@chromium.org, yong.wu@mediatek.com, chunkuang.hu@kernel.org, Eizan Miyamoto , Andrew-CT Chen , Matthias Brugger , Mauro Carvalho Chehab , Minghsiu Tsai , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v4 0/8] Refactor MTK MDP driver into core/components Date: Wed, 7 Jul 2021 17:34:02 +1000 Message-Id: <20210707073410.999625-1-eizan@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an update to https://patchwork.kernel.org/project/linux-mediatek/list/?series=283075 To address some comments and fixes. This series has been verified to work on 5.13. Changes in v4: - rebase and test on 5.13 - don't depend on https://patchwork.kernel.org/project/linux-mediatek/list/?series=464873 Changes in v3: - get mdp master from aliases instead of strcmp against of_node->name Changes in v2: - rebased onto Linux 5.12 - 100 char line length allowance was utilized in a few places - Removal of a redundant dev_err() print at the end of mtk_mdp_comp_init() - Instead of printing errors and ignoring them, I've added a patch to correctly propagate them. - Use of C style comments. - Three additional patches were added to eliminate dependency on the mediatek,vpu property inside the mdp_rdma0 device node. Eizan Miyamoto (8): mtk-mdp: add driver to probe mdp components mtk-mdp: use pm_runtime in MDP component driver media: mtk-mdp: don't pm_run_time_get/put for master comp in clock_on mtk-mdp: soc: mediatek: register mdp from mmsys media: mtk-mdp: search for vpu node instead of linking it to a property media: mtk-mdp: propagate errors better in pm_suspend/resume media: mtk-mdp: use mdp-rdma0 alias to point to MDP master dts: mtk-mdp: remove mediatek,vpu property from primary MDP device arch/arm64/boot/dts/mediatek/mt8173.dtsi | 1 - drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 258 ++++++++++++++-- drivers/media/platform/mtk-mdp/mtk_mdp_comp.h | 34 +-- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 281 ++++++++++++------ drivers/media/platform/mtk-mdp/mtk_mdp_core.h | 3 + drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c | 4 +- drivers/soc/mediatek/mtk-mmsys.c | 20 +- 7 files changed, 466 insertions(+), 135 deletions(-) -- 2.32.0.93.g670b81a890-goog