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: 12219683 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=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 B0AAAC433ED for ; Fri, 23 Apr 2021 06:06:01 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6E87661404 for ; Fri, 23 Apr 2021 06:06:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E87661404 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=3RzLoFca0UXMrkJ5LCZe97zaBdrS6UU1XNOaRypHJWI=; b=GpY4SRHWVDdnoOEVtaLhfeX9xO ufHRW4Rp5zaK61H3RHt+C5vYtofiJfdvmhTJJSPaTUfN981KrYyrXZp9R02B7CdzWQtm3/5/4pXgo QL3IRhtOXl5oMch76Y1wJ3Ii8fuZW2BIObn7L7Ow4KqGQmeNeHvFYOrI9PJOjS1lkyD3gud9jvx+h +rz9Iv8G6IVCgfpNUmgt4zgF6CXsCHCw4gC4yl3vyW+QUT6WZ+l6T9sy943EX3uN8JT5i4nzkAqr+ F2ScVGyjqKY/o2N9L4e8lKZLTXPi0D1ZyFFkJKb9dCWmpHAkVbXzy/Q+tKNDcRXKMN6R4Xlf1ma9a Aseji8tA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lZoux-000nZf-3I; Fri, 23 Apr 2021 06:03:55 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lZos1-000nBL-Rz for linux-arm-kernel@lists.infradead.org; Fri, 23 Apr 2021 06:01:52 +0000 Received: by mail-pj1-x102e.google.com with SMTP id lt13so13697577pjb.1 for ; Thu, 22 Apr 2021 23:00:53 -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=M0pqlQhjrxL0Q91utZBxO8sFQhk4bCZi5jgsMZiqY2h6/uoBD5s2MwN4nNu89WvDct 0zjeDw03vGaUANrL+9Ey1LALhBDfQ8pTYBNdvzeiBED6ZqRGqyzc9bONLUDgLmrXCN8a cr2sgRdscLs9M+ucWuBx+a6oRFQF2lc7UoHM7oa15IbSXe2iqgxEQnKghvORlD8/A6iG 1Jh7hDA/C0d52w3+hhvVz6u41AcHkFsX65KNMX6iaXSmuxgVIUN5kGyWTeFC+oA7sr23 7q+mDmlD5YVC3P+Aowynnn2bg5uqsB751f5sqR56w2ziQIRjuehnyx58x5LQf6pBkLeb DWgQ== X-Gm-Message-State: AOAM533O8fqbaKJ2RERBnL73Nq01j84YuQQjeI5fp1z28notMTArfwYh WsFJDuo1rJTRYUpe8f8yAX5tSw== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210423_070123_753654_41D0295B X-CRM114-Status: GOOD ( 11.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(-)