Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2363353lqp; Sun, 24 Mar 2024 15:53:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWiXe8zopnHFL/m2ZPHyrEnpPUeQb3mN7oEU/PEW4KRIZUnB84pE0/X3alY459FED1cESNCfMejVYqCCUJSsPLRP8I5f9hUhA02xeh4/A== X-Google-Smtp-Source: AGHT+IE0QfIIJJjGaSdZAh/zh+CjKORyaRyxQKv3TPw6TVQ0YtB3s8SE35IoqQB4DsWacmQmjT2b X-Received: by 2002:a05:6808:19a9:b0:3c3:cc00:7dab with SMTP id bj41-20020a05680819a900b003c3cc007dabmr3654099oib.48.1711320838007; Sun, 24 Mar 2024 15:53:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711320837; cv=pass; d=google.com; s=arc-20160816; b=Pv/MihBxzEszl5gaMZN8cT9Z8fuzs5KiJkn64CBLa0T5CU52ujgbS14aw1Wc28jwdy TQ2y075yg4BQSboBg+jTKcIgD8nbMhBsIbAIDVb39lC8ABxyYuLfueNnQPyNe0vmI3xq J7QoLWJf0vX1eD6K9Q13vcVIjsSdLx85uaWdGdT2vLQ+S4gjpfhrJcQsdBZhrDISVEeT dwtAjTa/9mzeYsZLGhlpUWSI5a4GN5DwtqzBUlGA0d9hYHS9RoMqPlYKxkbLHwvwxic/ s3SaGPfOupB3v6jtsa+394QTy5+YECUGq0yCGQ/OAuot2t4613OQ4Fyoq1jD0u8UHwrg IaZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=YGrreYQ6AVNm81NhFDUB4O1npD4fTa9aFeyEL+wbwsc=; fh=W7zJnwmhPdAsBzQ8T+4flLlNfCrIMnWRBw6Dj5MCkkk=; b=G4uTBXMNDqayvb0ds/qEP2d9G5LSSp+p5pmKe60Uwp9aKvS5tqQdBavooPXapDebdv jJt6Qux2Al7RfvoKVSiKbUWfDziWiWF7Qm4Rg6k97rHbQJRCzJd3GW1/ytDI7Ezg38xO hzgsVRuov8mp0SCoNjHx4CfchKUGGuAf0xCrk1ySAqbvkt1M6MTUlyh+Idz0Qu8IOJB8 JE7f1J2wEJA4wXmoLJSgTSw/el+lIpY0i1J9jTZuroSXvhETwHRmIA8kXVWz7zOqBV5N PRFTRCz8F0j8niVFBI0IsPbdPOZmydFGDizFFQC/G8PNx/oGCKrZPoMYieJqvsqmdD8g 7VGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nVyuclJ/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112944-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112944-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i35-20020a631323000000b005cdfb84720fsi6293833pgl.857.2024.03.24.15.53.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 15:53:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112944-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nVyuclJ/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112944-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112944-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9C6A8B21C00 for ; Sun, 24 Mar 2024 22:48:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCAF681AC2; Sun, 24 Mar 2024 22:35:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nVyuclJ/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0D1781207; Sun, 24 Mar 2024 22:35:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319757; cv=none; b=TQMaXisOKuunX++5IgxSjTxDCrbznE8R0vSi3Fhbm5t8UcGR/FNEnLKYZ2p6fG/bkGSZOJuzheX5zuMFPLDUFWdJAg5y8UVA4gAqfTXUf5t/3j3mmpqJJcYeCFGd1yaiB6DS9Um++tzO7mVZMK8MmgvVNDhlGhgEIfDjBhsyEBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319757; c=relaxed/simple; bh=5WtQM2tX+LYOhsFO7UKkhfKkpfG6hezjSSD2zr4H3Qo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Xy9enWlKfSsOasHkP44LgrtBcaxtxbwLqQ1kh/7ceIv7CMXnE1Zszf+y7/N5D0bmNa6E25ZieMTiezt5L4j9cGQgyyzf5JEhUtNaH7AefY8Jd/amtv9mXJjwhuW46uXKYKgTpYzHymSkBGxCc/Zey+D0hu8w2yp5UY5ElMuOKEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nVyuclJ/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C866C433C7; Sun, 24 Mar 2024 22:35:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319756; bh=5WtQM2tX+LYOhsFO7UKkhfKkpfG6hezjSSD2zr4H3Qo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nVyuclJ/QNE0uZSva0WeDLgjdLoBEQAmkNCLdiPfdRcGM55zj/44+cYhMhAr/azXW HgCKnCvMf/Mlztw/mTCiiq+UhiZ2ItRXVDAxNyJrvgONvtfR9PA68BbjVDzmZHghF9 b/WfjkIt4mzFfPGZiubRbOuTpMxl1JcdlMsnGM6HIsnHnfu9GLYlpSMMdg+X7ddSgP F5xucXthgJ8Oss2yE9VSf0Y+SFyvaBAQasXYhS2FTF0NdFTe49wF9X9hrV4jsCLoYl AsLXnS0nt/IZ4CxqVQFr7tTv1DTStCaU7DE0LtyoJfzbVsvnl7j09M1KlSR+VJDkF0 IF+ajlSVTYKtA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Rahul Rameshbabu , Julian Calaby , Kalle Valo , Sasha Levin Subject: [PATCH 6.8 057/715] wifi: b43: Stop/wake correct queue in PIO Tx path when QoS is disabled Date: Sun, 24 Mar 2024 18:23:56 -0400 Message-ID: <20240324223455.1342824-58-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Rahul Rameshbabu [ Upstream commit 77135a38f6c2f950d2306ac3d37cbb407e6243f2 ] When QoS is disabled, the queue priority value will not map to the correct ieee80211 queue since there is only one queue. Stop/wake queue 0 when QoS is disabled to prevent trying to stop/wake a non-existent queue and failing to stop/wake the actual queue instantiated. Fixes: 5100d5ac81b9 ("b43: Add PIO support for PCMCIA devices") Signed-off-by: Rahul Rameshbabu Reviewed-by: Julian Calaby Signed-off-by: Kalle Valo Link: https://msgid.link/20231231050300.122806-3-sergeantsagara@protonmail.com Signed-off-by: Sasha Levin --- drivers/net/wireless/broadcom/b43/pio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/broadcom/b43/pio.c b/drivers/net/wireless/broadcom/b43/pio.c index 0cf70fdb60a6a..e41f2f5b4c266 100644 --- a/drivers/net/wireless/broadcom/b43/pio.c +++ b/drivers/net/wireless/broadcom/b43/pio.c @@ -525,7 +525,7 @@ int b43_pio_tx(struct b43_wldev *dev, struct sk_buff *skb) if (total_len > (q->buffer_size - q->buffer_used)) { /* Not enough memory on the queue. */ err = -EBUSY; - ieee80211_stop_queue(dev->wl->hw, skb_get_queue_mapping(skb)); + b43_stop_queue(dev, skb_get_queue_mapping(skb)); q->stopped = true; goto out; } @@ -552,7 +552,7 @@ int b43_pio_tx(struct b43_wldev *dev, struct sk_buff *skb) if (((q->buffer_size - q->buffer_used) < roundup(2 + 2 + 6, 4)) || (q->free_packet_slots == 0)) { /* The queue is full. */ - ieee80211_stop_queue(dev->wl->hw, skb_get_queue_mapping(skb)); + b43_stop_queue(dev, skb_get_queue_mapping(skb)); q->stopped = true; } @@ -587,7 +587,7 @@ void b43_pio_handle_txstatus(struct b43_wldev *dev, list_add(&pack->list, &q->packets_list); if (q->stopped) { - ieee80211_wake_queue(dev->wl->hw, q->queue_prio); + b43_wake_queue(dev, q->queue_prio); q->stopped = false; } } -- 2.43.0