blob: 6845b0f0e29a71e89b19936071c38365d142af3f [file] [log] [blame]
developer60a3d662023-02-07 15:24:34 +08001From 1796376cd4aedff17a93f6a28c5b321d678ebf95 Mon Sep 17 00:00:00 2001
developer0577a862023-01-03 16:01:51 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Fri, 30 Dec 2022 11:11:59 +0800
developer60a3d662023-02-07 15:24:34 +08004Subject: [PATCH 4003/4006] mt76: revert kernel api for kernel 5.4
developer0577a862023-01-03 16:01:51 +08005
6---
7 debugfs.c | 2 ++
developer60a3d662023-02-07 15:24:34 +08008 dma.c | 2 +-
9 2 files changed, 3 insertions(+), 1 deletion(-)
developer0577a862023-01-03 16:01:51 +080010
11diff --git a/debugfs.c b/debugfs.c
12index 79064a4d..4a8e1864 100644
13--- a/debugfs.c
14+++ b/debugfs.c
15@@ -33,8 +33,10 @@ mt76_napi_threaded_set(void *data, u64 val)
16 if (!mt76_is_mmio(dev))
17 return -EOPNOTSUPP;
18
19+#if 0 /* disable in backport 5.15 */
20 if (dev->napi_dev.threaded != val)
21 return dev_set_threaded(&dev->napi_dev, val);
22+#endif
23
24 return 0;
25 }
developer60a3d662023-02-07 15:24:34 +080026diff --git a/dma.c b/dma.c
27index 79da538c..e6021369 100644
28--- a/dma.c
29+++ b/dma.c
30@@ -928,7 +928,7 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget)
31 !(dev->drv->rx_check(dev, data, len)))
32 goto free_frag;
33
34- skb = napi_build_skb(data, q->buf_size);
35+ skb = build_skb(data, q->buf_size);
36 if (!skb)
37 goto free_frag;
38
developer0577a862023-01-03 16:01:51 +080039--
402.18.0
41