Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp265238rwb; Tue, 4 Oct 2022 03:52:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mhsfywAGnwK5iqW40H8+SaJiuXAIW3FUhq9r6RLbpnhpGcVudMao2zt8lVZZB1hXjGplT X-Received: by 2002:a05:6a00:a22:b0:54e:6a90:fbef with SMTP id p34-20020a056a000a2200b0054e6a90fbefmr27032464pfh.53.1664880732625; Tue, 04 Oct 2022 03:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664880732; cv=none; d=google.com; s=arc-20160816; b=Dk+9NRBXnvLn4WnDvBzy346m7bJ+iWD8MijQ9vLmRNyuiPV8t0dDYSzeUlSPD9K3t+ mK7kFRMejk0DKdsueXhdn9y6lfl+52e6qALgW7PNsxczqIeW1pbGTVmNpbi+llQnJgvI Gl56881DppFO7+shEO2VKInMrfe5vvBSl6oK8MMF2oYa/D+UjBAPZ8arHXt+J75Mb5Le AtDBNloOq0rDs6afLEigt89ilIHEIYYUgJtAs+rREBDGH3jYVP6SPnyW6FTttPTMCCLU Gk2z57v4cg7Gqyvlj0kl+0clvamA6lID5ZEly89HLXtGYQFBwCav5REuvXNZo2kDfmpc yqyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=c5k6ZNI6sRUrczxfcsYS/c25P0zEUbDCEvkzt7XYe8g=; b=dYKvHgh8cbK1sN7bQeoLgbkescBizKjtSmoFx07lGxvqUI/P9Q6aEMTJHfvFeq9OLK 9rzqN2GZJC0EWuUWuEMjplr+0MH0SGrbwo63kddRqVXNX3Ss52HOn1SvlIlsnBZVAABQ pr8bb1t5nkogLKVbTsS+t3Qy7/Qg66oKizEiyOmoACe5BYvNlI/9GH1xEdNwDRoci4S1 IhIb78BXMs4VhM2etS49osRyisu+Ytu1yCZmYHTUMPYxl5eBOuV7yk+3v+bnYCEeLIpq hU/Ly6Ba5TigI3HrOpEybpcWpLXkInYnif0Mzx2SsgHt5JESfyAEBK6Eovyi/twhHlTh PfTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G3EHcKhn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id na3-20020a17090b4c0300b0020a95eb3d4fsi2616530pjb.128.2022.10.04.03.52.00; Tue, 04 Oct 2022 03:52:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G3EHcKhn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229468AbiJDKtS (ORCPT + 99 others); Tue, 4 Oct 2022 06:49:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbiJDKtQ (ORCPT ); Tue, 4 Oct 2022 06:49:16 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E0CC50730 for ; Tue, 4 Oct 2022 03:49:14 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id t16so14859861ljh.3 for ; Tue, 04 Oct 2022 03:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=c5k6ZNI6sRUrczxfcsYS/c25P0zEUbDCEvkzt7XYe8g=; b=G3EHcKhnNoAjSMx/ocs4bY3RbE16aUdmufD3yRS9x3AiIWwFIVmiUyH3IVcGQfEBOA SOXUyuEBtDpV89NZXv+7EWvp+cd9xsdD3xaSL0A57S0b5UUssTcLrnH/kmLHFJ60Xc7N XSjN9c2UgwOuylWXLVt5dyUsQRJVUcbWdrqKpB+VBc8MoQRapE8TS2VFk88zVXHjcx5W ThHuO2bdbBT1tx225065qEGDNcPrs/gmls6CQhP19fQ4spldz5EkBKGEBhS4kZbNfvn0 p+MgX0Mr3qJro8BJAMpJ+eC4hlNypUoBGetW4VCEaEzVZIjCq1NKFEaDWSCi8I6/7qPT afdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=c5k6ZNI6sRUrczxfcsYS/c25P0zEUbDCEvkzt7XYe8g=; b=1xGNuxDS1LM81PFx1ZjCJmK6B51t/2lPUOHNw71UCA4WbMFw4iRNDTKj7v4rCTEvAo Qxmjn2B+aSI+SFRwEwV4JzOoTeLkb/DY+dhwsUTnNolsktab5Zi8nqX5lHiwz5tMnc2u 1z5rbYDP+8xR4qSBLKYEVKKmc6GmpQSdm2fWpq80RDOp1dMM25/vZUULKuTPFt8LaU2O HZurm31RF9coytiv/ozDkbbap4QLybABDuPj1AQGV/vjB6O8LbgDqxZXsiRF5c7b/N5k PVFjV0HpRIC65bmZdZFcxQd0WsdSKrAlGMr+XZ5qzuCITiKf0LS4MZ4vVAZE+ymAlOUu O6WQ== X-Gm-Message-State: ACrzQf2olVEgFaBgmaRhhc9DaLsBwtg9kCRHa9HdmzjKs4cVRJMCEWQV neM/7YgoTZkUPKFw71YwsRfAHg== X-Received: by 2002:a2e:9d88:0:b0:26a:95c1:218f with SMTP id c8-20020a2e9d88000000b0026a95c1218fmr7776212ljj.223.1664880552796; Tue, 04 Oct 2022 03:49:12 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id 2-20020ac24842000000b0048b3926351bsm1869697lfy.56.2022.10.04.03.49.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Oct 2022 03:49:12 -0700 (PDT) Message-ID: Date: Tue, 4 Oct 2022 12:49:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v1 17/17] drm/mediatek: Add mt8195-dpi support to drm_drv Content-Language: en-US To: Guillaume Ranquet , Kishon Vijay Abraham I , Matthias Brugger , Vinod Koul , Stephen Boyd , David Airlie , Rob Herring , Philipp Zabel , Krzysztof Kozlowski , Daniel Vetter , Chunfeng Yun , CK Hu , Jitao shi , Chun-Kuang Hu , Michael Turquette Cc: linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, Pablo Sun , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Mattijs Korpershoek , linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org References: <20220919-v1-0-4844816c9808@baylibre.com> <20220919-v1-17-4844816c9808@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/10/2022 17:29, Guillaume Ranquet wrote: > On Tue, 27 Sep 2022 16:28, Krzysztof Kozlowski > wrote: >> On 27/09/2022 15:04, Guillaume Ranquet wrote: >>> On Thu, 22 Sep 2022 09:20, Krzysztof Kozlowski >>> wrote: >>>> On 19/09/2022 18:56, Guillaume Ranquet wrote: >>>>> Add dpi support to enable the HDMI path. >>>>> >>>>> Signed-off-by: Guillaume Ranquet >>>>> >>>>> diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c >>>>> index 72049a530ae1..27f029ca760b 100644 >>>>> --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c >>>>> +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c >>>>> @@ -820,6 +820,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = { >>>>> .data = (void *)MTK_DPI }, >>>>> { .compatible = "mediatek,mt8192-dpi", >>>>> .data = (void *)MTK_DPI }, >>>>> + { .compatible = "mediatek,mt8195-dpi", >>>>> + .data = (void *)MTK_DPI }, >>>> >>>> It's compatible with the others. You don't need more compatibles. >>> >>> Hi Krzysztof, >>> >>> It's a bit confusing, because this compatible is used in both >>> mtk_drm_drv.c and in mtk_dpi.c >>> >>> Albeit it's entirely the same thing regarding the mtk_drm_drv module, >>> it's pretty different >>> regarding the mtk_dpi module. >> >> Sure, but this does not explain why do you need these entries here in >> mtk_drm_drv. >> >> Best regards, >> Krzysztof >> > > Hi Krzysztof, > > Sorry for the late answer. > The mtk_drm_drv is the component master of the full mediatek drm stack. > > it "binds" all of the crtc/dpi/ovl/mutex/merge... components of the stack. > > That mtk_ddp_comp_dt_ids array is iterated over to find all of the components > from the device tree. No. You said what the code is doing. I think I understand this. You still do not need more compatibles. Your sentence did not clarify it because it did not answer at all to question "why". Why do you need it? Sorry, the change looks not correct. Best regards, Krzysztof