From patchwork Thu Jan 18 23:08:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10174223 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 05586602DC for ; Thu, 18 Jan 2018 23:08:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8CAF28553 for ; Thu, 18 Jan 2018 23:08:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD85E28543; Thu, 18 Jan 2018 23:08:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C66AF28514 for ; Thu, 18 Jan 2018 23:08:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932523AbeARXIZ (ORCPT ); Thu, 18 Jan 2018 18:08:25 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35692 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932379AbeARXIX (ORCPT ); Thu, 18 Jan 2018 18:08:23 -0500 Received: by mail-wm0-f65.google.com with SMTP id r78so86700wme.0 for ; Thu, 18 Jan 2018 15:08:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sNsGKC43CND17ixIdyn739PBmM0eRHdVhDEgezU+qPM=; b=qZ00LOS/fEU1QjaXD6ef5JuMgSnKA5CZ9n2qyd4MX8Inh846H7nMjPVI3dASo8gs7s P4YgF+JVDycwVyIlB6IBuWhyIWXcVV29FDHEgeI4ISKEjkiZc2BV1N9Crw7kJYHv/oCw IeRrmaodIIyrQozyrZAGuAl8ZsjRQLlRl6FYJrQyvBxPSDgL/kg/CDa0H2mPRqhx4wlF He2eqlnBLR9AplFqqoBefDHvzT7pI1UgGE0NzfpB+VMHm/QBh2VdR1UT5RWMXQZAJ1pD GX96AKpHQ/Cg6x/t0uqpADgk44hIfrv2E3B/o85IFt7qHX3Ze8C0+LQtQblr8Gz4KHqe 0grg== X-Gm-Message-State: AKwxytfifhgrP69gZ9+E9qnp9LqiTNEQTm6vtxIWqJmhSqonjLPY1AlI jZwCEJQ5PBrsTAsSb0671DFiug== X-Google-Smtp-Source: ACJfBovKp+1zq0v7xiG2A8UXWRddvr9eN9Hz5cUC9wQucYoERAt7fb1HYjIHmRZaCOq+TQtDbZOVWw== X-Received: by 10.28.23.149 with SMTP id 143mr6005443wmx.83.1516316902226; Thu, 18 Jan 2018 15:08:22 -0800 (PST) Received: from localhost.localdomain.com ([151.66.74.3]) by smtp.gmail.com with ESMTPSA id l40sm254258wre.6.2018.01.18.15.08.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Jan 2018 15:08:21 -0800 (PST) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org Subject: [PATCH 1/2] mt76x2: init: disable tbtt tasklet during device cleanup Date: Fri, 19 Jan 2018 00:08:13 +0100 Message-Id: X-Mailer: git-send-email 2.13.6 In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x2_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2_init.c b/drivers/net/wireless/mediatek/mt76/mt76x2_init.c index 9f20a308ff76..66d4bfc70977 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2_init.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2_init.c @@ -614,6 +614,7 @@ void mt76x2_stop_hardware(struct mt76x2_dev *dev) void mt76x2_cleanup(struct mt76x2_dev *dev) { + tasklet_disable(&dev->pre_tbtt_tasklet); mt76x2_stop_hardware(dev); mt76x2_dma_cleanup(dev); mt76x2_mcu_cleanup(dev);