From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FE67C433E0 for ; Wed, 10 Jun 2020 20:05:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 346F3206F7 for ; Wed, 10 Jun 2020 20:05:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730500AbgFJUFa (ORCPT ); Wed, 10 Jun 2020 16:05:30 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:33122 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727877AbgFJUF3 (ORCPT ); Wed, 10 Jun 2020 16:05:29 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1jj6yU-0005Rc-Ay; Wed, 10 Jun 2020 22:05:26 +0200 Date: Wed, 10 Jun 2020 22:05:26 +0200 From: Andrew Lunn To: Florian Fainelli Cc: Heiner Kallweit , Michal Kubecek , "netdev@vger.kernel.org" Subject: Re: ethtool 5.7: netlink ENOENT error when setting WOL Message-ID: <20200610200526.GB19869@lunn.ch> References: <77652728-722e-4d3b-6737-337bf4b391b7@gmail.com> <6359d5f8-50e4-a504-ba26-c3b6867f3deb@gmail.com> <20200610091328.evddgipbedykwaq6@lion.mk-sys.cz> <0353ce74-ffc6-4d40-bf0f-d2a7ad640b30@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0353ce74-ffc6-4d40-bf0f-d2a7ad640b30@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > Not sure it makes sense to build ETHTOOL_NETLINK as a module, but at > least ensuring that ETHTOOL_NETLINK is built into the kernel if PHYLIB=y > or PHYLIB=m would make sense, or, better we find a way to decouple the > two by using function pointers from the phy_driver directly that way > there is no symbol dependency (but reference counting has to work). Hi Florian It is not so easy to make PHYLIB=m work. ethtool netlink needs to call into the phylib core in order to trigger a cable test, not just PHY drivers. Ideas welcome. Andrew