Archive-only list for patches
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: stable@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	patches@lists.linux.dev, Sashiko <sashiko-bot@kernel.org>,
	Zhi-Jun You <hujy652@gmail.com>, Jakub Kicinski <kuba@kernel.org>,
	Sasha Levin <sashal@kernel.org>
Subject: [PATCH 6.6 0054/1167] net: ethernet: mtk_wed: fix reset condition for rx wdma
Date: Fri,  4 Dec 2026 18:51:21 +0900	[thread overview]
Message-ID: <20261204100703.490100992@linuxfoundation.org> (raw)
In-Reply-To: <20261204100702.047403948@linuxfoundation.org>

6.6-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Zhi-Jun You <hujy652@gmail.com>

[ Upstream commit 7180a42d8e616f919dcff4b90a13b9a5ecea665b ]

In mtk_wdma_rx_reset, currently only resets the CPU index of the rings
that doesn't have a descriptor. This is wrong because no descriptor
means the ring is not configured.

Also mtk_wed_start makes sure that all rx_wdma rings are set up this
would lead to no ring getting their CPU index reset.

Fix this by inverting the reset condition so allocated rings will be
reset.

Fixes: 4c5de09eb0d0 ("net: ethernet: mtk_wed: add configure wed wo support")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://sashiko.dev/#/patchset/20260724172040.1653-1-hujy652%40gmail.com
Signed-off-by: Zhi-Jun You <hujy652@gmail.com>
Link: https://patch.msgid.link/20261026-wedfix-v6-2-a52f6b15d2fc@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/ethernet/mediatek/mtk_wed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/mediatek/mtk_wed.c b/drivers/net/ethernet/mediatek/mtk_wed.c
index 525e2d365cd95..981292ef8f7fc 100644
--- a/drivers/net/ethernet/mediatek/mtk_wed.c
+++ b/drivers/net/ethernet/mediatek/mtk_wed.c
@@ -125,7 +125,7 @@ mtk_wdma_rx_reset(struct mtk_wed_device *dev)
 	wdma_w32(dev, MTK_WDMA_RESET_IDX, 0);
 
 	for (i = 0; i < ARRAY_SIZE(dev->rx_wdma); i++) {
-		if (dev->rx_wdma[i].desc)
+		if (!dev->rx_wdma[i].desc)
 			continue;
 
 		wdma_w32(dev,
-- 
2.53.0




  parent reply	other threads:[~2026-12-04 10:21 UTC|newest]

Thread overview: 118+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  9:50 [PATCH 6.6 0000/1167] 6.6.164-rc1 review Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0001/1167] netfilter: nft_ct: expectation timeouts are passed in milliseconds Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0002/1167] netfilter: nft_ct: move custom expectation support to helper Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0003/1167] mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0004/1167] drm/amdgpu: Check cs flags Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0005/1167] bpf: Fix memory access flags in helper prototypes Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0006/1167] bpf: Drop inet_conn_established from lsm sleepable hooks Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0007/1167] mm: page_alloc: remove ALLOC_NON_BLOCK from ALLOC_RESERVES Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0008/1167] irqchip/sifive-plic: Avoid signed shift in interrupt enable mask Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0009/1167] bpf: Fix verifier assumptions of bpf_d_paths output buffer Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0010/1167] bpf: Specify access type of bpf_sysctl_get_name args Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0011/1167] fs: aio: reject partial mremap to avoid Null-pointer-dereference error Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0012/1167] virtio_net: check RX buffer length before DMA sync Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0013/1167] mm/ksm: fix userfaultfd protection during merge and unmerge Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0014/1167] udf: validate VAT inode size for old VAT format Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0015/1167] udf: validate vat20->lengthHeader and VAT inode size in udf_load_vat() Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0016/1167] io_uring: enable toggle of iowait usage when waiting on CQEs Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0017/1167] io_uring: fail soft links on negative IOU_COMPLETE results Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0018/1167] io_uring/rw: fail soft links on IOPOLL short or error IO Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0019/1167] io_uring/timeout: dont rearm a multishot timeout on cancel Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0020/1167] io_uring/rsrc: keep the old file when a file update fails Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0021/1167] io_uring: cleanup handle_tw_list() calling convention Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0022/1167] io_uring: pass in counter to handle_tw_list() rather than return it Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0023/1167] io_uring/sqpoll: manage task_work privately Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0024/1167] io_uring: wake SQPOLL task when task_work is added to an empty queue Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0025/1167] io_uring/sqpoll: use the correct check for pending task_work Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0026/1167] io_uring/sqpoll: early exit thread if task_context wasnt allocated Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0027/1167] io_uring/sqpoll: ensure that normal task_work is also run timely Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0028/1167] io_uring: signal SQPOLL task_work with TWA_SIGNAL_NO_IPI Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0029/1167] io_uring/sqpoll: ensure task state is TASK_RUNNING when running task_work Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0030/1167] io_uring: dont touch sqd->thread off tw add Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0031/1167] io_uring/sqpoll: zero sqd->thread on tctx errors Greg Kroah-Hartman
2026-12-04  9:50 ` [PATCH 6.6 0032/1167] io_uring/sqpoll: Increase task_work submission batch size Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0033/1167] io_uring: fix task_work add use-after-free with SQPOLL Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0034/1167] io_uring/sqpoll: do the return-to-userspace work in the SQPOLL thread Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0035/1167] net: sfp: add quirk for Lantech 8330-265D Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0036/1167] Input: destroy force-feedback device on input unregistration Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0037/1167] staging: media: atomisp: use array3_size() for overflow-safe allocation Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0038/1167] fs/9p: switch vfsmount to use v9fs_get_new_inode Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0039/1167] fs/9p: rework qid2ino logic Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0040/1167] 9p: skip intermediate directory entry name copy in p9dirent_read() Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0041/1167] xfrm: zero-initialise km_event in the replay-notify path Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0042/1167] batman-adv: avoid WARN_ON for orig_ifinfo allocation failure Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0043/1167] wifi: ath9k_htc: start ANI when an AP interface begins to beacon Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0044/1167] scsi: aic7xxx: Fix REQUEST SENSE allocation length on big-endian hosts Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0045/1167] scsi: aha1542: Remove unneeded scsi_dma_unmap() call Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0046/1167] 9p: fall back to the normal open path for non-regular files Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0047/1167] 9p: do not store the create fid on special files Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0048/1167] wifi: ath10k: Stop unanswered temperature reads Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0049/1167] seg6: fix transport header for inner IPv4 with IP options Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0050/1167] gpio: omap: Propagate runtime PM failures in probe and request Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0051/1167] btrfs: verity: propagate orphan insertion errors when enabling verity Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0052/1167] btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is finishing Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0053/1167] btrfs: zoned: fix double free of bitmaps on clone failure Greg Kroah-Hartman
2026-12-04  9:51 ` Greg Kroah-Hartman [this message]
2026-12-04  9:51 ` [PATCH 6.6 0055/1167] net: ethernet: mtk_wed: free up rings during detach Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0056/1167] net: ethernet: mtk_wed: introduce versioning utility routines Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0057/1167] net: ethernet: mtk_wed: setup WDMA_RING_TX(0) for non-DBDC MT7986 Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0058/1167] ptp: drain virtual clock sysfs operations before unregistering children Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0059/1167] ptp: unwind partially completed virtual clock creation Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0060/1167] ptp: vclock: propagate physical clock sampling errors Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0061/1167] ptp: vclock: serialize extended samples with counter updates Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0062/1167] scsi: target: Validate REGISTER AND MOVE TransportID length Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0063/1167] tipc: reject attaching bearer of different media to the same occupied device Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0064/1167] spi: pic32-sqi: fail transfer when the BD ring is exhausted Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0065/1167] bpf: Require prog fd or capability for cgroup detach Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0066/1167] bpf, cgroup: Keep the skb network offset signed Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0067/1167] bpf: Dont let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0068/1167] bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6 Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0069/1167] bpf: Limit the SRH length in bpf_lwt_seg6_adjust_srh() Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0070/1167] bpf: Dont look for the SRH again in the End.BPF helpers Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0071/1167] bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh() Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0072/1167] bpf: Dont leave a stale MAC header in bpf_lwt_push_ip_encap() Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0073/1167] ipv4: Unmask upper DSCP bits in input route lookup Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0074/1167] ipv4: Convert ip_route_input_noref() to dscp_t Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0075/1167] bpf: Reset skb->cb after an lwt prog pushes an IP header Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0076/1167] bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0077/1167] bpf: Move the transport header with the moved headers Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0078/1167] bpf: Check the offset in bpf_skb_generic_{push,pop}() Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0079/1167] spi: Fix ACPI SPI resources using relative path Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0080/1167] spi: acpi: only look up the IRQ of confirmed SPI devices Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0081/1167] bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0082/1167] net/mlx5: macsec: free struct mlx5_fs_id after an RCU grace period Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0083/1167] tcp: do not let tcp_collapse() drive sk_forward_alloc negative Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0084/1167] ata: libata-sata: allow re-enabling NCQ with the same queue_depth Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0085/1167] ata: libata-eh: Retry non-NCQ commands when their sense data asks for it Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0086/1167] net: stmmac: Set dma_sync_size to zero for discarded frames Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0087/1167] net: stmmac: drop split frames on AF_XDP zero-copy RX Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0088/1167] net: stmmac: copy XDP metadata in " Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0089/1167] net: lan966x: dont free XDP buffers in fdma tx clear with budget 0 Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0090/1167] drm/panel: visionox-r66451: Send the brightness value MSB first Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0091/1167] drm/panel: visionox-r66451: Wait longer after the panel reset Greg Kroah-Hartman
2026-12-04  9:51 ` [PATCH 6.6 0092/1167] sfc: ptp: drop the stale frequency reset in efx_ptp_start() Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0093/1167] sfc: ptp: serialize host and MC synchronization transactions Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0094/1167] sfc: ptp: avoid racing PPS timestamp updates Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0095/1167] vdpa_sim: serialize IOTLB updates with dataplane access Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0096/1167] vhost-scsi: preserve event ordering Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0097/1167] vhost-scsi: do not relock event vq mutex on send_evt fallback Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0098/1167] vdpa: fix double free of the reply skb in vdpa_nl_cmd_dev_config_get_doit() Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0099/1167] vhost: reject invalid IOTLB update permissions Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0100/1167] irqbypass: Take ownership of producer/consumer token tracking Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0101/1167] vhost-vdpa: drop the parents vq callback before the call fd is released Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0102/1167] virtio_blk: Reset device on probe error paths after DRIVER_OK Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0104/1167] regulator: qcom_spmi: dont take a sleeping lock in the SAW IPI Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0105/1167] net: sparx5/lan969x: release the in-flight slot of a stale TX skb Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0113/1167] Bluetooth: hci_core: Initialize link key before publication Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0114/1167] Bluetooth: hci_core: Initialize LTK " Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0115/1167] Bluetooth: btintel: Add support for BlazarI Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0116/1167] Bluetooth: Add vendor-specific packet classification for ISO data Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0117/1167] Bluetooth: hci_core: Fix queuing rx_work while workqueue is drained Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0118/1167] Bluetooth: btintel: fix buffer over-read in fw payload Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0119/1167] Bluetooth: hci_event: Clear explicit connect state on LE connection Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0120/1167] Bluetooth: hci_sync: Protect resolving-list lookups Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0121/1167] Bluetooth: mgmt: reply to cancelled mgmt commands instead of silently dropping Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0122/1167] Bluetooth: MGMT: Return RFKILLED for Set Powered on a blocked controller Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0123/1167] Bluetooth: hci_core: Keep link-key filtering inside RCU Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0124/1167] Bluetooth: hci_sync: Copy the resolving-list IRK under RCU Greg Kroah-Hartman
2026-12-04  9:52 ` [PATCH 6.6 0125/1167] Bluetooth: hci_core: Initialize advertising RPA work only once Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204100703.490100992@linuxfoundation.org \
    --to=gregkh@linuxfoundation.org \
    --cc=hujy652@gmail.com \
    --cc=kuba@kernel.org \
    --cc=patches@lists.linux.dev \
    --cc=sashal@kernel.org \
    --cc=sashiko-bot@kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox