From: David Miller Subject: Re: [PATCH net-next resubmit 1/2] net: phy: core: use genphy version of callbacks read_status and config_aneg per default Date: Fri, 01 Dec 2017 15:42:33 -0500 (EST) Message-ID: <20171201.154233.1577368959365305544.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: f.fainelli@gmail.com, andrew@lunn.ch, netdev@vger.kernel.org To: hkallweit1@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:38870 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751031AbdLAUmf (ORCPT ); Fri, 1 Dec 2017 15:42:35 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Heiner Kallweit Date: Thu, 30 Nov 2017 23:46:19 +0100 > read_status and config_aneg are the only mandatory callbacks and most > of the time the generic implementation is used by drivers. > So make the core fall back to the generic version if a driver doesn't > implement the respective callback. > > Also currently the core doesn't seem to verify that drivers implement > the mandatory calls. If a driver doesn't do so we'd just get a NPE. > With this patch this potential issue doesn't exit any longer. > > Signed-off-by: Heiner Kallweit > Reviewed-by: Florian Fainelli Applied.