| From 1796376cd4aedff17a93f6a28c5b321d678ebf95 Mon Sep 17 00:00:00 2001 |
| From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| Date: Fri, 30 Dec 2022 11:11:59 +0800 |
| Subject: [PATCH 4003/4006] mt76: revert kernel api for kernel 5.4 |
| |
| --- |
| debugfs.c | 2 ++ |
| dma.c | 2 +- |
| 2 files changed, 3 insertions(+), 1 deletion(-) |
| |
| diff --git a/debugfs.c b/debugfs.c |
| index 79064a4d..4a8e1864 100644 |
| --- a/debugfs.c |
| +++ b/debugfs.c |
| @@ -33,8 +33,10 @@ mt76_napi_threaded_set(void *data, u64 val) |
| if (!mt76_is_mmio(dev)) |
| return -EOPNOTSUPP; |
| |
| +#if 0 /* disable in backport 5.15 */ |
| if (dev->napi_dev.threaded != val) |
| return dev_set_threaded(&dev->napi_dev, val); |
| +#endif |
| |
| return 0; |
| } |
| diff --git a/dma.c b/dma.c |
| index 79da538c..e6021369 100644 |
| --- a/dma.c |
| +++ b/dma.c |
| @@ -928,7 +928,7 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget) |
| !(dev->drv->rx_check(dev, data, len))) |
| goto free_frag; |
| |
| - skb = napi_build_skb(data, q->buf_size); |
| + skb = build_skb(data, q->buf_size); |
| if (!skb) |
| goto free_frag; |
| |
| -- |
| 2.18.0 |
| |