Received: by 10.223.185.116 with SMTP id b49csp5491483wrg; Wed, 7 Mar 2018 12:42:32 -0800 (PST) X-Google-Smtp-Source: AG47ELtbZ5g9F2IiAJmpL0bnPNySdmYVMGoKa1i/06LNqZrW3vHxUD8iT6IiUbjRdqlS+B+2PQH6 X-Received: by 10.98.72.10 with SMTP id v10mr23735301pfa.148.1520455352645; Wed, 07 Mar 2018 12:42:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520455352; cv=none; d=google.com; s=arc-20160816; b=xL5vEYEHS6xWZDzZ2AEQ4i+G8pb5q/uPohteEW7NjEccgT3KCC2jMx7uO2luxB7Wll R6OtTbBCFl2kHUnpniqWkJ41jAYJDj5EJIxuoClWkZmB2uYN0J3FijA9GwzpJhMI35Ae 9fD9/8SG98170GWApCFrtj/edBzLnhEUITheHdB4PVLz2lPs7UJNLXVXV1rZ1SAeLJXy yyBn6v7hXhayOvZ13MYIHEfCzXSs8NHlJOxgzF42ivE1DwBDQw08yz8djxwq9pbvxMVG YLLbf7pLkmIZ4prBIWnmloa49DtWEPv6RfYYJsBe3j4r15mUCMGnXjUQsSqVwneyBDVg 3rnA== 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=jUNX888lgMji6Xm/BRJfbdzZbTPlopaVEy21SQENzuE=; b=c2dYGD/PnMAMw7y/1WSKlubn6MAss6Xb5O9I8ZbmXJ+QtQhAefu9Bq/7el9poMsZFw 154ANMe/vVZyKdqu2peb2lzs++cHvVTHmKgcFDF47UK1tNoacTUkP4neQ4fNqiuBTM9g 2KbGjz+5xTVi8OUj66M1Oc3GwuQ9kd+fNpnZEL9Wm07tGiQQczNmnxg7LxUi/EVvp27M C2/pOjT0CfIfJPmrMBN5ZZGz1ThXWsum4LrTQ6ymE5L2Ze4loxKYaP+qoptFRp/TPeoN Tj2Ag3SmXwCnSxTiE4jWIcIkdmnq22s8zbnenayhzE3rA2jKOyfgeiHgUJqvTXPVAodk FgNA== 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 n11si11839319pgq.439.2018.03.07.12.42.18; Wed, 07 Mar 2018 12:42:32 -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 S934768AbeCGTlf (ORCPT + 99 others); Wed, 7 Mar 2018 14:41:35 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:41102 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934671AbeCGTlc (ORCPT ); Wed, 7 Mar 2018 14:41:32 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id AFE381016; Wed, 7 Mar 2018 19:41:31 +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.15 056/122] net: phy: fix phy_start to consider PHY_IGNORE_INTERRUPT Date: Wed, 7 Mar 2018 11:37:48 -0800 Message-Id: <20180307191737.297732221@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180307191729.190879024@linuxfoundation.org> References: <20180307191729.190879024@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.15-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 @@ -844,7 +844,7 @@ void phy_start(struct phy_device *phydev phy_resume(phydev); /* 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;