developer | 60a3d66 | 2023-02-07 15:24:34 +0800 | [diff] [blame^] | 1 | From 1796376cd4aedff17a93f6a28c5b321d678ebf95 Mon Sep 17 00:00:00 2001 |
developer | 0577a86 | 2023-01-03 16:01:51 +0800 | [diff] [blame] | 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Fri, 30 Dec 2022 11:11:59 +0800 |
developer | 60a3d66 | 2023-02-07 15:24:34 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 4003/4006] mt76: revert kernel api for kernel 5.4 |
developer | 0577a86 | 2023-01-03 16:01:51 +0800 | [diff] [blame] | 5 | |
| 6 | --- |
| 7 | debugfs.c | 2 ++ |
developer | 60a3d66 | 2023-02-07 15:24:34 +0800 | [diff] [blame^] | 8 | dma.c | 2 +- |
| 9 | 2 files changed, 3 insertions(+), 1 deletion(-) |
developer | 0577a86 | 2023-01-03 16:01:51 +0800 | [diff] [blame] | 10 | |
| 11 | diff --git a/debugfs.c b/debugfs.c |
| 12 | index 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 | } |
developer | 60a3d66 | 2023-02-07 15:24:34 +0800 | [diff] [blame^] | 26 | diff --git a/dma.c b/dma.c |
| 27 | index 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 | |
developer | 0577a86 | 2023-01-03 16:01:51 +0800 | [diff] [blame] | 39 | -- |
| 40 | 2.18.0 |
| 41 | |