Received: by 10.223.185.116 with SMTP id b49csp5481965wrg; Wed, 7 Mar 2018 12:31:50 -0800 (PST) X-Google-Smtp-Source: AG47ELve9DSfXvRwwHySCfFivxvm9CEh7yjj0j7xJ6whDynHhRFOyO1NkZ/p2GTs/whV/K6APkQX X-Received: by 2002:a17:902:5a0d:: with SMTP id q13-v6mr21541328pli.152.1520454709945; Wed, 07 Mar 2018 12:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520454709; cv=none; d=google.com; s=arc-20160816; b=iFC08/j1sTI8wT13D2ae5NHojx5Z9IrhWYUqgscVfByj6Czsvp2MPqBXkpvTzVE0C3 KwPZf3kqhkCOiOQweAQte+109obY6bPdsP9g23G6X2bwtcQJmpT/MVS8WzydQ/n8cb96 8Y7VV4G8rnAphCVfQcIYDZat643bw+IoGe6lRaUIQvTvgzmZw7Mj7VlTalBpiLDXsoGk cvhkTXutY9Lxl1oWn2zSTfV7VDoExB1Wv6QMFNGC8suMyDoZMU9Ktutrei5dvjT2JOq/ LH+kgE4Wu8AYVTkE8FaLpbbe+cUanlDdRDNa/M+QUNZfO3jRxTdl0QM96CzJv6nZis+9 Rpcw== 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=HHzmLQsFhQlCp2YYQwJrEosGpWQl39wfo257AD8jYJk=; b=Z7v9nsF1Opz5t/HLlDnPmLLjwLB3Z9rodd/dje2NlMj7PnzppVtKudZg14LuERRVFz e+3nBY8M3iPY7QxTsEmBbXE6pndy1NOVyaRZy40N9UT4kd9NtIuSVLcvalXLuBs8JjOg aMOuCvr4kQnsLbs5XLYvGiTvvu8d6R5JJdY2+jhVxgAB6hyCogpZU5jLjSDA3ujbL2jR 0MlHk6xnLo2ARArSrsweje/6hQoj04sldOfwE3yK5du5Xv3VdtGVJP1BFbqg3tkUFq0K RVAwD4nZCJt0xV+Jo3jKroIONbqxR4MCk4ANIluN7Yk20ddXlzZwdb+WA7Qw+9csVVw9 2Weg== 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 y125si11811286pgb.120.2018.03.07.12.31.34; Wed, 07 Mar 2018 12:31:49 -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 S964889AbeCGUaY (ORCPT + 99 others); Wed, 7 Mar 2018 15:30:24 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42436 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934879AbeCGTma (ORCPT ); Wed, 7 Mar 2018 14:42:30 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id AAB5B1084; Wed, 7 Mar 2018 19:42:19 +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.15 071/122] amd-xgbe: Restore PCI interrupt enablement setting on resume Date: Wed, 7 Mar 2018 11:38:03 -0800 Message-Id: <20180307191739.608278488@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: 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);