Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1265834

Re: [PATCH] mvneta: add FIXED_PHY dependency

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] mvneta: add FIXED_PHY dependency
Date 2015-11-09 17:40 +0100
Message-ID <qsXE6-pE-9@gated-at.bofh.it> (permalink)
References <qsViW-7qm-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Arnd Bergmann <arnd@arndb.de>
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 <arnd@arndb.de>
> 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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mvneta: add FIXED_PHY dependency Arnd Bergmann <arnd@arndb.de> - 2015-11-09 15:10 +0100
  Re: [PATCH] mvneta: add FIXED_PHY dependency David Miller <davem@davemloft.net> - 2015-11-09 17:40 +0100
  Re: [PATCH] mvneta: add FIXED_PHY dependency Andrew Lunn <andrew@lunn.ch> - 2015-11-09 17:50 +0100
    Re: [PATCH] mvneta: add FIXED_PHY dependency Arnd Bergmann <arnd@arndb.de> - 2015-11-09 18:00 +0100
      Re: [PATCH] mvneta: add FIXED_PHY dependency Andrew Lunn <andrew@lunn.ch> - 2015-11-09 18:10 +0100
        Re: [PATCH] mvneta: add FIXED_PHY dependency Arnd Bergmann <arnd@arndb.de> - 2015-11-09 18:20 +0100
        Re: [PATCH] mvneta: add FIXED_PHY dependency Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-11-09 18:40 +0100
      Re: [PATCH] mvneta: add FIXED_PHY dependency Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-11-09 18:10 +0100
        Re: [PATCH] mvneta: add FIXED_PHY dependency Arnd Bergmann <arnd@arndb.de> - 2015-11-09 18:20 +0100
          Re: [PATCH] mvneta: add FIXED_PHY dependency Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-11-09 18:40 +0100

csiph-web