Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3716210iog; Tue, 28 Jun 2022 00:49:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t3D61YHlHZq1XCAmE0DAfcyr4heSWfCJrYY5hXeF+pY/1baOQN2qyA74bFttlSQ7RkaUXs X-Received: by 2002:a17:906:2b45:b0:726:931a:cb5f with SMTP id b5-20020a1709062b4500b00726931acb5fmr13621087ejg.767.1656402556552; Tue, 28 Jun 2022 00:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656402556; cv=none; d=google.com; s=arc-20160816; b=hG126gZMsd0A60air0Qm0PjTKg4Dok593/wjVuIx82wU7tf5s99DFgRv+X/wBipMPJ KZcyN3HnM7cXmhuT95qYdH5bwJRa1qDSOYSngn3LF+JD/J/tYJRGuVSlEvonjxxrMXZh Kq0xqdUvlnoCQxk9EMCSJ6dt8dKlo60bWtB+LDPp6xxd/leEDFyCLVXKpXDFEI82opM8 SHgfYLVVDSyThw9BVwIfNTEGPKjQ3eygmYFnpFP++90R2xhE+Ttrw7ZFnDYRuGqELn9y BtBzIGquHxZlNfmbcXz//Yd3PPN548O5PlB2p68Wuk4sjizexYRT7DdqH0ujhrmLQXOD xsNw== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=KsqAJ7YKidd8LZmByQaDFJBwdldhoJVuguG1CDc3e00=; b=bj87GUmx5Nn5YR9RnrtWq98cazLqs5IbdzyeZggtfVBiYdAbOHwNd/kMWqjuygfG/l tsTTsJx98ROE41Pn05Et30RP2CTfxaC/EKcSOmltdcjNw70HZfEBsGKQDRRF5ljFuxdf adXvEZ9q+smzpQ629hxDru/3KjXUTRQkV9QzMhbQsajgAQTZ2A4As3xChMnkfRCGuE/g Bs9exKU4VGIgNW9LC8zhew6ph1SeTijQ2WFBqfvac3zAMfuAFVUFqOcS2cUphaWEMAyn nyLh5nWBln2+U77a37g1WluouNRcTpZ4mbLhf0H20PPm5TCmQkTlKUdq7AzU8sHOOomp i/AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=EHq+1qal; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga23-20020a1709070c1700b00726347cbb61si14906073ejc.981.2022.06.28.00.48.50; Tue, 28 Jun 2022 00:49:16 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=EHq+1qal; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231937AbiF1HK4 (ORCPT + 99 others); Tue, 28 Jun 2022 03:10:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230199AbiF1HKy (ORCPT ); Tue, 28 Jun 2022 03:10:54 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE86527166 for ; Tue, 28 Jun 2022 00:10:52 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id r81-20020a1c4454000000b003a0297a61ddso7357698wma.2 for ; Tue, 28 Jun 2022 00:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=KsqAJ7YKidd8LZmByQaDFJBwdldhoJVuguG1CDc3e00=; b=EHq+1qalm5NaxwYgPHuR1r+ouWxYKWJ0zegZ1W8TttlkinLcCyWZnlRnc96nOsoGl+ ED60WnNpEFCnwc9soZ+RfiwEY3fImezkfDdwtQlRqmlfvYnFqdeHEjCofuXdpZjJHWy5 3g3xtgbbBDKTDOQKxrBcebcvyOaXjmyaQta2+bdOij8QMceMw5ug3bElYN0FhW3CSjbL GJ5+9i/GKn05YWHmGw1zFYWYHRfBO90vBvsvSJYdUkkkACLEEYrDc+r30/iUq729MgM9 6HbGUF1IOtCzhUI7MWL89xJQctzzp6dLf+/iz5hS5jw/el0GjskEkL4DlJFR95IVNND3 xmsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=KsqAJ7YKidd8LZmByQaDFJBwdldhoJVuguG1CDc3e00=; b=5ApJSVkcDCuHBBOlG+u63Eu/GFC5N6kfO0XivLQTecFUHEmhEFP1xDC3+ZY/e9nEsJ 7R3ANaZsjtl/bGK8mloA6LVoCQM/hpNVin2WvsHzkQXlH/qM/FkVX9XyKS4qpDJ4dSUe towpUOeQZEzrXII1p43lNQiUuorLaXeoQXZhuPBf9WYV6A1vs33g1BlMg7cAhNz+VERw ycjldVbTNbnxCOwwjsGjyruTmQk0/hW5CPpPhAe9sn0L3ZbLTz292thNwblkF6ZGrJcP MMZkky1LNssRSjKU59k0VDPIz714d0NL1uqDLaze7YERnRGJHJFX2TBIy02en38I0K5+ HY8w== X-Gm-Message-State: AJIora/yIDeK3pp5h6HYWxs4GFVFPLTGTm+iRd1DszNbapGQYEoFz+CB aYxoK5J/Xiv88VBZsm2LPxljgA== X-Received: by 2002:a1c:7414:0:b0:3a0:201c:5b7f with SMTP id p20-20020a1c7414000000b003a0201c5b7fmr24576381wmc.170.1656400251201; Tue, 28 Jun 2022 00:10:51 -0700 (PDT) Received: from ?IPV6:2001:861:44c0:66c0:52cb:c433:b96:9ad? ([2001:861:44c0:66c0:52cb:c433:b96:9ad]) by smtp.gmail.com with ESMTPSA id bn14-20020a056000060e00b0021d20a43523sm667124wrb.42.2022.06.28.00.10.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jun 2022 00:10:50 -0700 (PDT) Message-ID: <123b8767-7ea4-e6fe-6d47-0f2444a88dd9@baylibre.com> Date: Tue, 28 Jun 2022 09:10:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2] drm/bridge: imx: i.MX8 bridge drivers should depend on ARCH_MXC Content-Language: en-US To: Liu Ying , Geert Uytterhoeven , Andrzej Hajda , Robert Foss , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Sakari Ailus , Marek Vasut Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <42c542b53a1c8027b23a045045fbb7b34479913d.1656072500.git.geert+renesas@glider.be> <9f5b511708ca9b30ef101a46a5d1b76f03b2c4fc.camel@nxp.com> From: Neil Armstrong Organization: Baylibre In-Reply-To: <9f5b511708ca9b30ef101a46a5d1b76f03b2c4fc.camel@nxp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 28/06/2022 04:31, Liu Ying wrote: > On Mon, 2022-06-27 at 14:22 +0200, Neil Armstrong wrote: >> Hi, > > Hi, > >> >> On 24/06/2022 14:10, Geert Uytterhoeven wrote: >>> The various Freescale i.MX8 display bridges are only present on >>> Freescale i.MX8 SoCs. Hence add a dependency on ARCH_MXC, to >>> prevent >>> asking the user about these drivers when configuring a kernel >>> without >>> i.MX SoC support. >>> >>> Fixes: e60c4354840b2fe8 ("drm/bridge: imx: Add LDB support for >>> i.MX8qm") >>> Fixes: 3818715f62b42b5c ("drm/bridge: imx: Add LDB support for >>> i.MX8qxp") >>> Fixes: 96988a526c97cfbe ("drm/bridge: imx: Add i.MX8qxp pixel link >>> to DPI support") >>> Fixes: 1ec17c26bc06289d ("drm/bridge: imx: Add i.MX8qm/qxp display >>> pixel link support") >>> Fixes: 93e163a9e0392aca ("drm/bridge: imx: Add i.MX8qm/qxp pixel >>> combiner support") >>> Signed-off-by: Geert Uytterhoeven >>> Reviewed-by: Liu Ying >>> --- >>> v2: >>> - s/i.MX8MP/i.MX8/, >>> - Add Reviewed-by. >>> --- >>> drivers/gpu/drm/bridge/imx/Kconfig | 4 ++++ >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/drivers/gpu/drm/bridge/imx/Kconfig >>> b/drivers/gpu/drm/bridge/imx/Kconfig >>> index 212a7b0e64fd8b5a..608f47f41bcd1c81 100644 >>> --- a/drivers/gpu/drm/bridge/imx/Kconfig >>> +++ b/drivers/gpu/drm/bridge/imx/Kconfig >>> @@ -1,3 +1,5 @@ >>> +if ARCH_MXC || COMPILE_TEST >>> + >>> config DRM_IMX8QM_LDB >>> tristate "Freescale i.MX8QM LVDS display bridge" >>> depends on OF >>> @@ -41,3 +43,5 @@ config DRM_IMX8QXP_PIXEL_LINK_TO_DPI >>> help >>> Choose this to enable pixel link to display pixel >>> interface(PXL2DPI) >>> found in Freescale i.MX8qxp processor. >>> + >>> +endif # ARCH_MXC || COMPILE_TEST >> >> I was wondering why those were added in drivers/gpu/drm/bridge/imx >> since they are specific to NXP SoCs, >> I think they should be moved in the right drm imx subsystem instead >> of this change. > > There are 2 directories which contain display controller drivers for > i.MX SoCs: > a. drivers/gpu/drm/imx - i.MX51/53/6qdl IPUv3, i.MX8mq DCSS and > i.MX8qm/qxp DPU([1], not landed yet) > b. drivers/gpu/drm/mxsfb - i.MX23/28/6sx/8mq LCDIF and i.MX8mp > LCDIFv3([2], not landed yet) > > Bridges added in drivers/gpu/drm/bridge/imx make it possible to share > bridge drivers across display controllers. I see chance to use the > LVDS Display Bridge(LDB) helper(imx-ldb-helper.c) for i.MX6sx LDB. Thanks for the explanation, LGTM Reviewed-by: Neil Armstrong > > [1] > https://patchwork.kernel.org/project/dri-devel/patch/20220407091156.1211923-6-victor.liu@nxp.com/ > [2] > https://patchwork.kernel.org/project/dri-devel/patch/20220624180201.150417-2-marex@denx.de/ > > Regards, > Liu Ying >