Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6721301ybc; Thu, 28 Nov 2019 04:22:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzWggN7+fJGuIiEnIRrkOWSLF3/46xJU8APgfOblKMst3grcAXrvHdiI2w+lhHjUq63BJnb X-Received: by 2002:a17:906:3ec2:: with SMTP id d2mr55862166ejj.251.1574943775201; Thu, 28 Nov 2019 04:22:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574943775; cv=none; d=google.com; s=arc-20160816; b=KKVngw3OxQUiphZMit81UmA2tepxQopyiEQ0S4fhO0I+GQb5pra8tSo8P51uys6QRY skDivi+iX2qD9Ypxul82NXETykbcWX3WgOHg3EneA7HA6PE5uar1iszAbYbOjXlMJM6P 2NVA687erSp0paUr1TjuhqVvwJYrFHZPzBp6mJaF9Q0ZahPGgQIjTSl/r+fY7BzSfw4Z PIzfVtut+BNJGJazbzLmCJQeUkDWRR0rKkOySAY10PSOKQVB6qiD1ofgGRjvinF4jS5u dkhyu/kje/KT8zfgGJfw7/q8Hr5glG9rIMDLpzEJCoXycrGnU9CUi6fZy0/Q7+cvFj2n c6Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:authenticated-by; bh=8e+3Ddw0lwrec5GGKEcBsLrsE1GEtRw5zju9BAdaSjY=; b=tOm40QV+vnHib00Oa2iwsPlu6MgBwOpCrT6Raj5ZSdxX2OehFHFhxiTrYP1UjSPiUH Pl4YpHu0EDGlCaUDiVZLzpu8dxWOnAhscVCBnOdlUfYA7eRN3VMk03bqSplqXjU/DwZQ W6lKj1IUYOmvclO6bfj0FKElLMheiNmez+QUJli8R/81MHAHami5Nmg/pp7jNIVxsHgC movRGcbB7zsJmcQC20f1QWq5Cc7Aoc+MuiPfL/jNsxZtrvOTtWDMJMrNyWlcTlGilMhq JojuEQRw2+BmlPb/N7j8pZ2pekSgq5L0guco0qmKIswIGVCucznafVUGTGdL1t+0TOKv vFBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cf2si6650950edb.435.2019.11.28.04.22.30; Thu, 28 Nov 2019 04:22:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726859AbfK1MTW (ORCPT + 99 others); Thu, 28 Nov 2019 07:19:22 -0500 Received: from rtits2.realtek.com ([211.75.126.72]:59538 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfK1MTV (ORCPT ); Thu, 28 Nov 2019 07:19:21 -0500 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID xASCJCxU004444, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCASV01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id xASCJCxU004444 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 28 Nov 2019 20:19:13 +0800 Received: from localhost.localdomain (172.21.68.126) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.468.0; Thu, 28 Nov 2019 20:19:12 +0800 From: To: CC: , Subject: [PATCH 1/6] rtw88: pci: reset ring index when release skbs in tx ring Date: Thu, 28 Nov 2019 20:19:02 +0800 Message-ID: <20191128121907.6178-2-yhchuang@realtek.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191128121907.6178-1-yhchuang@realtek.com> References: <20191128121907.6178-1-yhchuang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.126] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Chin-Yen Lee When skbs queued for each TX ring are relased in PCI stop flow, the ring index should be reset at the same time. Signed-off-by: Chin-Yen Lee Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c index a58e8276a41a..068f1bec88e6 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.c +++ b/drivers/net/wireless/realtek/rtw88/pci.c @@ -506,6 +506,7 @@ static void rtw_pci_dma_release(struct rtw_dev *rtwdev, struct rtw_pci *rtwpci) struct rtw_pci_tx_ring *tx_ring; u8 queue; + rtw_pci_reset_trx_ring(rtwdev); for (queue = 0; queue < RTK_MAX_TX_QUEUE_NUM; queue++) { tx_ring = &rtwpci->tx_rings[queue]; rtw_pci_free_tx_ring_skbs(rtwdev, tx_ring); -- 2.17.1