From patchwork Sun Mar 7 18:20:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 395284 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F4C5C43381 for ; Sun, 7 Mar 2021 18:21:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1EABF6513D for ; Sun, 7 Mar 2021 18:21:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231167AbhCGSVL (ORCPT ); Sun, 7 Mar 2021 13:21:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:35576 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230507AbhCGSVE (ORCPT ); Sun, 7 Mar 2021 13:21:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 47D8D6513D; Sun, 7 Mar 2021 18:21:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615141264; bh=yicg+PMkkWg6+b9XNs60NMd/nQMN/i/dx2BmcPkPacI=; h=From:To:Cc:Subject:Date:From; b=IA6qHNK9cILxTHqHKzrNwb6/QEud49ZJBMLJylYD64rsOpOSrKUIQCq/phRCVdvhn 5R3pq5+I+3jJeCmaO1EvztojrXfvhFjZqXh/mumRXejL1ZdhMqijIG+zpKWHSZ66F2 3byvkM/mXNBCznh7cxr1HaHcAOP/n0/pIh6FjjDLG/gA23hwDnuQXGuLtGjp99Dja5 PKj16icE68ihfsYMPQMmnOmGfhWj3b2pAWTD4L3VOBlvNMz9rri7sYYcRH8bOFznmn mxvdF0nDuqEONTU8+mwVGhebPQu+oN9DrKjmIoYP6kbeU9lrdgsb42YrQ41wLDNl4H 42KnbJGy8FQzg== From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, sean.wang@mediatek.com Subject: [PATCH 0/7] mt7921: introduce wifi chip reset support Date: Sun, 7 Mar 2021 19:20:44 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Introduce wifi chip reset support for mt7921 devices in order to recover from mcu hangs. Lorenzo Bianconi (7): mt76: mt7921: reduce mcu timeouts for suspend, offload and hif_ctrl msg mt76: introduce mcu_reset function pointer in mt76_mcu_ops structure mt76: mt7921: introduce mt7921_run_firmware utility routine. mt76: mt7921: introduce __mt7921_start utility routine mt76: dma: introduce mt76_dma_queue_reset routine mt76: dma: export mt76_dma_rx_cleanup routine mt76: mt7921: add wifi reset support drivers/net/wireless/mediatek/mt76/dma.c | 47 ++-- drivers/net/wireless/mediatek/mt76/mcu.c | 4 + drivers/net/wireless/mediatek/mt76/mt76.h | 9 +- .../net/wireless/mediatek/mt76/mt7921/init.c | 3 +- .../net/wireless/mediatek/mt76/mt7921/mac.c | 201 +++++++++++++----- .../net/wireless/mediatek/mt76/mt7921/main.c | 35 +-- .../net/wireless/mediatek/mt76/mt7921/mcu.c | 47 ++-- .../wireless/mediatek/mt76/mt7921/mt7921.h | 6 +- .../net/wireless/mediatek/mt76/mt7921/regs.h | 4 + 9 files changed, 248 insertions(+), 108 deletions(-)