From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: Re: ixgbe / mdio dependancy error Date: Wed, 2 Jan 2019 15:42:21 -0800 Message-ID: References: <20190102154817.cr3yqyumamvz6rzh@codemonkey.org.uk> <44bb3689-d74e-cac4-c5b9-ce1f1545e77e@silicom-usa.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Andrew Lunn , Andrew Bowers To: Steve Douthit , "jeffrey.t.kirsher@intel.com" , Dave Jones , "netdev@vger.kernel.org" Return-path: Received: from mail-yb1-f195.google.com ([209.85.219.195]:43428 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726718AbfABXma (ORCPT ); Wed, 2 Jan 2019 18:42:30 -0500 Received: by mail-yb1-f195.google.com with SMTP id t16so11130315ybk.10 for ; Wed, 02 Jan 2019 15:42:29 -0800 (PST) In-Reply-To: <44bb3689-d74e-cac4-c5b9-ce1f1545e77e@silicom-usa.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 1/2/19 3:30 PM, Steve Douthit wrote: >> This is because PHYLIB=m which forces MDIO_BUS=m. If you have IXGBE=y, >> then PHYLIB and MDIO_BUS can't be modules. Working on a patch to >> correct the issue. > > There was a review comment to select MDIO_DEVICE instead of PHYLIB. > PHYLIB seems correct to me now that I'm looking at this again though. I > came up empty looking for any other drivers that select MDIO_DEVICE. > > The objection was that DSA devices wouldn't need the PHYLIB API, so why > force it to be built-in. NET_DSA selects PHYLINK which selects PHYLIB. > I think we're ok going back to select PHYLIB if that was the only > problem. Apologies if this was a slightly misguided recommendation, I have to admit, I did not consider a case where ixgbe would not be modular while everything else it would now depend on is. There is a similar pattern with any driver that e.g: has a HWMON capability in that you must add something like: depends on !FOO=y && DEPS=m or something like that. -- Florian