Received: by 10.223.185.116 with SMTP id b49csp5455804wrg; Wed, 7 Mar 2018 12:04:07 -0800 (PST) X-Google-Smtp-Source: AG47ELuBn1yAkl8b4mfvEn6NcIyXy5pvFRDfu9emUh387hccnwu7z/X9CHUvJ9sGfEI70v9FL1O/ X-Received: by 10.98.64.73 with SMTP id n70mr23996771pfa.142.1520453047142; Wed, 07 Mar 2018 12:04:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520453047; cv=none; d=google.com; s=arc-20160816; b=sXf68OfSKysKNy9iu8lPRvQlzR4b8LHjp3Teck1myRsBRYf+EcE0O+EB3OHuf5SkQN bKVJikxNrYpqmvjBE15gnvlAZgpfXu31daCnirDPFZv61bXjs0EeVk6PB4fF+zs2ivhU GKKCjV107cKOryEGQhnO5E6jZgi7m/1CD2fk2wUR/alYHa+H3m5fZ0EBURpyQMahbQCF cYXWeUggri1pbeQzJNBoqCW4h4ztz8rx1JqEZq+A2jo5qnRWJRpG5fdu2YotffvB4Io6 Ft0qjOafCiE/rfnfbqH6WJoD7y9TIC0WEbZdTSR3x0v+PNWwWzx7WIL1Y77BaDeR1kwT dU0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=488pdMX254qnt7ULRKKjp/ioADVaYcMOP9R4AqXQgdE=; b=AjNG3pf3CKfXCjHziC53sRNUf86M7M70s9a6vCVodRbu1/EoOT0K7vkg2izzmqT5uv MjRqp9IVO//bIdIsFI3DL3QvZICL0IN36jUSUtU8Tv/mDCgbSoy65o9yTb8f6Em6yUtl 0vZxFHwLy7HIByy9z+9BOZPpMQU+06ZCB3Fvs2xVc0JtKuChfNzptzB1bV05TRyiRZ6W 5znvMBed0mqM9NxUHSfNxVISlEwqMY5J/tJyQtSal27+D1+5RXI0y81z5o2/EViQ9R4a i2hG1/xL4247BG50ROW3v/8vyO4UnWQ9AhFO71rLc2MFwg3bWlKa9B4j3wm4Ol5X7aF/ 0/6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h33-v6si13554658plh.673.2018.03.07.12.03.52; Wed, 07 Mar 2018 12:04:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965134AbeCGUCs (ORCPT + 99 others); Wed, 7 Mar 2018 15:02:48 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44742 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965593AbeCGTqo (ORCPT ); Wed, 7 Mar 2018 14:46:44 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 86AA1106A; Wed, 7 Mar 2018 19:46:43 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiner Kallweit , Florian Fainelli , "David S. Miller" Subject: [PATCH 4.14 051/110] net: phy: fix phy_start to consider PHY_IGNORE_INTERRUPT Date: Wed, 7 Mar 2018 11:38:34 -0800 Message-Id: <20180307191046.235254674@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180307191039.748351103@linuxfoundation.org> References: <20180307191039.748351103@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heiner Kallweit [ Upstream commit 08f5138512180a479ce6b9d23b825c9f4cd3be77 ] This condition wasn't adjusted when PHY_IGNORE_INTERRUPT (-2) was added long ago. In case of PHY_IGNORE_INTERRUPT the MAC interrupt indicates also PHY state changes and we should do what the symbol says. Fixes: 84a527a41f38 ("net: phylib: fix interrupts re-enablement in phy_start") Signed-off-by: Heiner Kallweit Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/phy/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -842,7 +842,7 @@ void phy_start(struct phy_device *phydev break; case PHY_HALTED: /* make sure interrupts are re-enabled for the PHY */ - if (phydev->irq != PHY_POLL) { + if (phy_interrupt_is_valid(phydev)) { err = phy_enable_interrupts(phydev); if (err < 0) break;