Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1053716pxu; Sat, 5 Dec 2020 02:40:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxP7px8xAkqIAnD8SL9q0MUfHCitNsb3qLVs1KtEhTZx/+IIOxCdXUIpMTi6wBImV5yRA2b X-Received: by 2002:a05:6402:1383:: with SMTP id b3mr4806565edv.100.1607164850256; Sat, 05 Dec 2020 02:40:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607164850; cv=none; d=google.com; s=arc-20160816; b=fP6Cchxoe21LWEHI7/KTa5fW8ZPCv3kOEDi/dUbXzWGrw3yi9CQcYG5bkO5Mv7zX62 8/Kp5zKpzOREHOsykxRdwUYLwwimQMVzIZo4c3tPdxYdvuTgd7zDW33dtPbvJgVPC+Bh BlDjdrjRxCH7B5By+8vC8ZuBwp2l1oD6k4QqT29kPV/OLar6KEdUE+69eSoTpz8DIUd9 uxFnQMOqrfqpm2HGC8mayQo1kOtLG8zNi+nUurPhUJlfycNLX+Jv3+RUQjTx5ioJouN2 dHkHlBp551aa7MzrfB36yFrRzsEVbxMRqIIJOs/2gmakV/PTOIwz7nSP1+2wZi9TRP50 1MIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qMdFDsbAdZSD/98JxQDScWLkYQax2l8A7mud4NTyTr4=; b=IC9oq3+GHXsqLWkfQjIwXM80QWh/xnDdxhXKXr3WwRf7Ss4CXEZygkALwZBmElqOJz FA6Ztmdyt22Bu0MwuymoR3kXVxrnLqC9zjXEjcJa1tk2qSeVjFy+b+mYToNWqL6B1UOK 90syS+b1+bJfx2kZf/zb+wUJMCuX8A6WcnzipgtoL5xwfbmcUo95dNdowJFOsID9EA+j UhtJhF2iQqpi5LvL8+XSgMDbJ7pIMiWP7V5M5PNT6r0k8GeIsTJBQddt1dj6g5yzW6nS RYfven74rX2r/Bt8kjPtp+kFB6zIoHT3QQ6DLZeSDNIEdy5Fy0jxeLv4abLUM5JqFU/c MMMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mj1si3145747ejb.54.2020.12.05.02.40.27; Sat, 05 Dec 2020 02:40:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727886AbgLEKiq (ORCPT + 99 others); Sat, 5 Dec 2020 05:38:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:45098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729223AbgLEKgb (ORCPT ); Sat, 5 Dec 2020 05:36:31 -0500 From: Lorenzo Bianconi Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH 1/2] mt76: usb: remove wake logic in mt76u_status_worker Date: Sat, 5 Dec 2020 11:35:25 +0100 Message-Id: <00009bf0cfdc9565e4432cad3ed51888c667c25d.1607164041.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Similar to mmio code path, remove wake logic in mt76u_status_worker handler Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/usb.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/usb.c b/drivers/net/wireless/mediatek/mt76/usb.c index 81393788f98e..658b36a2281d 100644 --- a/drivers/net/wireless/mediatek/mt76/usb.c +++ b/drivers/net/wireless/mediatek/mt76/usb.c @@ -811,7 +811,6 @@ static void mt76u_status_worker(struct mt76_worker *w) struct mt76_dev *dev = container_of(usb, struct mt76_dev, usb); struct mt76_queue_entry entry; struct mt76_queue *q; - bool wake; int i; for (i = 0; i < IEEE80211_NUM_ACS; i++) { @@ -827,10 +826,6 @@ static void mt76u_status_worker(struct mt76_worker *w) mt76_queue_tx_complete(dev, q, &entry); } - wake = q->stopped && q->queued < q->ndesc - 8; - if (wake) - q->stopped = false; - if (!q->queued) wake_up(&dev->tx_wait); @@ -839,8 +834,6 @@ static void mt76u_status_worker(struct mt76_worker *w) if (dev->drv->tx_status_data && !test_and_set_bit(MT76_READING_STATS, &dev->phy.state)) queue_work(dev->wq, &dev->usb.stat_work); - if (wake) - ieee80211_wake_queue(dev->hw, i); } } -- 2.28.0