From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97A11C433EF for ; Thu, 14 Oct 2021 15:03:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7AF9360F23 for ; Thu, 14 Oct 2021 15:03:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232481AbhJNPF2 (ORCPT ); Thu, 14 Oct 2021 11:05:28 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:50138 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232683AbhJNPDr (ORCPT ); Thu, 14 Oct 2021 11:03:47 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id CBFDB1F44D70 Subject: Re: [PATCH v6 10/16] soc: mediatek: add mtk-mutex support for mt8195 vdosys1 To: "Nancy.Lin" , CK Hu Cc: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Matthias Brugger , "jason-jh . lin" , Yongqiang Niu , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, singo.chang@mediatek.com, srv_heupstream@mediatek.com References: <20211004062140.29803-1-nancy.lin@mediatek.com> <20211004062140.29803-11-nancy.lin@mediatek.com> From: AngeloGioacchino Del Regno Message-ID: Date: Thu, 14 Oct 2021 17:01:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211004062140.29803-11-nancy.lin@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Add mtk-mutex support for mt8195 vdosys1. > The vdosys1 path component contains ovl_adaptor, merge5, > and dp_intf1. Ovl_adaptor is composed of several sub-elements, > so change it to support multi-bit control. > > Signed-off-by: Nancy.Lin > --- > drivers/soc/mediatek/mtk-mutex.c | 296 ++++++++++++++++++------------- > 1 file changed, 175 insertions(+), 121 deletions(-) > > diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mutex.c > index 36502b27fe20..7767fedbd14f 100644 > --- a/drivers/soc/mediatek/mtk-mutex.c > +++ b/drivers/soc/mediatek/mtk-mutex.c > @@ -29,113 +29,142 @@ > > #define INT_MUTEX BIT(1) > > -#define MT8167_MUTEX_MOD_DISP_PWM 1 This patch doesn't only add support for MT8195 vdosys1, but also changes all definitions to a different "format", and also changes the type for "mutex_mod" from int to long. In reality, the actual functional change is minimal, compared to the size of this entire patch. Please, split this patch in two parts: one patch changing the defines and the mutex_mod type (specifying that it's a preparation for adding support for mt8195 vdosys1 mutex) and one patch adding such support. Thanks! Regards, - Angelo