Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5931109pxb; Mon, 14 Feb 2022 11:00:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8bD/A6JOdPArI64CcRIgdDSFrGUCEVYIltlKaEcw5ueCwYSlonbPFnUNOiYdyVvom1MwS X-Received: by 2002:a62:6d01:: with SMTP id i1mr44559pfc.45.1644865255643; Mon, 14 Feb 2022 11:00:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644865255; cv=none; d=google.com; s=arc-20160816; b=VIlty7PJPEpikCWvFIWlbbFUTxFf+sHSIJCnal7eiCykNO0VfvbPuMTySd+Vq+gARz qKN1mdgg5QArgT2rsdebHt5GUZZRnOzgE/YAtU61ulRfa66Vckx91ymWqzmM2ImdJcUC SRrmym/8IFSsO3ZP3Paeiho+YaqpE/EULXCRwUuA5ifWO2HEzfxwzUQRJiHerjvMOk7h P15hajXKUTCYI+dWilB/N+nY3NqcYUkhwuF176eE3eAnZDshSHk+IjKqmYBWSK5Ck33F pjVUNsZbq8rHVbM+vU/B7Pcf7U06aWuaikhoNzBxFr0qY0cTY+GtqzesATTVuL2vpiJx pgmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9NAU5ZPQOnJTIoHszes0uFd4frdJ0zBF8ZYGW2mLcC4=; b=AXbiZrLjaWgNy936FzxyDjjH6w1eMxd36SMbzvOGOYwqIjQmrVeCKfHIODv8AzoTWo koWEauv9O3/0lVQw1uwopa0XurSfla0pf4GSe9N7s19Tv975VVt/uq8g4xqAUrr0Z81w T+iMOC8iYv8KDjPMCuaGLpKpWQBnQcAFRSBvpACpX39y6BfwQr2/rlBnHLbmwG/u6lTc Qj3HY4ZmwaKAnzyDqBa6KwCp0fkQvXAA9dW1zVFq+Z5JgaFoVZTDjUsgYN2TYeAhPkXK noorr/65bxDe1KgGvsYNA9Po9HRD07eQjWCKFLqr7L2jVuoIGF9qd05UABNO4D/fZBzs ZCxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="VMO/ZCUy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v12si11780731pjs.41.2022.02.14.11.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:00:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="VMO/ZCUy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 72544D8340; Mon, 14 Feb 2022 10:59:10 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244145AbiBNJiM (ORCPT + 99 others); Mon, 14 Feb 2022 04:38:12 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245553AbiBNJgu (ORCPT ); Mon, 14 Feb 2022 04:36:50 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3B98652C6; Mon, 14 Feb 2022 01:34:46 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1EDFCB80DCB; Mon, 14 Feb 2022 09:34:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FB09C340E9; Mon, 14 Feb 2022 09:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644831283; bh=qlTXMgDZRk4SlT/fqVq8NbjrNQm0Jg7jri67W8G3os0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VMO/ZCUyvUA8gvsVct6v/kb7mGQbG0p5TTdxxb99Nt50ZC7tCqv50K7A0015BZdup pjQqRaiaUQRscD1u2bzX9k/6SidPd/6zoMuSp2niVlUBoDj1r/UJ7JGFBqEUaHRr8D Bf4a5IIK+K8SH9RjpHCI5zUt67hpvqbU2EvgRT6M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Selwin Sebastian , Raju Rangoju , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 33/49] net: amd-xgbe: disable interrupts during pci removal Date: Mon, 14 Feb 2022 10:25:59 +0100 Message-Id: <20220214092449.386726834@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214092448.285381753@linuxfoundation.org> References: <20220214092448.285381753@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Raju Rangoju [ Upstream commit 68c2d6af1f1e469544d6cbe9a601d96fb9c00e7f ] Hardware interrupts are enabled during the pci probe, however, they are not disabled during pci removal. Disable all hardware interrupts during pci removal to avoid any issues. Fixes: e75377404726 ("amd-xgbe: Update PCI support to use new IRQ functions") Suggested-by: Selwin Sebastian Signed-off-by: Raju Rangoju Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/amd/xgbe/xgbe-pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-pci.c b/drivers/net/ethernet/amd/xgbe/xgbe-pci.c index 7b86240ecd5fe..c4f1fc97987ae 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-pci.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-pci.c @@ -418,6 +418,9 @@ static void xgbe_pci_remove(struct pci_dev *pdev) pci_free_irq_vectors(pdata->pcidev); + /* Disable all interrupts in the hardware */ + XP_IOWRITE(pdata, XP_INT_EN, 0x0); + xgbe_free_pdata(pdata); } -- 2.34.1