From patchwork Fri Sep 4 10:15:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 11756501 X-Patchwork-Delegate: nbd@nbd.name Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2F54413B1 for ; Fri, 4 Sep 2020 10:15:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 13B0320791 for ; Fri, 4 Sep 2020 10:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599214550; bh=HNZrp2eIHtaSEEWfmzi8lYkBtGXRPcZ5Efwx6LBTnEg=; h=From:To:Cc:Subject:Date:List-ID:From; b=ejbion4Vvt+xQoX6abLYRal0yLAW0DYPlIw2Rw6oR/A1yBiAv6/RC62kMxpGFSg94 X3xsOThipG8DVAfr6ZXvtN1t58p5FOo2ByLsxYevm6xHIKl47MGkus2cgrQjL4zUKG 9SgSTnBFDBBqNaxymHX0VZFpTp1fax8G/vJK3RPE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728636AbgIDKPs (ORCPT ); Fri, 4 Sep 2020 06:15:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:44578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbgIDKPr (ORCPT ); Fri, 4 Sep 2020 06:15:47 -0400 Received: from lore-desk.redhat.com (unknown [151.66.86.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 099E4206D4; Fri, 4 Sep 2020 10:15:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599214547; bh=HNZrp2eIHtaSEEWfmzi8lYkBtGXRPcZ5Efwx6LBTnEg=; h=From:To:Cc:Subject:Date:From; b=Lp7auLFl6GCaIBSrKMRVzMtQF2TFpbU2BxD4X3DS5fWhIApMNiaLMgjv6KGYRggVc iowz4I8JmBTfl2qZjjz0YZQf1GAXuC2/VOFMpfvG2NNpg8PL1/HRzR/s2NUEZLJRj4 gSoLIothfOf/bFHK2a5jd29uILTkd7F2vja4F4Qk= From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org, ryder.lee@mediatek.com, shayne.chen@mediatek.com Subject: [PATCH] mt76: mt7622: fix fw hang on mt7622 Date: Fri, 4 Sep 2020 12:15:42 +0200 Message-Id: X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Set poll timeout to 3s for mt7622 devices in order to avoid fw hangs. Co-developed-by: Shayne Chen Signed-off-by: Shayne Chen Co-developed-by: Ryder Lee Signed-off-by: Ryder Lee Fixes: 757b0e7fd6f4 ("mt76: mt7615: avoid polling in fw_own for mt7663") Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c index 074cdefba8aa..77595bc1f1ae 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c @@ -386,7 +386,7 @@ static int mt7615_mcu_fw_pmctrl(struct mt7615_dev *dev) if (is_mt7622(&dev->mt76) && !mt76_poll_msec(dev, addr, MT_CFG_LPCR_HOST_FW_OWN, - MT_CFG_LPCR_HOST_FW_OWN, 300)) { + MT_CFG_LPCR_HOST_FW_OWN, 3000)) { dev_err(dev->mt76.dev, "Timeout for firmware own\n"); clear_bit(MT76_STATE_PM, &mphy->state); err = -EIO;