[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d2026529-e57c-6e1a-2a54-f922b1b0d797@silicom-usa.com>
Date: Fri, 4 Jan 2019 20:40:59 +0000
From: Stephen Douthit <stephend@...icom-usa.com>
To: Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Dave Jones <davej@...emonkey.org.uk>,
Florian Fainelli <f.fainelli@...il.com>
Subject: Re: [net v3] ixgbe: fix Kconfig when driver is not a module
On 1/4/19 1:48 PM, Jeff Kirsher wrote:
> The new ability added to the driver to use mii_bus to handle MII related
> ioctls is causing compile issues when the driver is compiled into the
> kernel (i.e. not a module).
>
> The problem was in selecting MDIO_DEVICE instead of the preferred PHYLIB
> Kconfig option. The reason being that MDIO_DEVICE had a dependency on
> PHYLIB and would be compiled as a module when PHYLIB was a module, no
> matter whether ixgbe was compiled into the kernel.
>
> CC: Dave Jones <davej@...emonkey.org.uk>
> CC: Steve Douthit <stephend@...icom-usa.com>
> CC: Florian Fainelli <f.fainelli@...il.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
> ---
> v2: fixed up the Kconfig help section to include the clause 22/45
> address information and also changed the IXGBE_MDIO config option to be
> dependent upon PHYLIB versus MDIO_BUS since that appears to be the
> common usage
>
> v3: Steve Douthit found a much simpler solution of changing the
> dependency from MDIO_DEVICE to PHYLIB, which is consistent with other
> Ethernet drivers
>
> drivers/net/ethernet/intel/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net/ethernet/intel/Kconfig
> index 31fb76ee9d82..a1246e89aad4 100644
> --- a/drivers/net/ethernet/intel/Kconfig
> +++ b/drivers/net/ethernet/intel/Kconfig
> @@ -159,7 +159,7 @@ config IXGBE
> tristate "Intel(R) 10GbE PCI Express adapters support"
> depends on PCI
> select MDIO
> - select MDIO_DEVICE
> + select PHYLIB
> imply PTP_1588_CLOCK
> ---help---
> This driver supports Intel(R) 10GbE PCI Express family of
>
Reviewed-by: Stephen Douthit <stephend@...icom-usa.com>
Powered by blists - more mailing lists