Return-Path: Received: from mail-wr0-f172.google.com ([209.85.128.172]:35249 "EHLO mail-wr0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753039AbeCEV3u (ORCPT ); Mon, 5 Mar 2018 16:29:50 -0500 Received: by mail-wr0-f172.google.com with SMTP id l43so18839988wrc.2 for ; Mon, 05 Mar 2018 13:29:50 -0800 (PST) To: Andrew Lunn , Florian Fainelli , David Miller Cc: "netdev@vger.kernel.org" From: Heiner Kallweit Subject: [PATCH v2 net-next 0/2] net: phy: remove phy_error from phy_disable_interrupts Message-ID: <7a212841-6499-18be-b646-33ea69fb7da2@gmail.com> Date: Mon, 5 Mar 2018 22:29:43 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: All callers of phy_disable_interrupts() call phy_error() in the error case. Therefore we don't need to do this within the function too. This change also allows us to use phy_disable_interrupts() in code holding phydev->lock (because phy_error() takes this lock). Make use of this in phy_stop(). v2: - splitted into two separate patches Heiner Kallweit (2): net: phy: remove phy_error from phy_disable_interrupts net: phy: use phy_disable_interrupts in phy_stop drivers/net/phy/phy.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) -- 2.16.2