Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp152779pxu; Tue, 24 Nov 2020 22:35:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxHvNSZt9N6AK5zzsnoooQU76RN1KCY9EhqEjhmkzEGuXXjUZ/EgrvKMDL8g+OyJ5+ZKqT X-Received: by 2002:a17:906:76d3:: with SMTP id q19mr1897906ejn.162.1606286149435; Tue, 24 Nov 2020 22:35:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606286149; cv=none; d=google.com; s=arc-20160816; b=0/L0+YhDKwvTpg/xNIx+l/hLWwOxarTzEBE0QyrWhtimd0Hz4UPwzdGX4KciAY8WQS /L9CYpdxhmYE8poB/3OZypVSU0FWTGy9GkPUVpC7zaAwAKFEnnSRmmWkcK9gAABoGPbk seMKmXAUOZHvRieggm5bjdOdUfFUbQdwV+UTYQCkQxoA9apA7b6MQ7tibguZOAidd81t 8e7b6MVNyW+HiUuYZICnB98ul9B0IDiDJtLlJ2QtWgZbXurfUvC7UVB9K8pX9jUwOaXK T8R0OeOmnccdfvp8G4q6AF16Qjym/sPg7ytD0OUO7v9y0tL7QI2g9uzYFsJnHqt4Awpj P64g== 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 :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=hg9zU5p6VoPxjtClkeKtNha9z4oPhJCQTFu/f5lqHns=; b=PpkTrcrNNLBr3Bc0Vha/yMxL2Z+LTI3Nz0tWCK7LkdbeEkI5V8I/3fcc2sv6e3dCVS Sg6sKRk0DFTxRPmzELTUk8ZqGsJbnHivVOAeJkGqfdKQ83SlA0EsRjucm1VVaB4u6wLw 4t5Mo29sih+WqnnVEspzPd1ITL4ZQ/VYzQ027mpPNj+najoVxjVVA9R7A+ot1YnCivNH ygZef6du+4YHjBtRWlfJXKR9E8zIpFcPkKmq7tQ35cg4OBUqbh8gkBwd+E9I7yLSaP8+ d4fBThEO9A1eEObZa/V04EXUETYeQYFSW6QvhRcrR0Mb7oH69DgJMDua6+ypajdnSVDw /VhQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si678845ejc.653.2020.11.24.22.35.25; Tue, 24 Nov 2020 22:35:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725998AbgKYGbf (ORCPT + 99 others); Wed, 25 Nov 2020 01:31:35 -0500 Received: from mail.loongson.cn ([114.242.206.163]:41818 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725562AbgKYGbf (ORCPT ); Wed, 25 Nov 2020 01:31:35 -0500 Received: from [10.130.0.80] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxL9Mz+r1fSWkWAA--.45318S3; Wed, 25 Nov 2020 14:31:16 +0800 (CST) Subject: Re: [PATCH] phy/mediatek: Make PHY_MTK_XSPHY depend on HAS_IOMEM and OF_ADDRESS to fix build errors To: Chunfeng Yun , Randy Dunlap References: <1606211233-7425-1-git-send-email-yangtiezhu@loongson.cn> <1606271044.32484.20.camel@mhfsdcap03> <1606285623.7284.8.camel@mhfsdcap03> Cc: Vinod Koul , Kishon Vijay Abraham I , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner , Xuefeng Li From: Tiezhu Yang Message-ID: Date: Wed, 25 Nov 2020 14:31:15 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1606285623.7284.8.camel@mhfsdcap03> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf9DxL9Mz+r1fSWkWAA--.45318S3 X-Coremail-Antispam: 1UD129KBjvJXoW7uw4fWw47WF1kAw1DWr45Wrg_yoW8tr13pr ZxtF4jkF1DJryDGFWIqa4DWF1aya93try7Wrn3G3sxZrn0yry7Awn8ta429FWDZrs7uw10 qry0ga43W3WUA37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvm14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j 6F4UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcVAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCYjI0SjxkI62AI1cAE67vI Y487MxkIecxEwVAFwVW8AwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8Jw C20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAF wI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjx v20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2 z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnU UI43ZEXa7VUjkpnJUUUUU== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/25/2020 02:27 PM, Chunfeng Yun wrote: > On Tue, 2020-11-24 at 19:31 -0800, Randy Dunlap wrote: >> On 11/24/20 6:24 PM, Chunfeng Yun wrote: >>> Hi Tiezhu, >>> >>> On Tue, 2020-11-24 at 17:47 +0800, Tiezhu Yang wrote: >>>> devm_ioremap_resource() will be not built in lib/devres.c if >>>> CONFIG_HAS_IOMEM is not set, of_address_to_resource() will be >>>> not built in drivers/of/address.c if CONFIG_OF_ADDRESS is not >>>> set, and then there exists two build errors about undefined >>>> reference to "devm_ioremap_resource" and "of_address_to_resource" >>>> in phy-mtk-xsphy.c under COMPILE_TEST and CONFIG_PHY_MTK_XSPHY, >>>> make PHY_MTK_XSPHY depend on HAS_IOMEM and OF_ADDRESS to fix it. >>>> >>>> Reported-by: kernel test robot >>>> Signed-off-by: Tiezhu Yang >>>> --- >>>> drivers/phy/mediatek/Kconfig | 2 ++ >>>> 1 file changed, 2 insertions(+) >>>> >>>> diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/Kconfig >>>> index 50c5e93..66df045 100644 >>>> --- a/drivers/phy/mediatek/Kconfig >>>> +++ b/drivers/phy/mediatek/Kconfig >>>> @@ -30,6 +30,8 @@ config PHY_MTK_XSPHY >>>> tristate "MediaTek XS-PHY Driver" >>>> depends on ARCH_MEDIATEK || COMPILE_TEST >>>> depends on OF > Hi Tiezhu, > > Would you please help to put OF and OF_ADDRESS into one line as > following: > depends on OF && OF_ADDRESS. > > Also please help to add them for PHY_MTK_TPHY. > And change the tile 'phy/mediatek: ...' as 'phy: mediatek: ...' OK, no problem, I will do it. Thanks, Tiezhu > > Thank you > > >>>> + depends on HAS_IOMEM >>>> + depends on OF_ADDRESS >>> Why not add them into deconfig but here? In fact I don't know which way >>> is better and follow the kernel rule. >>> >>> Vinod and Kishon, do you have any suggestion about this? >> Putting them into a defconfig won't prevent random build errors >> while putting them here will (or at least should). > hi Randy, > > Got it, thank you > >>>> select GENERIC_PHY >>>> help >>>> Enable this to support the SuperSpeedPlus XS-PHY transceiver for >> The patch LGTM. >> >> Acked-by: Randy Dunlap >> >> thanks.