Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2556997lqp; Mon, 25 Mar 2024 02:30:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV826oEfAR9Imp7Qz/XKVDbvXKXCsxJgcO6yvk9iR58bf2G2w5j2TIGIzGHeFDH/C8xT016b1O6pTZmKg2LFGe2jjvG0QLQ6UnhQHTV5Q== X-Google-Smtp-Source: AGHT+IFaMeMmzOEBeJMfOZuOhhhScBbMuL1xpISHriy0kwn35JEN9N4YFnW7A0AxAxy0hj+cXUDS X-Received: by 2002:a05:6808:124b:b0:3c2:6117:493e with SMTP id o11-20020a056808124b00b003c26117493emr7886592oiv.37.1711359037598; Mon, 25 Mar 2024 02:30:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711359037; cv=pass; d=google.com; s=arc-20160816; b=ZLDyBhUb1x+XsHfiZd0I2Vp52ycD78SfsGMOwUG6CBKEubXJtmAIsfyLb8NO55pKF1 DyYPbyY/hMiMEmFsKytiTqndsy5IESSn58p2kqXOQk7qcSLNpGFwMCRTTsV3wFSL58Lz LuAxzW6DiTCN8HKurjpHSGAjfKIXu8NtkdIV6ffQOqJFPkRaR/SUqWRixhd2qqL0P6xV 9d82/+uSsvG5o8m4NcyuiFUkwNvXF+nbUNiKs0aRnm12K+FrgAZv+u0EO0pdAs7bm33h QZqb8hkPrNEwZtsXwgRQeQurlBZqPgwqQT5XDOWrW4ezhlVWH7urcn2BtoyxVGHnU/vB rStQ== 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=mdTFGkr7Ci0GTC6ivn72b7Ot000z+WGf63dAQj+RStI=; fh=W7zJnwmhPdAsBzQ8T+4flLlNfCrIMnWRBw6Dj5MCkkk=; b=ZaFQUWywCN66lbo9/U/EjuufW5INg+YhBwo3YoiO9mNtaQAkj8w/4nwdvkM6N1e3SA MbgUgwfRDdC5yGh9gf2xtE1n6UWAQwnraQ8mjPL9yTitDuGA4wT4ksbok24ECUIqsjWO U8oQMcB5PxHnibtQ2XJmQo1Goy8qqmsz5zCOn3vql/PYFDQz4xGrmRCzP+QbDNhc+d8Y X0yy9MAxpFJ5l6O/LOu3o37OBQpsy/OhTVsbraoXR5on+RFqyDvSaInVw0fHN78rAe+6 27njANU6mAiusrzLsNOAhpJ9q29sX1VtT+ns4VUzWpqOCy1zrMp40uZ7DeWXXLNlPMgk B8dA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PwKLaZRO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115833-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b9-20020a05622a020900b0043120072704si5085918qtx.789.2024.03.25.02.30.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:30:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PwKLaZRO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115833-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4B0491C31535 for ; Mon, 25 Mar 2024 09:30:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8A773709DC; Mon, 25 Mar 2024 03:01:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PwKLaZRO" 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 8A58D535A5; Sun, 24 Mar 2024 23:13:33 +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=1711322013; cv=none; b=QMKqMFkKrpylGnu/r3WcGbTuXW71K45iHsSwNnOWSzQH4vB+9sZvlIhiqZ5/ryH71Njx90WJCmHvTfVJI9mvOjrFSVPrbFvMPDhIs2A47jarWwP+CaYHoxqWjY3/QiZQbCj4ftj5Hh5H14Wr5kyYZbUAVuHXIBq633kP/n/STpQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322013; c=relaxed/simple; bh=KJVDxpizcfGR7aOIB8U3FFHOvETVfc+6GQRhnboy+Eo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YiuI6N8Nx23Bv3LkQvz5MoomqtA65i7aqdZ9yemWLBOL47Up4VVe1pJ+Ph0MsCbb0FZBYdGmaNL7sTXkcrougq6dLf5SIOFNM662m/85JHBP6tm1xP7RAeInFaXSumNn/NmYf/z1eVZ3z1sz7x7rqdV2fwTW2qNfTWm0QMrSkCQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PwKLaZRO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE437C43399; Sun, 24 Mar 2024 23:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322013; bh=KJVDxpizcfGR7aOIB8U3FFHOvETVfc+6GQRhnboy+Eo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PwKLaZROQPzYfKJcK/w7aq6mWbzzWTp/SJjOUYfITK7GREQsSL/chUwKtJzQU0gjY Xd07736cDRRG3Ydn7chIc0mOBHL4OlVOWjEWsoFvM3szFza0bdC2gJHcCE033O36uI /9M7dmjO2wVx2mRnH1Wm3wrPB1RuUv7f+kvVSLNDCXrDgfUgJvNBR5Tyq0npoMSd9W 2evhpvWBupALSh2EwxfFPNDOfeb7Cr7iCKC4ZjKJ88kvQVYpOUFS3ZYLpgitfCMXNm fT5jg/QHmDsF2AY2CVYL4pXJ2/TdSTjL6a6qFQ+pM4nImjk85kKj7jbKyKfOnBLeO+ L9b43fTykzeag== 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.1 085/451] wifi: b43: Stop/wake correct queue in PIO Tx path when QoS is disabled Date: Sun, 24 Mar 2024 19:06:01 -0400 Message-ID: <20240324231207.1351418-86-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-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 8c28a9250cd19..cc19b589fa70d 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