Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752450AbbKIQg2 (ORCPT ); Mon, 9 Nov 2015 11:36:28 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:34847 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752363AbbKIQgZ (ORCPT ); Mon, 9 Nov 2015 11:36:25 -0500 Date: Mon, 09 Nov 2015 11:36:22 -0500 (EST) Message-Id: <20151109.113622.1309064405711224118.davem@davemloft.net> To: arnd@arndb.de Cc: netdev@vger.kernel.org, stsp@users.sourceforge.net, f.fainelli@gmail.com, thomas.petazzoni@free-electrons.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] mvneta: add FIXED_PHY dependency From: David Miller In-Reply-To: <4225885.EYXTHjRPmX@wuerfel> References: <4225885.EYXTHjRPmX@wuerfel> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 09 Nov 2015 08:36:24 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1618 Lines: 37 From: Arnd Bergmann Date: Mon, 09 Nov 2015 15:08:57 +0100 > The fixed_phy infrastructure is done in a way that is optional, > by providing 'static inline' helper functions doing nothing in > include/linux/phy_fixed.h for all its APIs. However, three out > of the four users (DSA, BCMGENET, and SYSTEMPORT) always > 'select FIXED_PHY', presumably because they need that. > MVNETA is the fourth one, and if that is built-in but FIXED_PHY > is configured as a loadable module, we get a link error: > > drivers/built-in.o: In function `mvneta_fixed_link_update': > fpga-mgr.c:(.text+0x33ed80): undefined reference to `fixed_phy_update_state' > > Presumably this driver has the same dependency as the others, > so this patch also uses 'select' to ensure that the fixed-phy > support is built-in. > > Signed-off-by: Arnd Bergmann > Fixes: 898b2970e2c9 ("mvneta: implement SGMII-based in-band link state signaling") > --- > Found using ARM randconfig tests. An alternative here would be > to use 'depends on FIXED_PHY || FIXED_PHY=n', I picked the 'select' > approach for consistency. > > Should we perhaps make 'FIXED_PHY' a silent option and remove the > inline helpers, based on the assumption that a driver that wants these > will not work without them? This seems reasonable to fix the problem for the time being, applied. Thanks Arnd. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/