Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2915436rwb; Mon, 15 Aug 2022 14:00:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR44DpYQbaqInEYuYTIRZlinyxdknZEkBoQiMx8HBp68me2biSj5lRB4sl4uBtcaG3LZwU5o X-Received: by 2002:a17:902:e394:b0:171:3f46:1f13 with SMTP id g20-20020a170902e39400b001713f461f13mr17976905ple.174.1660597212059; Mon, 15 Aug 2022 14:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597212; cv=none; d=google.com; s=arc-20160816; b=qG1iikjbA+Py9ulWsGawMwmxJGU0bYFaN8YOMPta3VvGg8a6DNeoC7oNMOsnNgsRCd c0UR87fggKbDNX3wP8tK+c00w1ImcJOacri8PEOY5k01FngmgPmmT7pnSDv+cM2Fe5rf OUVa7CdvUxPGHt2r7SoMKsHVcPoe2C8qB3NiNPw+OcQnJeesFMwdJ2Chza4NNwl9aVZ9 o1lVhP9QQ5IBg7AbPFBbmglKfYQY/WCJAhFINa/m3uIDedJiaEoX9UxGw7qeWuPtVFJ5 VrLUp5t1u7Zs5D7luTbUl4K9t4xWVe5ggzvn+HgqfSBC/c/KlH6DV6euEPlilyWC1rjf r2EQ== 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=mmbjU7LUUJJCkUBnRfMKr4Z6ykg0XNJjPtf9z+3tKEU=; b=VVkNnEj5P8aGu54qBgR3bX8Jb29Nh7sUmxNF2Ibfwk5GaFfaoCgpvC3kPvus25rfSq k5k7vpNvwZl9Zt2q+CqDrVHTaEofvo+k1bmNj/abg9K8PDahrjtBEQjSU5oWPhk2CFnR miNiXsIbyYkoz+INPbyVGc+MaS+UUR9giZCZOsoViiBPH0gFO6UhpW+tiizy+tG+zD1R EBGNQQWiYdGaMTAPusParnx7aM+fMK5jf7pWYQYhIkXq+iGzoZAQLfXrwym95ZE/YyP2 WiKDrpuKCpocjqTYKP7LEKEf2W1ceAUBnnO+wfOey6lotlmB8ciWdEu2euLVhH5e+3/s jUpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cEOinR+b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r1-20020a639b01000000b0041b72fda9b5si11699164pgd.311.2022.08.15.14.00.00; Mon, 15 Aug 2022 14:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cEOinR+b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346598AbiHOUxK (ORCPT + 99 others); Mon, 15 Aug 2022 16:53:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347024AbiHOUvZ (ORCPT ); Mon, 15 Aug 2022 16:51:25 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F842BCC1A; Mon, 15 Aug 2022 12:10:10 -0700 (PDT) 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 sin.source.kernel.org (Postfix) with ESMTPS id 93EFBCE10E7; Mon, 15 Aug 2022 19:10:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A908DC433C1; Mon, 15 Aug 2022 19:10:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590605; bh=RQSpplCUBZl1qVgA2uUkWWTBCxAn4COWpO14K6KXJUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cEOinR+bvDtNbpw+BZHqY5M4/7F7raUxAgtlLtDI4ObfxSMIRH+Bm00oeRecy4o3y rHS4O0LvrpLaM14l4ZhIrLGeWteNWPqgb96zqKcDRADIlkheOvEhK4Ri7J2JwZmPGn apwGStsds6jqjDxgsYxmzI3q5gnBMpeANcLg4+VY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Hovold , Kalle Valo , Sasha Levin Subject: [PATCH 5.18 0313/1095] ath11k: fix IRQ affinity warning on shutdown Date: Mon, 15 Aug 2022 19:55:12 +0200 Message-Id: <20220815180442.750719081@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Johan Hovold [ Upstream commit 3bd0c69653ac636eae8872aacdcd4156f772f928 ] Make sure to clear the IRQ affinity hint also on shutdown to avoid triggering a WARN_ON_ONCE() in __free_irq() when stopping MHI while using a single MSI vector. Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3 Fixes: e94b07493da3 ("ath11k: Set IRQ affinity to CPU0 in case of one MSI vector") Signed-off-by: Johan Hovold Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20220523143258.24818-1-johan+linaro@kernel.org Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath11k/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/pci.c b/drivers/net/wireless/ath/ath11k/pci.c index 8a3ff12057e8..e2382c8595b6 100644 --- a/drivers/net/wireless/ath/ath11k/pci.c +++ b/drivers/net/wireless/ath/ath11k/pci.c @@ -1566,7 +1566,9 @@ static void ath11k_pci_remove(struct pci_dev *pdev) static void ath11k_pci_shutdown(struct pci_dev *pdev) { struct ath11k_base *ab = pci_get_drvdata(pdev); + struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); + ath11k_pci_set_irq_affinity_hint(ab_pci, NULL); ath11k_pci_power_down(ab); } -- 2.35.1