From patchwork Fri Apr 23 05:58:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eizan Miyamoto X-Patchwork-Id: 427026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59858C433B4 for ; Fri, 23 Apr 2021 05:58:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 264D261404 for ; Fri, 23 Apr 2021 05:58:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240494AbhDWF72 (ORCPT ); Fri, 23 Apr 2021 01:59:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbhDWF71 (ORCPT ); Fri, 23 Apr 2021 01:59:27 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE206C061574 for ; Thu, 22 Apr 2021 22:58:50 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id nk8so9385284pjb.3 for ; Thu, 22 Apr 2021 22:58:50 -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=WojFyUuBmlCNfO5VcU3mpAXT/QOV485quirzDWuFiHI=; b=nEn0d/cITJwCov5cPnJMctSmaLJUrt8L/kVGZa3Mly7ka+SlPVJ9hl5z5Npj6PQ8lm CHRZZ1dcQyvoWw0dUVqcLAkJrOb5kJO/cxJQCNA7xsQQi/5Th52yb4YUn0RAoGq3lnAJ G+mr9b7dgd2/9zEotik+afdfzYS1OvLXhLluU= 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=WojFyUuBmlCNfO5VcU3mpAXT/QOV485quirzDWuFiHI=; b=BsG8AezHQh1JN0Y7rSSoZzq7TtVXV3ELfy237OSaL7ySgTrcdbx2JktP2jh2lB7yOQ kunwUprIYMbj6R27Z/7xiISLbNJlE1MoOvcMR/rIXmnRgFBLVDcz36g6g/D8/kaNJavs qP5NW7dBhJKAZT2ZQQwEcPFRvpoquenJDe7YqGgF9txRi6yLW9xHf2FAxntUPLlXXVg5 qEHlWDIXaOCS86ZEEP0QxuvAuChmjjGIAT0Y1GSLOLX+aST7hYxd348A4+Rg3X2N1QGF mne7SBTEh6ou5YX8YT/oaUY4Gsw1exsnWnL0LxtkyuO7v+iE/2FNONsdOm+Qj5IB0Bad QFXQ== X-Gm-Message-State: AOAM533kaA6qFlKL8oyGzodaWobR6hyvkcUoQ2MhKawv76d2sgdp+7V2 /qpkhDh7fOh9ZOQKEBdIVZhauQ== X-Google-Smtp-Source: ABdhPJwYbk0jpbFk5VmmfOeLYVgcuWObCMUM6VNScD01vj0LdoNVakoEYINA9YdZxs7LcXJ3tQFLag== X-Received: by 2002:a17:903:244:b029:ec:9666:9fc6 with SMTP id j4-20020a1709030244b02900ec96669fc6mr2176469plh.63.1619157530312; Thu, 22 Apr 2021 22:58:50 -0700 (PDT) Received: from localhost ([2401:fa00:9:14:308c:235d:f7a2:53a1]) by smtp.gmail.com with UTF8SMTPSA id m11sm6254433pjs.34.2021.04.22.22.58.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Apr 2021 22:58:49 -0700 (PDT) From: Eizan Miyamoto To: linux-kernel@vger.kernel.org Cc: enric.balletbo@collabora.com, chunkuang.hu@kernel.org, yong.wu@mediatek.com, Eizan Miyamoto , Andrew-CT Chen , Houlong Wei , 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 v1 0/4] Refactor MTK MDP driver into core/components Date: Fri, 23 Apr 2021 15:58:37 +1000 Message-Id: <20210423055842.2490679-1-eizan@chromium.org> X-Mailer: git-send-email 2.31.1.498.g6c1eba8ee3d-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@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.11. It has been rebased on top of the series https://patchwork.kernel.org/project/linux-mediatek/list/?series=464873 The first two patches are unchanged from the previous series submission. Eizan Miyamoto (4): 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 drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 191 ++++++++++++++-- drivers/media/platform/mtk-mdp/mtk_mdp_comp.h | 35 +-- drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 214 +++++++++++------- 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, 345 insertions(+), 122 deletions(-)