Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1192679pxu; Wed, 6 Jan 2021 15:19:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPtep91WuJ7lQSf4GX9D8+g+OKGJTCpWqwpDNL8l73tolLel32Ml1blIO2owdDxzraYwva X-Received: by 2002:a17:906:90d6:: with SMTP id v22mr4494518ejw.88.1609975185969; Wed, 06 Jan 2021 15:19:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609975185; cv=none; d=google.com; s=arc-20160816; b=073jWFRwdcTkXVj1RXC8y8Uke0T2Ubk0lubatzX+nen3WQQO3ecFxVkqOOJ42LDSOM CAzCHlhuTAxLyVWE4SoKlWC0a9KQQEcN3yaoMU6id+hanCwMbmp6/J2PfcCoP+ZaxhFD ZeUZF6/ZjteNI7YqgfLwUUbNUzkpTsLFBySodD+HHw1PdzM3YMso9fug/YluRbvFAxNu 1PMBAAT7ySYscqXGb3o7e+397ZQc+bGcA402W46erLQyVK8zsOc1CWPaUWLVZbIEPESV 8dmR27/AX6V/BVWPB/MVV1jcPOM9Y4PFYXpujBBKC3FGbHoOF2cHX9j+tP3R8GMFFnrx r2bg== 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=xv7wezGqxErV2hG3ShdeKMauLoMqiXHy0JtTGay4IqU=; b=tvKasAa+FD1pEAFkzZRSS8q5SxhJ6LuIptOH2vJgY9Mm/PdljW3ISK9O+OSY0ZT/nR KRh7K+9EY0FzadUJEIkC1Il5zIrKi2Wr0m6bYgxFu+tUf6J72qIUYjXeqMwTIA7p8CP+ eQgMjZSh9ZYYublZxlqyjw57nENfU4Y4TXiVWg78DXvc60bkm4yF5n6VlLUN26fIzZw4 4ldBSBSkHq2T3SuRoI2Mr+8hS2R921lGjvDEsiiDUtQ11F4ydXvzhi4+dfw8l6KJAxFe LNr/ujEHjuRlqK0d5/NYw2dZtc4fsKGntO1CFvbNEICFeB3Ss7A8//15rvO93oAxtEXz Csgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h41X+2AB; 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 g9si1373523ejj.456.2021.01.06.15.19.22; Wed, 06 Jan 2021 15:19:45 -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=k20201202 header.b=h41X+2AB; 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 S1727461AbhAFXST (ORCPT + 99 others); Wed, 6 Jan 2021 18:18:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:48236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbhAFXSS (ORCPT ); Wed, 6 Jan 2021 18:18:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AC14023332; Wed, 6 Jan 2021 23:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609975058; bh=vKhyMmIuw4dVwfOPSyfNwOpSYaEo7Zn9XZymkFCSHQU=; h=From:To:Cc:Subject:Date:From; b=h41X+2ABQGKohRVdjEt2dYr3etneeWKi9iNfXaPDBQFjBuflnIYSmANx9OQf+8t87 RbI1Jr+VAtYTytEu92EVPbgRebX5SuoygMEHw8sZGDMpYWA6ICzTE7PK7vYEr9c6bP zj00b4vPMiJ2ovmsYqYgoE1Yl8b90qULYrS8P+7LyBb2ll1d+SKBprgDTL0NfYx5jO tPGb5MLJV7kxIVinQ4gCfB8RJAPcMmSTpVLsaqXWDj6K+28me7F+qVnlOqO+mEqhGo Xg86qtucp1LJ0lxKC+rgcI+j3a03+tWjU+4zh6/lTJrZRpPfBM+UyFx6RKftdgkZ6V FcfTAfLpHzxIg== From: Chun-Kuang Hu To: Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Chun-Kuang Hu Subject: [PATCH v2 0/5] Share mtk mutex driver for both DRM and MDP Date: Thu, 7 Jan 2021 07:17:24 +0800 Message-Id: <20210106231729.17173-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 mutex is a driver used by DRM and MDP [1], so this series move mtk mutex driver from DRM folder to soc folder, so it could be used by DRM and MDP. Changes in v2: 1. Rebase onto mediatek-drm-next [2]. 2. Export symbol for mtk-mutex API. [1] https://patchwork.kernel.org/patch/11140751/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next CK Hu (5): drm/mediatek: Remove redundant file including drm/mediatek: Rename file mtk_drm_ddp to mtk_mutex drm/mediatek: Change disp/ddp term to mutex in mtk mutex driver drm/mediatek: Automatically search unclaimed mtk mutex in mtk_mutex_get() soc / drm: mediatek: Move mtk mutex driver to soc folder drivers/gpu/drm/mediatek/Makefile | 1 - drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 32 +- drivers/gpu/drm/mediatek/mtk_drm_ddp.h | 28 -- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 3 - drivers/gpu/drm/mediatek/mtk_drm_drv.h | 1 - drivers/soc/mediatek/Makefile | 1 + .../mediatek/mtk-mutex.c} | 328 +++++++++--------- include/linux/soc/mediatek/mtk-mutex.h | 26 ++ 8 files changed, 212 insertions(+), 208 deletions(-) delete mode 100644 drivers/gpu/drm/mediatek/mtk_drm_ddp.h rename drivers/{gpu/drm/mediatek/mtk_drm_ddp.c => soc/mediatek/mtk-mutex.c} (53%) create mode 100644 include/linux/soc/mediatek/mtk-mutex.h -- 2.17.1