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 B667DC77B76 for ; Thu, 20 Apr 2023 15:29:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231967AbjDTP3x (ORCPT ); Thu, 20 Apr 2023 11:29:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231654AbjDTP3v (ORCPT ); Thu, 20 Apr 2023 11:29:51 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C7EB3AB7; Thu, 20 Apr 2023 08:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=mUbYjNflH+AijfNqLX0x7O2v9BBYIHBK3Y4JvKS7bb4=; b=Nu3LIq/z3UMcDLXzqPvr9Sm0Yp NNTe3H/n2snKWMv72PtH6YrBkmg8+yhOXG9yDB00lo9ZnW6yZfE1W8WKEH/ul9Zo2rrW/+F10sBzT KnuXSC8Kho4g0TqKbQbnybsl5lJfTSaeOlwoiUS6oEhndvJ1lN8nUHjTJxPTObOC8AN8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ppWDy-00Annn-D5; Thu, 20 Apr 2023 17:29:30 +0200 Date: Thu, 20 Apr 2023 17:29:30 +0200 From: Andrew Lunn To: Arnd Bergmann Cc: Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Christian Marangi , Arnd Bergmann , Russell King , Frank Sae , Randy Dunlap , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: fix circular LEDS_CLASS dependencies Message-ID: References: <20230420084624.3005701-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230420084624.3005701-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 20, 2023 at 10:45:51AM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The CONFIG_PHYLIB symbol is selected by a number of device drivers that > need PHY support, but it now has a dependency on CONFIG_LEDS_CLASS, > which may not be enabled, causing build failures. > > Avoid the risk of missing and circular dependencies by guarding the > phylib LED support itself in another Kconfig symbol that can only be > enabled if the dependency is met. > > This could be made a hidden symbol and always enabled when both CONFIG_OF > and CONFIG_LEDS_CLASS are reachable from the phylib, but there may be an > advantage in having users see this option when they have a misconfigured > kernel without built-in LED support. > > Fixes: 01e5b728e9e4 ("net: phy: Add a binding for PHY LEDs") > Signed-off-by: Arnd Bergmann This is for net-next. Reviewed-by: Andrew Lunn Andrew