Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp246813pxj; Thu, 10 Jun 2021 21:03:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx04A0XNGj8TJWXG0SxG304TcRQdAUO5HdSNJPVyWhqEhUbUJChChtaKYbh3DcXVDiNR7LU X-Received: by 2002:a05:6402:1b04:: with SMTP id by4mr1621102edb.238.1623384221129; Thu, 10 Jun 2021 21:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623384221; cv=none; d=google.com; s=arc-20160816; b=qHyX5WsmMcibITO+R3pIkjYu4WHTOJabFQfaofiD+bP4KbubXhLT27uxctvaFQjvDG O7TPMaDuGgRVgHHEcHuOe3qMIRAg7YyYn57oSZqbdxIroEIbtE+hetbkf6L078sd4kB7 Yz4TtPVk+l/nfQG3BfIdWyhQnTT+fWQqJOyFiifPhLjngQrT5uJJkpRK6PpWewDQwg0g CAu2tnSNzlc0XhYNi0xuda4uoAGn8G61EkBmjfv7zDlrh3Es16i4sSEJkMxTjHAJlU3G DtUFTWjPEhPejsWXK0HQChdpKYu0cy2kZmU3Ix9Mqm3joZxJ3D9e/Fm53gHM9UDniXEs yiJw== 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=dHnvb/5q4pu/qIeAJnS0gxEaPn/2BF/h/mnBeFWe2kU=; b=ydo+LBupGS9pjE1VfAEnHFyXz+CUDdv7NFwrYkWsN1fMoeKtUNBigYxe1AbvZYbmzQ vQgPf3sGBnhyfqNF0vsu6NOXQUREs7NewF7IcqHElum/jYqsQzo2OCMImgHqUjuK4UI4 KOXYpyd4h1HJ42DJihHfqZzF1yPl9EmOYuKPoI24KgRKLTCMVxo98prFBh9b/FTAfRbm vy+8YdDACQOpT/43WQe0rShj0XrwkEVdLI5hbhJwKrOI9sP7zT4RglG1MBa2aIH8fB+I t5GU4FRJ7wBUcANCOQZqlsLMLXCKlOy1d6PTUQ/6P5ewUa9sOJlisdKO5PATo/LsSr/I ykTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PBAd9qhB; 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 c16si3703524edr.499.2021.06.10.21.03.18; Thu, 10 Jun 2021 21:03:41 -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=PBAd9qhB; 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 S229510AbhFKEES (ORCPT + 99 others); Fri, 11 Jun 2021 00:04:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbhFKEER (ORCPT ); Fri, 11 Jun 2021 00:04:17 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 915D4C0617AD for ; Thu, 10 Jun 2021 21:02:04 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id g6so3376615pfq.1 for ; Thu, 10 Jun 2021 21:02:04 -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=dHnvb/5q4pu/qIeAJnS0gxEaPn/2BF/h/mnBeFWe2kU=; b=PBAd9qhBUf6V1LfObAM2a5Ujj6S2jZogVGzCMmDl2YCnqpM1JqJ/Kib/ArqLJd6+Z8 4JDc9yxn0C4wfZS9Pw4XzSzfWKpy9yCUh/8AiGqWMEXChrFL9vxYEaNzU+LF8NnBnnNO u/CHBjGciUSPtTFYkJQDdHnGWJL4MjzYCnDuc= 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=dHnvb/5q4pu/qIeAJnS0gxEaPn/2BF/h/mnBeFWe2kU=; b=bZdynUfxPDCYs236vKrKHqa/ThAj1iqQGnap7JTfImbeCLXsxix+D6XYSBWjUM2i2t trat05DVH8tSNd4AhH8h97NnP4uD2L+ANlqeGKdgVZ0rMlUJErdR6e7ZFRzZdZqGjPfh 6eYppQujy1IIWTrOUADUrxV7QQHgV3VN1qpMUSv9BZDgDPbDch6AtiLYnV3WLVV8kNV+ d3iBe9070fOLOm3SfCuIK/6vT6VnM74H2tO/DmFRt+OjglAH905v9SZMid+bJhaK1e6z //4G/J3gllekQ1HxumXSeeQlCVp4WQRthxClLthpHNNF0GcCISQkIBreI1he7x0OTAOr TM8A== X-Gm-Message-State: AOAM530o8+eu6y+b2UarLNeVk3OO1mu5ZaOH4g6iMqvM2NMwuXWNK1mo 4s1JsYebyaneyF8lkVPxgNVkXtYWNbDLEHrk X-Received: by 2002:aa7:8892:0:b029:2f5:33fc:1073 with SMTP id z18-20020aa788920000b02902f533fc1073mr6219778pfe.79.1623384123780; Thu, 10 Jun 2021 21:02:03 -0700 (PDT) Received: from localhost ([2401:fa00:9:14:db52:e918:e5f9:9e14]) by smtp.gmail.com with UTF8SMTPSA id z185sm3927781pgb.4.2021.06.10.21.01.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Jun 2021 21:02:03 -0700 (PDT) From: Eizan Miyamoto To: linux-kernel@vger.kernel.org Cc: houlong.wei@mediatek.com, enric.balletbo@collabora.com, 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 v2 0/8] Refactor MTK MDP driver into core/components Date: Fri, 11 Jun 2021 14:01:37 +1000 Message-Id: <20210611040145.2085329-1-eizan@chromium.org> X-Mailer: git-send-email 2.32.0.272.g935e593368-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.12. It has been rebased on top of the series https://patchwork.kernel.org/project/linux-mediatek/list/?series=464873 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: treat rdma@14001000 specially when probing 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 | 226 ++++++++++++-- drivers/media/platform/mtk-mdp/mtk_mdp_comp.h | 35 +-- 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, 434 insertions(+), 136 deletions(-) -- 2.32.0.272.g935e593368-goog