Received: by 10.223.185.116 with SMTP id b49csp5456156wrg; Wed, 7 Mar 2018 12:04:27 -0800 (PST) X-Google-Smtp-Source: AG47ELuJ69Qf6QUi4Y+cJlXu6kfJwstC8pVRtueghl4myHJlceqi8DcHfeFTy9HfmFlP7I1doBap X-Received: by 10.98.35.195 with SMTP id q64mr23488127pfj.161.1520453067150; Wed, 07 Mar 2018 12:04:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520453067; cv=none; d=google.com; s=arc-20160816; b=Qfuk3eu/wMsFEs3tKatTjNm5PpHeJU/0xQFctIrf7xXosWOW9kxZi3pkRiqkv1tJa5 loSC1ydDwXzrYp5ciJxbSgxoWbVc+hb9znf6Qx92OVmeiCTudgeT4rMY2GvZnet+1i6v /WGFq+Yimr9JXp5qJHAVJQD/oe9xMfQOQ+OXDB9TJzuR0YoXGfj7Y+BzSf88tpi5iNpN RyKqxPYkxJiGDtCCtNETMbkSNicqOKErRHB56VSg6LDi/7WdHqWif/5NYzb8WQHUNBHv ybdQkG/JT+aS8KCfHpvyUoufHG8xoTLjkrW0S84k6gdj4CXaCgnke9F/HAjnPL1eBkTz UxRQ== 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=NEkXSw6S9sK89uMEmQc91OHUtug9aTwkQzdni98TcVw=; b=ocPpufsfwlHS349hNjSn91HgiD9eSK5fj9lZl724jiStnmD4hR6MAPwOeYRNAeust4 zNaBm6J4ram2O8NyIl/wr8wZGidx8mWlOgaemVCCmwwARcmXvMQKB2c1tB5FiE/uBnTy /Ic9Jxb3xOi4W/k9latsdHTtIaSKNbvhjKNbEHwc4jQT/t2FSu1C/1ZPLcz1LC5QzESX Xt9kLbgDy029WCxNKfbbvotohioL6llOflcJEuBbmyuVkAwFhUGGrExEl9AWDrhXaeqV a/ntQ7jaggI/8VLQfcwzxN9pjWMhh9nT5X3yLY1ArPhD3K6+PgFAIWelXNwGVizDXrWD aiOw== 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 y15-v6si11853146plr.406.2018.03.07.12.04.12; Wed, 07 Mar 2018 12:04:27 -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 S965630AbeCGUDR (ORCPT + 99 others); Wed, 7 Mar 2018 15:03:17 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44692 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965572AbeCGTqk (ORCPT ); Wed, 7 Mar 2018 14:46:40 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4697E1093; Wed, 7 Mar 2018 19:46:39 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tom Lendacky , "David S. Miller" Subject: [PATCH 4.14 067/110] amd-xgbe: Restore PCI interrupt enablement setting on resume Date: Wed, 7 Mar 2018 11:38:50 -0800 Message-Id: <20180307191048.100824197@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: Tom Lendacky [ Upstream commit cfd092f2db8b4b6727e1c03ef68a7842e1023573 ] After resuming from suspend, the PCI device support must re-enable the interrupt setting so that interrupts are actually delivered. Signed-off-by: Tom Lendacky Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/amd/xgbe/xgbe-pci.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/net/ethernet/amd/xgbe/xgbe-pci.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-pci.c @@ -426,6 +426,8 @@ static int xgbe_pci_resume(struct pci_de struct net_device *netdev = pdata->netdev; int ret = 0; + XP_IOWRITE(pdata, XP_INT_EN, 0x1fffff); + pdata->lpm_ctrl &= ~MDIO_CTRL1_LPOWER; XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, pdata->lpm_ctrl);