Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4730886iob; Sun, 8 May 2022 23:33:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHacIk3IS7Fj2jIopN1bs/IlkncRV1Dnb75+aT8VwP+LfqJ+tslIk1yMsubjIiWaoCr2uc X-Received: by 2002:a05:6a00:1781:b0:50a:94f0:661d with SMTP id s1-20020a056a00178100b0050a94f0661dmr14697996pfg.10.1652078022070; Sun, 08 May 2022 23:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652078022; cv=none; d=google.com; s=arc-20160816; b=REbeoNhgBbRYz7IewazbmE0k5JMyKkZjmuiPaXVQQ4sSTJWd6xqpw5VeCtejNcVGt2 xTGJOs1EcL03/E181pyTr0ZwcOGC7gZLquYzS6YDc1ZJX6809DN80oUgYqFaeZpcJfEb ACPaVSsnL9fzdgfsd6FWnXx8ChgjP9vmiYglZIEAqBUtu3xisBReodTWs7fls5aRoCOQ VonxGV8yPjhXLORP1KqiCiCsGAQ1v/GejARkwSYL1jFjtGJNWwVM9g9r57A54zDVI+9x Gtfcpm+iGFwVuh5GpSTTqOKI75lZ1wUyxIQZ0OFLv3P6OBkDy/B1KStdnLn7A0Gd3Ra7 e8ag== 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:subject:user-agent:mime-version:date:message-id; bh=sOh5pX05TD7FOqMnbyhXrWR7OLvQskRZqSqek4gB3uk=; b=fcljCF8oCaiERnKgLk8hUtgThCpBmjurQiUX6rQX8fwmBBQKKvsDwJPD+TuRleGD69 unf8TbsLKJTakpwxw9oVbE63Gl/YecmNOAJL6tS3v7y5E+Dr03ZWWEFmT+VAae73sPCj NWP4d5+RLyDmn+yTwdBhVB3u1vYL6wZ4SAGCzxlOOsYXukXsNcTotdQ8hA5UGKsi5JNR a0nB5qVQpHl63UO8kkOTr57YkfYFNS+v+Y67mtkZTkdPyhaJDgr9KG2k0RCBdoCy4f4j nhSZtYIsXqMuRsWhQfwzBapNY8ZSy1yot8U0WU4I+/WK6W1otCgBVwE2t7xCzfBSD4SR UV+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k5-20020a654645000000b003c6c6dfc3e3si2722867pgr.143.2022.05.08.23.33.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:33:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CF87918B941; Sun, 8 May 2022 23:30:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346550AbiEGKOM (ORCPT + 99 others); Sat, 7 May 2022 06:14:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351004AbiEGKOA (ORCPT ); Sat, 7 May 2022 06:14:00 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AEE543397 for ; Sat, 7 May 2022 03:10:14 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4KwNSd3tbvz1JBwq; Sat, 7 May 2022 18:09:05 +0800 (CST) Received: from dggpeml500008.china.huawei.com (7.185.36.147) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 7 May 2022 18:10:12 +0800 Received: from [127.0.0.1] (10.67.111.83) by dggpeml500008.china.huawei.com (7.185.36.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 7 May 2022 18:10:12 +0800 Message-ID: <07b347c4-11dd-6f7f-7a3b-c9f9ed21bb84@huawei.com> Date: Sat, 7 May 2022 18:10:11 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH -next] drm/rockchip: Fix Kconfig dependencies To: Andy Yan , , , , , , CC: , , , References: <20220507010039.117310-1-renzhijie2@huawei.com> <45058759-13dd-aa43-ac88-2a7c60baa22b@rock-chips.com> From: Ren Zhijie In-Reply-To: <45058759-13dd-aa43-ac88-2a7c60baa22b@rock-chips.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.111.83] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500008.china.huawei.com (7.185.36.147) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 在 2022/5/7 14:39, Andy Yan 写道: > Hi Zhijie: > > On 5/7/22 09:00, Ren Zhijie wrote: >> If CONFIG_ROCKCHIP_ANALOGIX_DP is not set, the rockchip drm driver >> will fail to link: >> >> drivers/gpu/drm/rockchip/cdn-dp-core.o: In function >> `cdn_dp_connector_mode_valid': >> cdn-dp-core.c:(.text+0x1e1): undefined reference to >> `drm_dp_bw_code_to_link_rate' >> cdn-dp-core.c:(.text+0x1f4): undefined reference to >> `drm_dp_bw_code_to_link_rate' >> drivers/gpu/drm/rockchip/cdn-dp-core.o: In function >> `cdn_dp_pd_event_work': >> cdn-dp-core.c:(.text+0x138e): undefined reference to >> `drm_dp_channel_eq_ok' >> drivers/gpu/drm/rockchip/cdn-dp-reg.o: In function `cdn_dp_train_link': >> cdn-dp-reg.c:(.text+0xd5a): undefined reference to >> `drm_dp_bw_code_to_link_rate' >> >> The problem is that the DP-helper module has been replaced by the >> display-helper module. >> So the driver have to select it. >> >> Reported-by: Hulk Robot >> Fixes: 1e0f66420b13("drm/display: Introduce a DRM display-helper >> module") >> Signed-off-by: Ren Zhijie >> --- >>   drivers/gpu/drm/rockchip/Kconfig | 2 ++ >>   1 file changed, 2 insertions(+) >> >> diff --git a/drivers/gpu/drm/rockchip/Kconfig >> b/drivers/gpu/drm/rockchip/Kconfig >> index 5afab49dc4f2..eb9ffa9e357d 100644 >> --- a/drivers/gpu/drm/rockchip/Kconfig >> +++ b/drivers/gpu/drm/rockchip/Kconfig >> @@ -47,6 +47,8 @@ config ROCKCHIP_ANALOGIX_DP >>   config ROCKCHIP_CDN_DP >>       bool "Rockchip cdn DP" >>       depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m) >> +    select DRM_DISPLAY_HELPER >> +    select DRM_DISPLAY_DP_HELPER > > > There are two dp(ANALOGIX_DP and CDN_DP) at rockchip drm mainline, > > for a totally cleanup and alignment, I think it's better to remove > "select DRM_DISPLAY_HELPER if ROCKCHIP_ANALOGIX_DP" under > DRM_ROCKCHIP  at the head, > > and separately add the select for ROCKCHIP_ANALOGIX_DP and > ROCKCHIP_CDN_DP. > Sure, will do that in v2. >>       help >>         This selects support for Rockchip SoC specific extensions >>         for the cdn DP driver. If you want to enable Dp on > .