Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp442687pxb; Wed, 20 Jan 2021 10:42:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxImkv5HkazZFEDXcPmVl/NKH9HCgauETmjmw03V7caZFvHxrLztDYGsjwAUXFLQYALKibS X-Received: by 2002:aa7:c399:: with SMTP id k25mr573784edq.305.1611168172957; Wed, 20 Jan 2021 10:42:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611168172; cv=none; d=google.com; s=arc-20160816; b=smm9+iWLNDLzwVJn1wfflUuNdd/pF6soO3ORHtaxWQ6nM4vC+wxo7zW5VP0Sd3Xm+9 uclHiqYeHLWF3XEWXMulRlIIkT9zdErveGGI4xFxsHA7XaubS147T+pD/gCxNi6xpwP+ 6LNcYRkB5fDPxvd1nZSIH4ncAvmZ8gpkcRBu1y37mxTtGFOHxeePcjUc+ujZnN1+b3uu GWXESv8If7blWfLu5oXNHX27joGnKf59b36N0ZFcsG0ohEum60cNCKVR2ESy13ULcto4 9CPo7z0tR1lxvHbExCxP2k430t7NeAgLSc8YV24J6yUp88IroxviZIKnsRxr/USAFC7U Df9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=01+GuNEDL2hBpfDU2u4NxSpofbVWLQ7nt5VxO2KUscs=; b=cU5d+dL/rPCBd2V9TuSgobeATKZ1obTaihboULHRwz3bedqXAqqqxIp3NT0JrSvNEd BgpmmY3kpPKo9wuIdnq6AyEAZ4dL61HGRehgRK1vNQK3qzp1uBK9qUgp4HxFtzOva+92 gv7M1Zcuj1Q7kuuaO5j8VOYZMuehwp5F7UimB2R+DatAmjb8nha7ecu944RD8+8+HZwy 6mCQqAs1aOZX2wTMMDDrpyOtBsH87kr15JgqcZhTeTw9MwdUqXWX5ifzl6rgVWtVfRib 1cjO/hef1XJbM8B1rmwaL99v46OL//WlgayOsBfitBn0ufBe0wKEGzfSTYBhzVdSPW8C HR3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gOl9shjT; 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 q4si1210460edn.390.2021.01.20.10.42.27; Wed, 20 Jan 2021 10:42:52 -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=gOl9shjT; 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 S1732223AbhATSk1 (ORCPT + 99 others); Wed, 20 Jan 2021 13:40:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:51262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390333AbhATS2e (ORCPT ); Wed, 20 Jan 2021 13:28:34 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 37755233FC; Wed, 20 Jan 2021 18:27:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611167274; bh=vjunBYcfmoEhuHi9C00Jr/Jy+8HJAFrvRPfYznGtIKg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gOl9shjTzknM9YiyVLg9dZpn6FPVTXhF3re+4Dh0axFEclqb8yWnyEHrKdOmMjR+i vkKu30xXDhQ9/ZOu/EdxM6Bf2LDygaMhNq7CQY/0OXxeucuA+89zc0gZj6YG+fo/L8 KpT/C8dtakbHF3pKeFXKDqoR0IsE1XjLCZTkq62DlAHw+jyn+Ej0FmY+Qdrn99+Tun eq/Btp6HnjeAEmzuy+B8SAPWVnLsN7I9X0/dIoN9Qfa8CBrY9E3LV5nElSVNjTtvl4 J0vx02VldRiUZgcLrRTbpNUmYeUgqkgFHbFdi6DdhGiXHAgktbfNxMb6xj7JoxhAwh q4DXrejRfHD/w== Date: Wed, 20 Jan 2021 19:27:48 +0100 From: Matthias Brugger To: Chun-Kuang Hu Cc: Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, CK Hu , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 3/5] drm/mediatek: Change disp/ddp term to mutex in mtk mutex driver Message-ID: References: <20210106231729.17173-1-chunkuang.hu@kernel.org> <20210106231729.17173-4-chunkuang.hu@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210106231729.17173-4-chunkuang.hu@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2021 at 07:17:27AM +0800, Chun-Kuang Hu wrote: > From: CK Hu > > mtk mutex is used by both drm and mdp driver, so change disp/ddp term to > mutex to show that it's a common driver for drm and mdp. > > Signed-off-by: CK Hu > Signed-off-by: Chun-Kuang Hu > --- > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 30 +-- > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- > drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 +- > drivers/gpu/drm/mediatek/mtk_mutex.c | 305 ++++++++++++------------ > drivers/gpu/drm/mediatek/mtk_mutex.h | 26 +- > 5 files changed, 182 insertions(+), 183 deletions(-) > [...] > diff --git a/drivers/gpu/drm/mediatek/mtk_mutex.c b/drivers/gpu/drm/mediatek/mtk_mutex.c > index 1c8a253f4788..98a060bf225d 100644 > --- a/drivers/gpu/drm/mediatek/mtk_mutex.c > +++ b/drivers/gpu/drm/mediatek/mtk_mutex.c [...] > > -static const struct of_device_id ddp_driver_dt_match[] = { > +static const struct of_device_id mutex_driver_dt_match[] = { > { .compatible = "mediatek,mt2701-disp-mutex", > - .data = &mt2701_ddp_driver_data}, > + .data = &mt2701_mutex_driver_data}, > { .compatible = "mediatek,mt2712-disp-mutex", > - .data = &mt2712_ddp_driver_data}, > + .data = &mt2712_mutex_driver_data}, > { .compatible = "mediatek,mt8167-disp-mutex", > - .data = &mt8167_ddp_driver_data}, > + .data = &mt8167_mutex_driver_data}, > { .compatible = "mediatek,mt8173-disp-mutex", > - .data = &mt8173_ddp_driver_data}, > + .data = &mt8173_mutex_driver_data}, > {}, > }; > -MODULE_DEVICE_TABLE(of, ddp_driver_dt_match); > +MODULE_DEVICE_TABLE(of, mutex_driver_dt_match); I think it would make sense in a follow-up patch to update the binding to use "mediatek,mt2701-mutex" to reflect that mutex is used for drm and mdp driver. Make sense? Regards, Matthias