From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 472AD374192; Thu, 30 Jul 2026 15:43:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785426239; cv=none; b=iOXHqLqJ92v+JYCBijUnkjYOkeTceoloVx71fn79jO3GCm7o66gvgxS47L39U1fwD+Ejp3VJV8rOCoXjsPcXW5kLx8vdRuUy1NeSGbeVeeDVO64Ir6f/3nveNLPi5vh/FYFSjDHcZZkRQhAT7jXINuDWmWrbfZw4DrNoGZkECeI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785426239; c=relaxed/simple; bh=te2KnQaz0/1FAqDayyoMs1kgsyVkm+oRAPdXJHsbRZc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ruNIh47HAG7Ny78ICgb9JbqvI4Ck+ljY2bierAw6F+i1JbDBZ4NY8XqWOOhv8aIaQnUfUftFdrJkMoo0wQjj6xtkzpjEBbd8adiAtSfr/cGVWk/LSWpsMpBrhwE3aztG16nVQzFmOaTwp8DzksnPmlkheOmhOuC90d6xnoYihVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NSu3GutO; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NSu3GutO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D0CB1F000E9; Thu, 30 Jul 2026 15:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785426238; bh=qBn7Hc3NP3ur3IV231MNdheDBUacSL0y4cebXTCxEH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=NSu3GutOPxVOiov9QAW8dvYdQBVLH7sWe/b6S02XgrDYozQjf+mrLCwfs4kCh4/ta RnGcr4xEE1navtaRAWI153IZ9rBo+3IINn3tcP6KJd641i0wl7pXIWgVdMpAx+74ZS HYLYzF5Si5HTEWAofxDwqzojtyVSY4PUFUsvW78s= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Devin Wittmayer , Felix Fietkau Subject: [PATCH 6.12 349/602] wifi: mt76: mt7615: drop TXRX_NOTIFY on non-mmio buses Date: Thu, 30 Jul 2026 16:12:21 +0200 Message-ID: <20260730141443.292583088@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260730141435.976815864@linuxfoundation.org> References: <20260730141435.976815864@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Devin Wittmayer commit 39afc46c0243d10b7795e6e6cf4ae91f41732120 upstream. PKT_TYPE_TXRX_NOTIFY is an mmio-only event, but mt7615_rx_check() and mt7615_queue_rx_skb() dispatch it to mt7615_mac_tx_free() on every bus. mt7615_mac_tx_free() cleans the DMA tx queues with mt76_queue_tx_cleanup(), which calls queue_ops->tx_cleanup(). Only the mmio queue ops implement that callback; on the mt7663 USB and SDIO buses it is NULL, so a TXRX_NOTIFY there calls a NULL pointer in the RX worker. Same defect as the mt7921 and mt7925 patches in this series. Drop the event on non-mmio buses via mt76_is_mmio(), as in commit 5683e1488aa9 ("wifi: mt76: connac: do not check WED status for non-mmio devices"). Fixes: eb99cc95c3b6 ("mt76: mt7615: introduce mt7663u support") Cc: stable@vger.kernel.org Signed-off-by: Devin Wittmayer Link: https://patch.msgid.link/20260627191336.20223-4-lucid_duck@justthetip.ca Signed-off-by: Felix Fietkau Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c @@ -1612,6 +1612,8 @@ bool mt7615_rx_check(struct mt76_dev *md switch (type) { case PKT_TYPE_TXRX_NOTIFY: + if (!mt76_is_mmio(mdev)) + return false; mt7615_mac_tx_free(dev, data, len); return false; case PKT_TYPE_TXS: @@ -1645,6 +1647,10 @@ void mt7615_queue_rx_skb(struct mt76_dev dev_kfree_skb(skb); break; case PKT_TYPE_TXRX_NOTIFY: + if (!mt76_is_mmio(mdev)) { + dev_kfree_skb(skb); + break; + } mt7615_mac_tx_free(dev, skb->data, skb->len); dev_kfree_skb(skb); break;