From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] net: mdio: Only perform gpio reset for PHYs Date: Wed, 03 Jan 2018 11:08:33 -0500 (EST) Message-ID: <20180103.110833.1858183703371598493.davem@davemloft.net> References: <1514911226-24622-1-git-send-email-andrew@lunn.ch> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: f.fainelli@gmail.com, sean.wang@mediatek.com, sergei.shtylyov@cogentembedded.com, geert+renesas@glider.be, netdev@vger.kernel.org To: andrew@lunn.ch Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:33382 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751195AbeACQIg (ORCPT ); Wed, 3 Jan 2018 11:08:36 -0500 In-Reply-To: <1514911226-24622-1-git-send-email-andrew@lunn.ch> Sender: netdev-owner@vger.kernel.org List-ID: From: Andrew Lunn Date: Tue, 2 Jan 2018 17:40:26 +0100 > Ethernet switch on the MDIO bus have historically performed their own > handling of the GPIO reset line. The resent patch to have the MDIO > core handle the reset has broken the switch drivers, in that they > cannot claim the GPIO. Some switch drivers need more control over the > GPIO line than what the MDIO core provides. So restore the historical > behaviour by only performing a reset of PHYs, not switches. > > Fixes: bafbdd527d56 ("phylib: Add device reset GPIO support") > Reported-by: Sean Wang > Signed-off-by: Andrew Lunn Applied, thanks Andrew.