From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next v2] net: phy: remove parameter new_link from phy_mac_interrupt() Date: Mon, 15 Jan 2018 13:45:22 -0500 (EST) Message-ID: <20180115.134522.1443386500581434982.davem@davemloft.net> References: <265d0b95-874e-5d94-aa4e-3bcf9b2b396d@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: andrew@lunn.ch, f.fainelli@gmail.com, opendmb@gmail.com, netdev@vger.kernel.org To: hkallweit1@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:50538 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750704AbeAOSpX (ORCPT ); Mon, 15 Jan 2018 13:45:23 -0500 In-Reply-To: <265d0b95-874e-5d94-aa4e-3bcf9b2b396d@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Heiner Kallweit Date: Wed, 10 Jan 2018 21:21:31 +0100 > I see two issues with parameter new_link: > > 1. It's not needed. See also phy_interrupt(), works w/o this parameter. > phy_mac_interrupt sets the state to PHY_CHANGELINK and triggers the > state machine which then calls phy_read_status. And phy_read_status > updates the link state. > > 2. phy_mac_interrupt is used in interrupt context and getting the link > state may sleep (at least when having to access the PHY registers > via MDIO bus). > > So let's remove it. > > Signed-off-by: Heiner Kallweit > --- > v2: > - combine both patches to avoid a build failure Applied, thank you.