Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp657042pxv; Thu, 15 Jul 2021 12:39:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyP3ZYzoQBfwrtXU8oWgpmTiztFRRH9cT58HXRxsql0nmXvl0Nw7AuY4ZelXUaF50KM44r0 X-Received: by 2002:a17:906:4095:: with SMTP id u21mr2770049ejj.108.1626377983092; Thu, 15 Jul 2021 12:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626377983; cv=none; d=google.com; s=arc-20160816; b=mQKxlGeXlyiEhuAkcicTo4+hpOciBuXai1n95TcaLLZ8/kTK2qJLyXTfvMeoLr0PPD um6V6k8Lv/AFVOgwIcxztwpBLd9FzBtLt7Ukc9uuEopj21sHNevqpd938jG+UycbRxZ2 JzsiYTeSuLqmB5dC7XbVdebU0HofR8q8bZeBp0MrMJPpleHQEJESViaDuZK0MRlPNYBT 27HKyO1tyqZF6ggjmtSKAQibzcFSKAfyteR0d4HoYckkmCvnAjhkReB7DJ+zL7tfN7tS 02iz1gs/wwGiwxaOJA8J3yEiNn/QHMOiAfrIMGGszNod8Z55gHUZ9EkwwyWqd8smrUBO Hajg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7ZM4/etvvodKrXTjNFleGIXBwAPMwkXCBkXqS+XNiSs=; b=pYdckNYF3otQ7V4M+Bl9XC4FQZtyEYYVdjlCQQKuiGIT44qmqII9Pg389fuNSe8deH 9qswh6a3wyYRflxxjwyd/AG7LuSWsUPxBNyPFRkZNufZDjAZUwmVItRH9QGeezr56x+m gheIkk/dhCcPiBRiBeq1EHxG4/DkrdikmTeOhYQ1SNsnA4mKUoSIBXDLqPVldY/icFM1 d4W1h4f6qKzaqFnMf2IILBcHBvwewM63qCwsHizukMssjLU/hJrHBF7Ekvf7tdZHLch/ ueN9g1PfPVnfFd5dSTx/NMaAonJYrjvDs1MxEXHzK4WmkVcRcmCWvZz9s4OMr82l0hvB RjgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EnDY6KdU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ne39si8668665ejc.123.2021.07.15.12.39.20; Thu, 15 Jul 2021 12:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EnDY6KdU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244824AbhGOTi6 (ORCPT + 99 others); Thu, 15 Jul 2021 15:38:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:50894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244235AbhGOTOh (ORCPT ); Thu, 15 Jul 2021 15:14:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7EB97613D4; Thu, 15 Jul 2021 19:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376190; bh=oYpL2aaow/wJPbnsz25tGe7LetsSdX7DUMIWaFdH0jY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EnDY6KdU0rTF6PSpuqHckxx+qFylvzg+Nrqcm+UdKvkPCPrtA1tkfE8qlojqjWLM7 ZAlr4qt9fhzsHIcKsudBnKMCnbghjBzDUmDi8SB0beglSjxDbK+B0haldfn241582o wLJzpL+43eZhmKGDl+fsBlbitqa6u3pd08a04uMQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lorenzo Bianconi , Felix Fietkau , Sasha Levin Subject: [PATCH 5.13 123/266] mt76: mt7921: reset wfsys during hw probe Date: Thu, 15 Jul 2021 20:37:58 +0200 Message-Id: <20210715182635.612615526@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lorenzo Bianconi [ Upstream commit 01f7da40917923bf9d8fd8d5c9a6ed646004e47c ] This patch fixes a mcu hang during device probe on Marvell ESPRESSObin after a hot reboot. Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7921/dma.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/dma.c b/drivers/net/wireless/mediatek/mt76/mt7921/dma.c index bd9143dc865f..7fca7dc466b8 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/dma.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/dma.c @@ -402,6 +402,10 @@ int mt7921_dma_init(struct mt7921_dev *dev) if (ret) return ret; + ret = mt7921_wfsys_reset(dev); + if (ret) + return ret; + /* init tx queue */ ret = mt7921_init_tx_queues(&dev->phy, MT7921_TXQ_BAND0, MT7921_TX_RING_SIZE); -- 2.30.2