Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp163527pxb; Tue, 24 Aug 2021 23:35:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqu8yqb1CLRS2Hbxqc6x5x220iELc+nT3zZAQFM9vs/nC63+TYECD4eXHkXCy1vaM0vrpm X-Received: by 2002:a17:906:6815:: with SMTP id k21mr45069994ejr.371.1629873359718; Tue, 24 Aug 2021 23:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629873359; cv=none; d=google.com; s=arc-20160816; b=BzwfnnPCDD+sZCGl3M6zBjisDygwC7vcK0IQVBUQ9CMj8UyMDSWExxBMi7+7V5amfu mXdaIlhymbhlahnxb1hLAcUFew9L+3tRFzOcPpetOHRgEQhrSU8h2cE+u5TD/y5+G5aB 7yzQ9Aj5JpyMxIAaSFKj3GL+rolZKCxebQTU5u6XZ/yl1ojTtgmW8IFqEH8FraY9DpD5 jz67NQX4Q5cM46SZyzFR6tUa0IxDlSBR/dLki4452ZOJzkAy5OcIFwTQdxTvK3o/I/fL jZwcdz5cOAMiYfJfeIiSnR4gZCSV1TOCpOhHsmmTrgSNhPZTmoUftTgxDi+Baf1WQXSC GESQ== 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=9K6fTrQKg0eyCvlXAdZKTTOOHMG9DmPNgjH8VJOHFo8=; b=u0QRJIuze0xOhveFoQh9Kl9Z/gbtGv1+oRRk9Eph/5qRGHcR0QAlFGe+p8LdbB48CI cLd0R27+vUoQDh+kDHIeRrFBDJdmadBcn63xnk+JP+A7LCAtwMAeiX7aVh4fa23XX6Xj DpOGpw3JbY+ClZ3T1c9v+kwIUkN39jbrLAXuNA5bzR39/vxHVWtzpLt19PdrgRne2wU+ 9lkHpvo0i9hEzKr7qIrPU8d3XGGcdB/zwj0NHhb33NYseQnnx0Li4Ph9u9ueClwowAgF wlDjVv2opP/qfPdHeAHB09Lw0kvPlVSxDTI1NXh8Ab6Yyr2NTCv9f0Sqw/Tsiyf0hoQJ +dLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OAIQQoto; 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 ky22si18636218ejc.543.2021.08.24.23.35.35; Tue, 24 Aug 2021 23:35:59 -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=OAIQQoto; 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 S239061AbhHYGef (ORCPT + 99 others); Wed, 25 Aug 2021 02:34:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239091AbhHYGec (ORCPT ); Wed, 25 Aug 2021 02:34:32 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 773DEC0613CF for ; Tue, 24 Aug 2021 23:33:47 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id h1so10013191pjs.2 for ; Tue, 24 Aug 2021 23:33:47 -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=9K6fTrQKg0eyCvlXAdZKTTOOHMG9DmPNgjH8VJOHFo8=; b=OAIQQotobDg4VABTCD5AWF/CvuSWI78aJCtku35mN5kwCsHPAPuVCyWObgau2soem1 X2ePrCNej9Mw4S1woXgMFDEbk8tBXUM2eJ5ekjiEWOxEc9TCHIN8qqCUCXl10Z1k9840 FtRakX60dRrKY51lMM27LI22UhIbGbjxolcp8= 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=9K6fTrQKg0eyCvlXAdZKTTOOHMG9DmPNgjH8VJOHFo8=; b=HBX4zYckGvzkbLuWVKR/Kvh0j0S/PauXF6FZw9NKjzin3Rz1U1Zhnp5d3LP0H423Wq mt3jAgdoAVqw6DRpV7zQgyliNc9NPQNas2sFit1A3XV2eJUKws32uFRvRb2cMPTaAMi5 h2kIcUaLpbMdl9dly90J6fqGOZw1TuYz3VXi3QrDE/rvb2WQHQhuM8pXY0AIDPgnhUKp PrFivjwI52zfjTLw7ofTPeVONmnJIdnw0XSIlOb3Lf+t2x8Se7EmcApV9ZH3c9NlhL9T AglgAc98j8qhJvZ55hycWP4uidomkAjnioyxH/PABE/e8CvyjJKpERQUyc9vJCxYU7Z3 Heaw== X-Gm-Message-State: AOAM533hzH2wbdfuvXZoXo5/GtRAYlNBqHxv5PwdhUnTbIClQ6wP1g41 S8wCpFyuDaavXSdVfsM/ffC/R9ll7LhsPg== X-Received: by 2002:a17:903:248f:b029:128:d5ea:18a7 with SMTP id p15-20020a170903248fb0290128d5ea18a7mr36874180plw.83.1629873226793; Tue, 24 Aug 2021 23:33:46 -0700 (PDT) Received: from localhost ([2401:fa00:9:14:3f2f:9e23:8a5:952]) by smtp.gmail.com with UTF8SMTPSA id f9sm4356953pjq.36.2021.08.24.23.33.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Aug 2021 23:33:46 -0700 (PDT) From: Eizan Miyamoto To: linux-kernel@vger.kernel.org Cc: chunkuang.hu@kernel.org, yong.wu@mediatek.com, wenst@chromium.org, ck.hu@mediatek.com, houlong.wei@mediatek.com, enric.balletbo@collabora.com, yongqiang.niu@mediatek.com, Eizan Miyamoto , Andrew-CT Chen , Matthias Brugger , Mauro Carvalho Chehab , Minghsiu Tsai , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v7 0/7] Refactor MTK MDP driver into core/components Date: Wed, 25 Aug 2021 16:33:16 +1000 Message-Id: <20210825063323.3607738-1-eizan@chromium.org> X-Mailer: git-send-email 2.33.0.rc2.250.ged5fa647cd-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 v7: - Drop last two changes from this series related to removing the vpu property from the mdp_rdma0 device node Changes in v6: - Don't propagate errors from clock_on/off as an afterthought. - Split apart modifying mdp driver to be loadable from mmsys from actually loading it from mmsys into two changs to make review easier. - Update devicetree bindings to reflect no longer needing the mediatek,vpu property in the mdp_rdma0 device node. - Some stylistic cleanups. Changes in v5: - rebase and test on 5.13-next @ e2f74b13dbe6 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 (7): mtk-mdp: propagate errors from clock_on 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: make mdp driver to be loadable by platform_device_register*() soc: mediatek: mmsys: instantiate mdp virtual device from mmsys media: mtk-mdp: use mdp-rdma0 alias to point to MDP master drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 268 +++++++++++++++-- drivers/media/platform/mtk-mdp/mtk_mdp_comp.h | 34 +-- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 282 ++++++++++++------ 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 +- 6 files changed, 470 insertions(+), 141 deletions(-) -- 2.33.0.rc2.250.ged5fa647cd-goog