Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp138516pxb; Mon, 2 Nov 2020 16:36:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxV3Wph5DtXt6VhcRo9rfPO7b7REOpA1LmFU94iT4ZD3hn25W07iWWDeOTQGGYXZS/LNO74 X-Received: by 2002:a17:906:4d93:: with SMTP id s19mr13593408eju.271.1604363793021; Mon, 02 Nov 2020 16:36:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604363793; cv=none; d=google.com; s=arc-20160816; b=WT2UoKqie44/tLRX64/MhzJcgAOWerTOTs6zCy9/DdrROk2vd5EREy5hG43875tLvJ X5gigvSPIHZhD54ftb40ymX9F/ydmnncj5kVVoy/9SQQcYTB3H/FVhZHlV8Np8IJjEFu +BThlFxTtY8LcbwksD5i/nHq0hDotUtcc/dkQQ+y7fLFCxv+JCB9gpikwR1pf5H1zp/V uq4sahs9tN6JlHrANX1oCSSKwG2ESndsEzUbnsHyVZ3xa6Ny4ltxNEgIRBQi9Czj0tT3 uk8Tw7FHygdUKqT0sqTYl4WeKsuo7CYpuRuBTEtt14KlG4La/0vl3R2WV9xXlt/0R8dZ eybg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=qdvktUOHHR06EKOLq4pnE77U8ZaSXTocoiwsDU842/4=; b=xa+rFpNcZVWiVYG2o6Syc//DPiu9JORxPQXPgRg39YSbMMvB2FDoo2W8O13LAAAPs6 Yu7howyVBg7vjftGNkaQ31iDpCv5WXBjTysTB0G64aF1bOE+1p40Jeu1GRMFOowGCnaY hcR8gWPwqlHsKWG7szIgGFXQWs3nu2vIv8sNoklQUSf3Gfb8c81jVafI2ukVr2XtTjg9 NUO4d2V/ZCFOiINaPlUCpcf0dFC5vYw3RxD2WdI/v7hEH6hZFbq9oiyEfTcBo3eQgFeW Nctgw4KcxQw6fxad4kkm97jgEROTj+nVV3lXfyN9t41oVlfNfzb51/jZoROgl73JmXto n74A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EQIyoffH; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs11si12059213edb.24.2020.11.02.16.36.10; Mon, 02 Nov 2020 16:36:33 -0800 (PST) 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=@kernel.org header.s=default header.b=EQIyoffH; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727348AbgKCAem (ORCPT + 99 others); Mon, 2 Nov 2020 19:34:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:43418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbgKCAem (ORCPT ); Mon, 2 Nov 2020 19:34:42 -0500 Received: from DESKTOP-GFFITBK.localdomain (218-161-90-76.HINET-IP.hinet.net [218.161.90.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 946442225E; Tue, 3 Nov 2020 00:34:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604363681; bh=zjbAVeWRYaUwxfwFsQjsM8GEoZULM41QxsHun96CCxU=; h=From:To:Cc:Subject:Date:From; b=EQIyoffH3k8mQp8PsmXEy/B0YcigmHwvFDNhivxurwIjIUDkJwyRlGn+vBqqFx2rI CwQKfp2q7MXU0UplGhYrdRU22YL42lVlsdwE3Xj3kZnTEZU+NMusVHF1jO717G7VPR RmRMBewngRmu3L0pD9bUlJ3wlseJpC3h3QKCU0QI= From: Chun-Kuang Hu To: Philipp Zabel , David Airlie , Daniel Vetter Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Chun-Kuang Hu Subject: [PATCH 00/11] Decouple Mediatek DRM sub driver Date: Tue, 3 Nov 2020 08:34:11 +0800 Message-Id: <20201103003422.17838-1-chunkuang.hu@kernel.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mtk ccorr is controlled by DRM and MDP [1]. In order to share mtk_ccorr driver for DRM and MDP, decouple Mediatek DRM sub driver which include mtk_ccorr, so MDP could use this decoupled mtk_ccorr. [1] https://patchwork.kernel.org/patch/11140751/ CK Hu (9): drm/mediatek: Move clk info from struct mtk_ddp_comp to sub driver private data drm/mediatek: Move regs info from struct mtk_ddp_comp to sub driver private data drm/mediatek: Remove irq in struct mtk_ddp_comp drm/mediatek: Use struct cmdq_client_reg to gather cmdq variable drm/mediatek: Move cmdq_reg info from struct mtk_ddp_comp to sub driver private data drm/mediatek: Change sub driver interface from mtk_ddp_comp to device drm/mediatek: Register vblank callback function drm/mediatek: DRM driver directly refer to sub driver's function drm/mediatek: Move mtk_ddp_comp_init() from sub driver to DRM driver Chun-Kuang Hu (2): drm/mediatek: Get CMDQ client register for all ddp component drm/mediatek: Use correct device pointer to get CMDQ client register drivers/gpu/drm/mediatek/mtk_disp_color.c | 86 ++--- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 69 ++++ drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 215 ++++++----- drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 169 +++++---- drivers/gpu/drm/mediatek/mtk_dpi.c | 44 +-- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 75 ++-- drivers/gpu/drm/mediatek/mtk_drm_crtc.h | 1 - drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 389 ++++++++++++-------- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 100 ++--- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 +- drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 +- drivers/gpu/drm/mediatek/mtk_dsi.c | 47 +-- 12 files changed, 658 insertions(+), 569 deletions(-) create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_drv.h -- 2.17.1