From nobody Mon Feb 9 10:43:12 2026 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A69E2561CB for ; Tue, 25 Feb 2025 05:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740461699; cv=none; b=qQXFrTJ0vi0ezhZow4Pt4auD1oYZWqlmEk+tGCrpoL9wBoy4WYVtR1O717NRDrDmK5MEJLAF7D84QmP5jTea4h2qsBf5zkisbzJqI9yurbzG4WKlFDPTqjcwVIXC7WjYniUCnDQWeN4ace09laowyhvwEJp491yo1tN1SInmoZI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740461699; c=relaxed/simple; bh=LdVk8C3dYDmty4gxkSuuGDDu8zkpk1p5J4v3VnCRaC8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FltPnofc+0noUg0TFZiEYARbcYMQiQyY5nGgdvbpFKwKTIxCAgZVicy+V9hFFlI+lABXwImDJyPhZ8W/jOCyxy3eNTTcgy33OGf8IkRE/KtXwWzIY8l2WbPXLv5nQZtEqpaNRkh50nYxJd91W5gnvn4oHfZ13gRPXzTyuQYTqrA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=x3Ko8wH5; arc=none smtp.client-ip=209.85.216.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="x3Ko8wH5" Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2fbfe16cc39so10347138a91.3 for ; Mon, 24 Feb 2025 21:34:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740461697; x=1741066497; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Alp/86Yl8dv5OV9OIvJcS/PHlfX7ulpzzZhhzjQV/Tg=; b=x3Ko8wH5y0SutybJLEXTKcO6rncamISSQugXgiyYV8h1OhRXzX04W1KSZedh6vrDDX vFYQ7akej4z3CMCMzKdy/JZ3vFzn74sm+itk/OuUnhnVTRSm5FW/kgjE9r1P4qlO7slJ nROorqbMhqGGMQhoHIAFyt69aojvB7/nLHgPefsx4kMCaDGV0hUpPG03d+8Xesllh8A0 JnRLsdTrSWrOtAZcdK5CG8+RA3DGxfmJkEajy3ngjHTIJ5tlqJ+S988BKXc+zqgDJe1M +xTm8KHRZasiC4fpJ09YtS/CKire6fSv/n1uhSjnAW67ukdhmTVL1KcwT4y3L4i6ykUb O/kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740461697; x=1741066497; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Alp/86Yl8dv5OV9OIvJcS/PHlfX7ulpzzZhhzjQV/Tg=; b=npPwNczfUtue6NtdlGxHogIFTMjk7Pn2NqB2zYV3/4V6Q7T+kiIUwt0dsl6XMdmmMz BCnd8JXaZbJvfOrBEJjPuweQD2np/AoHm0XK3hooBSjqIsZxXdACWCgMEr52HnoSRSa1 cQRhJVdLcx8xuaQIDl5zzsD3J81/y5q/TkN05xn/6B9z+v8FUKCnKVuTjyuxHyuXRkK+ Of8TAObyS3ObLPQZDWIdCLal9q4kprzplNjX3MOhY5Cgzd4csGLkBQdBr3IVKb89FmGE gXsTvBZVq0yA2m5vN7l2xqszMh3EwNA6zyJM+flf48tf3wK8ZkFLDFAB0dXv8BHOwu7R N17w== X-Forwarded-Encrypted: i=1; AJvYcCUApaxAN7uL8f06+OkjaCxXCAAiINrXZP04ch7qFzc8EE3WMbpBaK07ZOPIFEQp0OJEjIGxmo2M2rtXdfk=@vger.kernel.org X-Gm-Message-State: AOJu0Yxb1akze+UchBKRkvSo5tw8MGVVvqjYE+xsG0sEg4xOpqEG4JpR J8oUWN0zy8Z4erA8IvfFakIFf/Ft9qguOl+kc0bFgH88gzPzP4w0jOEaWe4nEA== X-Gm-Gg: ASbGncvrKgi734u/SUQUqFRrcAtK/FvD4CUQe9N9phSjaClbuPsiuXUMzTfXmQtf9L3 PhneaSm7s8xiV57YDI3QiRN9byD0VVcLawMnjtOdgBnzzVJ4/wwUWAiSIkCyiRoh1Oeufg6FNSd +zgZoIP5WBMW8Z+g0a/u2O20UUC6b1vzOPHp8KtFzZK5IS5ahQI4h97fZFzrMlKaZZa6rnw9Z9x ThM+X7a+4RkDL0qh0R1jjoo9+vUZJWbbLNte6XPV1qPW2pk7hYPXObKJfwo6eVKhtuMp8gxmsKi DvemhiSTaCnlGmBXwQmd+ZBf0VW4uQT9bnw+tcDTIEAFAUN+2espKw== X-Google-Smtp-Source: AGHT+IHmuD1aWu/v1EBbeaPKC/rVSjBidCILD+wsg56kWI0wnKQ941LQEdS/f9KRvfrcz7v3nfAKMw== X-Received: by 2002:a05:6a20:a103:b0:1ee:dcd3:80e6 with SMTP id adf61e73a8af0-1eef517dd67mr30705278637.0.1740461697436; Mon, 24 Feb 2025 21:34:57 -0800 (PST) Received: from localhost.localdomain ([36.255.17.214]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7347a7f9af3sm582101b3a.110.2025.02.24.21.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 21:34:56 -0800 (PST) From: Manivannan Sadhasivam To: jjohnson@kernel.org Cc: linux-wireless@vger.kernel.org, ath12k@lists.infradead.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org, Manivannan Sadhasivam , Baochen Qiang Subject: [PATCH v2 1/3] wifi: ath11k: Clear affinity hint before calling ath11k_pcic_free_irq() in error path Date: Tue, 25 Feb 2025 11:04:45 +0530 Message-Id: <20250225053447.16824-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250225053447.16824-1-manivannan.sadhasivam@linaro.org> References: <20250225053447.16824-1-manivannan.sadhasivam@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" If a shared IRQ is used by the driver due to platform limitation, then the IRQ affinity hint is set right after the allocation of IRQ vectors in ath11k_pci_alloc_msi(). This does no harm unless one of the functions requesting the IRQ fails and attempt to free the IRQ. This results in the below warning: WARNING: CPU: 7 PID: 349 at kernel/irq/manage.c:1929 free_irq+0x278/0x29c Call trace: free_irq+0x278/0x29c ath11k_pcic_free_irq+0x70/0x10c [ath11k] ath11k_pci_probe+0x800/0x820 [ath11k_pci] local_pci_probe+0x40/0xbc The warning is due to not clearing the affinity hint before freeing the IRQs. So to fix this issue, clear the IRQ affinity hint before calling ath11k_pcic_free_irq() in the error path. The affinity will be cleared once again further down the error path due to code organization, but that does no harm. Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-05266-QCAHSTSWPLZ_V2_TO_X86-1 Cc: Baochen Qiang Fixes: 39564b475ac5 ("wifi: ath11k: fix boot failure with one MSI vector") Signed-off-by: Manivannan Sadhasivam Reviewed-by: Baochen Qiang --- 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/a= th/ath11k/pci.c index b93f04973ad7..eaac9eabcc70 100644 --- a/drivers/net/wireless/ath/ath11k/pci.c +++ b/drivers/net/wireless/ath/ath11k/pci.c @@ -939,6 +939,8 @@ static int ath11k_pci_probe(struct pci_dev *pdev, return 0; =20 err_free_irq: + /* __free_irq() expects the caller to have cleared the affinity hint */ + ath11k_pci_set_irq_affinity_hint(ab_pci, NULL); ath11k_pcic_free_irq(ab); =20 err_ce_free: --=20 2.25.1 From nobody Mon Feb 9 10:43:12 2026 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F1E22566FF for ; Tue, 25 Feb 2025 05:35:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740461702; cv=none; b=S3Bc1za1eodx7A4BORJS1Xk2XjU2JuALysZvVmh96ZrRVmP1T4aZzNtL2AJlrCQxJHVQHv9qxcuooINW4jirxZs6436wfOZyQ7kLHWbF4xTDUe4xWQQqKXoedndZ8P1zYJb9gXuojjjzEqIe/vfebT2WkNyk0zYpB5sqZl3VhYA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740461702; c=relaxed/simple; bh=FmjQKYch6XSD5pbW1Tn3YSdPQVc9xHCO/JMUTJbJyPk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ThAnJDmgrmarKTI7n8EEjNvLr+4KLcXA/X1CHSAGF3Ek/hqsciO1fbDVuzHEztu/xYam/p/MNHpk0o2AO564cIcM5coZUgiUD3q2myf3UZFqTymlpaUBDdKM17bf7Pxx7OZ7O/NiOdYECx8N/YPef+5gq9lP59N0IoKnKl+BTd8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=GvWsYNST; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GvWsYNST" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-220d601886fso78168845ad.1 for ; Mon, 24 Feb 2025 21:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740461700; x=1741066500; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=F6Il8METpmlUQkRbSAgjzH18Gr01cpODvArSkIp0bgs=; b=GvWsYNSTIsVy6ueVfKcYCEgMlB5NOeOuS3+/HT+hj66ZyL3SXypWtq/t77Bz7ijcOH NhJ0uJ2f9HvlFcPe0sv+R/ycc6PMq+VkLTVVOtigfN5V1ZN4740kicbtlCe3pu7BSby7 pQRD5lB8LJ5mH5NyeidqnSbqrMD5GiZnpnBCgfia7Fr4wcMQY0g73cKOuNKCAEH65E14 GdIJVzAHZ9+VtOg/vw7yAkcNEa+FqzxUnFjnnBX9kpPC+dMIaN94GEvWhF5bHjbBCoqL N/ZG89QdONEnDblC5FSi00w3RdEsavcCH6cRc84RTPldUwqckCDNs1C9sA84JTmdlgz6 c18A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740461700; x=1741066500; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F6Il8METpmlUQkRbSAgjzH18Gr01cpODvArSkIp0bgs=; b=SdSMKWWs4Dx6WWUS4T7H7hSI591CfddaejR43EY8LdY/whzErTGSosWD1jrRy5J+Xf 9EAOBD6tG5ENv22wTIAZP4rPlm52xxL+XiZkoYLNRMxR3Td1SaKj/EKgXB+dxHskQcS3 YN0hsmz1cOfqIMCtnGsmrm/6NHVXpYLASxSvtZwiWm+VtQpXMk+f8ef9FS/cC4RQOcnT izH32MEYo2bFXcLEXIBJ7bLqbTiV8iu0PqCpssSwbwHjUNg+3fXAXzddZdqNlXBm3bOo 3t73SPgx3VmkjNCa7aboNwK+0tG145OjWKzNpHJkpuQybm6xmUeNVsjwJEMgBNb1Ei2c /gNw== X-Forwarded-Encrypted: i=1; AJvYcCVTEsXMr5ZjVRlbdNo+LqWPoog95yigIf2KHhoV+ehESoHbLpWQmx12lD1zDgFosWieVhGNG10uViS3jtM=@vger.kernel.org X-Gm-Message-State: AOJu0YzUr8dJYcP5yhFAFbjzBP6uk9vzn3rHwTZyF5Mn8MvOlA6o963N LXiY4Xet0zatqql0klUSR294Lc4Qcr+QAl7cwdw/4nBgYJV69I963xVs7aU7hQ== X-Gm-Gg: ASbGnctK6YoT63Or22KTPzdQd9vSvf1X598eF+Xe1wxct98aBFNnzUoIIPZRxOPsSbX H7mMJJ1M7wHHy/nGT2uYnz2ZBaPu2MuipOM5UozNWG0h0I4fJBqvYir8d4/HIFKx3/bLh0RLnfE kIQAxtnzvuvtX7E0ZIMgluk0tayj6Q8rdf7AMODrTY6vyPP6rhuSBwOZ7Ooe/E+FiFdcL3oOORX 7MXe5Kj0+4HV6XIy4VKH0NT/BNMLztwHTsf+Lz39yYHuZ55E/syo0E2V5tq1AUxkds7WZSeYBdC 1MM702lWswUEBQ1Yq3KW2n1OgsvOHUoiRKNskBIDLW0z+KiSlevcKA== X-Google-Smtp-Source: AGHT+IGOuK5WVs/FNS54x208S7fpWZaQq234w5cakUj39RKsU7tmbyu7PT7tpCGWSjC4Q4d8G+DFOQ== X-Received: by 2002:a05:6a20:a103:b0:1ee:de1d:5abc with SMTP id adf61e73a8af0-1f0fc78bfe1mr2892953637.33.1740461700018; Mon, 24 Feb 2025 21:35:00 -0800 (PST) Received: from localhost.localdomain ([36.255.17.214]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7347a7f9af3sm582101b3a.110.2025.02.24.21.34.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 21:34:59 -0800 (PST) From: Manivannan Sadhasivam To: jjohnson@kernel.org Cc: linux-wireless@vger.kernel.org, ath12k@lists.infradead.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org, Manivannan Sadhasivam Subject: [PATCH v2 2/3] wifi: ath12k: Clear affinity hint before calling ath12k_pci_free_irq() in error path Date: Tue, 25 Feb 2025 11:04:46 +0530 Message-Id: <20250225053447.16824-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250225053447.16824-1-manivannan.sadhasivam@linaro.org> References: <20250225053447.16824-1-manivannan.sadhasivam@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" If a shared IRQ is used by the driver due to platform limitation, then the IRQ affinity hint is set right after the allocation of IRQ vectors in ath12k_pci_msi_alloc(). This does no harm unless one of the functions requesting the IRQ fails and attempt to free the IRQ. This may end up with a warning from the IRQ core that is expecting the affinity hint to be cleared before freeing the IRQ: kernel/irq/manage.c: /* make sure affinity_hint is cleaned up */ if (WARN_ON_ONCE(desc->affinity_hint)) desc->affinity_hint =3D NULL; So to fix this issue, clear the IRQ affinity hint before calling ath12k_pci_free_irq() in the error path. The affinity will be cleared once again further down the error path due to code organization, but that does no harm. Fixes: a3012f206d07 ("wifi: ath12k: set IRQ affinity to CPU0 in case of one= MSI vector") Signed-off-by: Manivannan Sadhasivam Reviewed-by: Baochen Qiang --- drivers/net/wireless/ath/ath12k/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath12k/pci.c b/drivers/net/wireless/a= th/ath12k/pci.c index 06cff3849ab8..2851f6944b86 100644 --- a/drivers/net/wireless/ath/ath12k/pci.c +++ b/drivers/net/wireless/ath/ath12k/pci.c @@ -1689,6 +1689,8 @@ static int ath12k_pci_probe(struct pci_dev *pdev, return 0; =20 err_free_irq: + /* __free_irq() expects the caller to have cleared the affinity hint */ + ath12k_pci_set_irq_affinity_hint(ab_pci, NULL); ath12k_pci_free_irq(ab); =20 err_ce_free: --=20 2.25.1 From nobody Mon Feb 9 10:43:12 2026 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54A9D190664 for ; Tue, 25 Feb 2025 05:35:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740461706; cv=none; b=TICVYtg+Ru22btPA+hq++eEs/2K2VOOCNH05BWHodeRky5L9aBzg24hGcmHs9YatKJDBUvpTpuNmN0JFDgqxK8lnyrl2Vy4pt34aEhnm4xqWwkW31H3rwPyBRz7tCGFjTm/b04R7s6yvOCBpdnYpkf2Z3LDqkdkIrl/z1sZF4Yw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740461706; c=relaxed/simple; bh=m0ENAYkK9uSzSQgO0nychnr6WiQxO2uAemDG45GIDpA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=J744NPvP3zqjID0432SwPffb1PEtlA9s+frwSsjA/wjK+P25jiaH7BP1fY4lW6e3S7v6o8COJ8D/p1CyiwNKu2uwroVcu3yj8DTz0Q1qyR1rchl3qYOF0UlkSpPEaasNhKGPD5nkw3LEe51BU2ZXxV338gKVvRI+rXKhYB3r72k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=XCzWZ9Dp; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XCzWZ9Dp" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-220d601886fso78169355ad.1 for ; Mon, 24 Feb 2025 21:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740461702; x=1741066502; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AYmnWqCfl4BTw5dpDwtuCHljGqr5uXG7tQyflbiZ1TI=; b=XCzWZ9DpJfpUhieCl8OvFY+EfDWk/cJL0RAhHrDsUD6/YRxTBeZuxaGFvf3jE+6Y5R 7wWgYtsEeo1msxdc01+ZFx3K9u5RsWKaVV0Qt3jdT5BVYVfGca8uKJaDZ+qF/d5Sq02x feJLwKbPfzUOnJ1XkYpIkoXfn7QB0kQ3fEkx+VfPlLWJfIzkcX7Ncz1sT92/3fEtzH9N 3F171KxK+622g0DovPjnksnVGQVaHSZac0pwrXnoKHi1HMnWkPcD0X6X6MKyYX5WTmoZ PNYq4DfaFMTwlh7xzyxmwDME80ibQ10X/X0yyIfYOcL1UINGP1gf6WwX0/iTV4fR+gsJ aMRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740461702; x=1741066502; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AYmnWqCfl4BTw5dpDwtuCHljGqr5uXG7tQyflbiZ1TI=; b=l4KX6Fq9Hlmiyjdvh+V1MsSg0lUr/4maowDRhFFNosR6KHq0oDv41i3M+ca7YmRqGN VV1ipg2rceic4epPNYn1jpliQcrACyE83iQWCuqoHlVOITdkPE4pwBd3oiyC1ayuykDQ 7aKmIDSNSyJTTZcoPcWmHg1GzLAMkVOPMa5eavgTm0jyPK2MYMsqFwH2fpNA2su2MgbX D+aFP+TcZh9knOXcyIRr444CAwODZQk0/+5tyajWezefTGv4Vd829zjEHn5nhoFyGc0v KUr+us4FwyGakakFmrSokGwKJzCeDZf2KTAMkc37rpOoWlmahvUQjt2aInVGIB//MwGZ DRkg== X-Forwarded-Encrypted: i=1; AJvYcCV03vgvcAotap3zb13EngbO/76hwNrPxPLdZhv79isiO3Ckeu2GNCD/kFDtwYybaKCVuT42tJRTEyFcWWU=@vger.kernel.org X-Gm-Message-State: AOJu0YzmF+kggD1KBBD1H+tvalhPCppvjtD6bhU58/VKtr4JRB3zd9gv NMxJBVF2KvOquEX9M5DeG2m56WTScWr0RhhqlJUiiwmseM2afKrcHIx3a2k0Kg== X-Gm-Gg: ASbGncv+ulMHfxRt7KLoluc4D+w2CqYnPeQzY2sJGwwOD35qPxAh4IR+K9SChdyJtYc ++vQt8zHM/E+4UAH5EJyLTtGIj4kyeZJzCHU6YMOEXNmf6m/WnBGYBvvIEX+dQXvBnVeB++/2W3 f17LA/CYcvS10UpJw/fukSuvc569K3X9R7GuC82Ro2e7eMmT0iXlHtA27F9kw43/tVupC24Z4c1 Z6xZiZjhpBAwJ4HwTSN98wUVT6g5Zy21cHmI2JfsXJmMVbC6wb/6j8Dxw7MmlVhZ5ZU0MWvJbyp pk+SMX9LwlPyC3rswzm19GsBt9tsn1kDKEvSV0G2PsX4dvOprcMPXA== X-Google-Smtp-Source: AGHT+IEHljzwJD36eza1aeKcaU2dWlFSTtvnEQrg+fmzOtR5w21SUg7QvbAbtZaZAXH1YQPPhdGwlg== X-Received: by 2002:a05:6a00:2e9c:b0:730:8526:5db4 with SMTP id d2e1a72fcca58-734790f8cfemr3218117b3a.13.1740461702511; Mon, 24 Feb 2025 21:35:02 -0800 (PST) Received: from localhost.localdomain ([36.255.17.214]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7347a7f9af3sm582101b3a.110.2025.02.24.21.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 21:35:02 -0800 (PST) From: Manivannan Sadhasivam To: jjohnson@kernel.org Cc: linux-wireless@vger.kernel.org, ath12k@lists.infradead.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org, Manivannan Sadhasivam Subject: [PATCH v2 3/3] wifi: ath11k/ath12k: Replace irq_set_affinity_hint() with irq_set_affinity_and_hint() Date: Tue, 25 Feb 2025 11:04:47 +0530 Message-Id: <20250225053447.16824-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250225053447.16824-1-manivannan.sadhasivam@linaro.org> References: <20250225053447.16824-1-manivannan.sadhasivam@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" irq_set_affinity_hint() API is deprecated now, so let's use the recommended equivalent irq_set_affinity_and_hint(). Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-05266-QCAHSTSWPLZ_V2_TO_X86-1 Signed-off-by: Manivannan Sadhasivam --- drivers/net/wireless/ath/ath11k/pci.c | 2 +- drivers/net/wireless/ath/ath12k/pci.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/pci.c b/drivers/net/wireless/a= th/ath11k/pci.c index eaac9eabcc70..be2791cd79d5 100644 --- a/drivers/net/wireless/ath/ath11k/pci.c +++ b/drivers/net/wireless/ath/ath11k/pci.c @@ -735,7 +735,7 @@ static int ath11k_pci_set_irq_affinity_hint(struct ath1= 1k_pci *ab_pci, if (test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab_pci->ab->dev_flags)) return 0; =20 - return irq_set_affinity_hint(ab_pci->pdev->irq, m); + return irq_set_affinity_and_hint(ab_pci->pdev->irq, m); } =20 static int ath11k_pci_probe(struct pci_dev *pdev, diff --git a/drivers/net/wireless/ath/ath12k/pci.c b/drivers/net/wireless/a= th/ath12k/pci.c index 2851f6944b86..9883cb2de548 100644 --- a/drivers/net/wireless/ath/ath12k/pci.c +++ b/drivers/net/wireless/ath/ath12k/pci.c @@ -646,7 +646,7 @@ static int ath12k_pci_set_irq_affinity_hint(struct ath1= 2k_pci *ab_pci, if (test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags)) return 0; =20 - return irq_set_affinity_hint(ab_pci->pdev->irq, m); + return irq_set_affinity_and_hint(ab_pci->pdev->irq, m); } =20 static int ath12k_pci_config_irq(struct ath12k_base *ab) --=20 2.25.1