mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
ac7ccf739a
This updates to backports-4.19.57-1 which contains the wireless subsystem and driver from kernel 4.19.57. The removed patches are applied upstream. Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
58 lines
1.9 KiB
Diff
58 lines
1.9 KiB
Diff
From 6013a91f15c9dabd668d5736652b9bcfb0ef0378 Mon Sep 17 00:00:00 2001
|
|
From: Stanislaw Gruszka <sgruszka@redhat.com>
|
|
Date: Sat, 9 Feb 2019 12:08:36 +0100
|
|
X-Patchwork-Submitter: Stanislaw Gruszka <sgruszka@redhat.com>
|
|
X-Patchwork-Id: 10804447
|
|
X-Patchwork-Delegate: kvalo@adurom.com
|
|
Subject: [PATCH 26/28] rt2x00: remove last_nostatus_check
|
|
|
|
We do not any longer check txstatus timeout from tasklet, so do not need
|
|
this optimization.
|
|
|
|
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
|
|
---
|
|
drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 9 ---------
|
|
drivers/net/wireless/ralink/rt2x00/rt2x00.h | 2 --
|
|
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c | 1 -
|
|
3 files changed, 12 deletions(-)
|
|
|
|
--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
|
|
+++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
|
|
@@ -1164,15 +1164,6 @@ bool rt2800_txstatus_timeout(struct rt2x
|
|
struct data_queue *queue;
|
|
struct queue_entry *entry;
|
|
|
|
- if (!test_bit(DEVICE_STATE_FLUSHING, &rt2x00dev->flags)) {
|
|
- unsigned long tout = msecs_to_jiffies(1000);
|
|
-
|
|
- if (time_before(jiffies, rt2x00dev->last_nostatus_check + tout))
|
|
- return false;
|
|
- }
|
|
-
|
|
- rt2x00dev->last_nostatus_check = jiffies;
|
|
-
|
|
tx_queue_for_each(rt2x00dev, queue) {
|
|
entry = rt2x00queue_get_entry(queue, Q_INDEX_DONE);
|
|
if (rt2800_entry_txstatus_timeout(rt2x00dev, entry))
|
|
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00.h
|
|
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00.h
|
|
@@ -980,8 +980,6 @@ struct rt2x00_dev {
|
|
*/
|
|
DECLARE_KFIFO_PTR(txstatus_fifo, u32);
|
|
|
|
- unsigned long last_nostatus_check;
|
|
-
|
|
/*
|
|
* Timer to ensure tx status reports are read (rt2800usb).
|
|
*/
|
|
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
|
|
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
|
|
@@ -1042,7 +1042,6 @@ void rt2x00queue_start_queues(struct rt2
|
|
*/
|
|
tx_queue_for_each(rt2x00dev, queue)
|
|
rt2x00queue_start_queue(queue);
|
|
- rt2x00dev->last_nostatus_check = jiffies;
|
|
|
|
rt2x00queue_start_queue(rt2x00dev->rx);
|
|
}
|