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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 056D4EB64DD for ; Wed, 26 Jul 2023 01:31:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229954AbjGZBbU (ORCPT ); Tue, 25 Jul 2023 21:31:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjGZBbS (ORCPT ); Tue, 25 Jul 2023 21:31:18 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DF102699 for ; Tue, 25 Jul 2023 18:31:09 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 8D27124E207; Wed, 26 Jul 2023 09:31:01 +0800 (CST) Received: from EXMBX062.cuchost.com (172.16.6.62) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 26 Jul 2023 09:31:01 +0800 Received: from [192.168.125.107] (183.27.99.135) by EXMBX062.cuchost.com (172.16.6.62) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 26 Jul 2023 09:31:00 +0800 Message-ID: Date: Wed, 26 Jul 2023 09:30:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE To: Geert Uytterhoeven , Vinod Koul , Kishon Vijay Abraham I , Minda Chen , Roger Quadros CC: , References: <12097f6107a18e2f7cfb80f47ac7b27808e062c4.1690300076.git.geert+renesas@glider.be> Content-Language: en-US From: Changhuang Liang In-Reply-To: <12097f6107a18e2f7cfb80f47ac7b27808e062c4.1690300076.git.geert+renesas@glider.be> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [183.27.99.135] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX062.cuchost.com (172.16.6.62) X-YovoleRuleAgent: yovoleflag Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/7/25 23:49, Geert Uytterhoeven wrote: > The various StarFive PHYs are only present on StarFive SoCs. Hence add > a dependency on ARCH_STARFIVE, to prevent asking the user about these > drivers when configuring a kernel without StarFive SoC support. > > Signed-off-by: Geert Uytterhoeven > --- > drivers/phy/starfive/Kconfig | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/phy/starfive/Kconfig b/drivers/phy/starfive/Kconfig > index a560533a674ee0a5..4457b3872aa146a4 100644 > --- a/drivers/phy/starfive/Kconfig > +++ b/drivers/phy/starfive/Kconfig > @@ -3,6 +3,8 @@ > # Phy drivers for StarFive platforms > # > > +if ARCH_STARFIVE || COMPILE_TEST > + > config PHY_STARFIVE_JH7110_DPHY_RX > tristate "StarFive JH7110 D-PHY RX support" > select GENERIC_PHY > @@ -31,3 +33,5 @@ config PHY_STARFIVE_JH7110_USB > used with the Cadence USB controller. > If M is selected, the module will be called > phy-jh7110-usb.ko. > + > +endif # ARCH_STARFIVE || COMPILE_TEST For dphy rx parts: Acked-by: Changhuang Liang Thanks, Changhuang