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


Groups > linux.kernel > #1432696

Re: [PATCH] of_mdio: select fixed phy support unconditionally

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] of_mdio: select fixed phy support unconditionally
Date 2016-06-28 11:50 +0200
Message-ID <rOXOy-593-17@gated-at.bofh.it> (permalink)
References <rNvB0-6gB-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Arnd Bergmann <arnd@arndb.de>
Date: Fri, 24 Jun 2016 11:24:08 +0200

> Calling the fixed-phy functions when CONFIG_FIXED_PHY=m as a previous
> change tried cannot work if the caller is in built-in code:
> 
> drivers/of/built-in.o: In function `of_phy_register_fixed_link':
> of_reserved_mem.c:(.text+0x85e0): undefined reference to `fixed_phy_register'
> 
> Making of_mdio depend on 'FIXED_PHY || !FIXED_PHY' would solve this
> dependency by enforcing that OF_MDIO itself becomes a loadable module
> when FIXED_PHY=y, but that creates a different dependency as it
> breaks any built-in ethernet driver that uses of_mdio.
> 
> Making FIXED_PHY a bool option also cannot work, since it depends on
> PHYLIB, which again is tristate.
> 
> This version now uses 'select FIXED_PHY' to ensure that the fixed-phy
> portion of of_mdio is not optional. The main downside of this is
> a small increase in code size for cases that do not need fixed phy
> support, but it should avoid all of the link-time problems.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: d1bd330a229f ("of_mdio: Enable fixed PHY support if driver is a module")

Applied to net-next, thanks Arnd.

In the future, please be explicit about what tree a patch is
targetting by specifying it in your Subject line, as:

	[PATCH net-next] ...

or similar.

Thanks.

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


Thread

[PATCH] of_mdio: select fixed phy support unconditionally Arnd Bergmann <arnd@arndb.de> - 2016-06-24 11:30 +0200
  Re: [PATCH] of_mdio: select fixed phy support unconditionally Randy Dunlap <rdunlap@infradead.org> - 2016-06-25 20:00 +0200
  Re: [PATCH] of_mdio: select fixed phy support unconditionally David Miller <davem@davemloft.net> - 2016-06-28 11:50 +0200
    Re: [PATCH] of_mdio: select fixed phy support unconditionally Arnd Bergmann <arnd@arndb.de> - 2016-06-28 11:50 +0200

csiph-web