From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Lothar=20Wa=C3=9Fmann?= Subject: [PATCH 0/3] net: fec: Reset ethernet PHY whenever the enet_out clock Date: Mon, 30 Nov 2015 12:32:45 +0100 Message-ID: <1448883168-30742-1-git-send-email-LW@KARO-electronics.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Andrew Lunn , "David S. Miller" , Fabio Estevam , Greg Ungerer , Kevin Hao , =?UTF-8?q?Lothar=20Wa=C3=9Fmann?= , Lucas Stach , Nimrod Andy , Philippe Reynes , Richard Cochran , Russell King , Sascha Hauer , Stefan Agner , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Jeff Kirsher , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Return-path: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org This patchset fixes a regression introduced by commit 8fff755e9f8d ("net: fec: Ensure clocks are enabled while using mdio bus") for ethernet PHYs that are using ENET_OUT as reference clock (on i.MX6 or i.MX28) The first patch is a cleanup patch that removes redundant NULL checks. The second patch converts the driver to use the 'gpiod' framework. The third patch makes sure, fec_reset_phy() is called whenever the enet_out clock has been (re-)enabled to get the PHY into a consistent state.