From patchwork Thu Dec 6 11:40:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10715625 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-2.web.codeaurora.org (Postfix) with ESMTP id 6C87113BB for ; Thu, 6 Dec 2018 11:40:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 515092DDF9 for ; Thu, 6 Dec 2018 11:40:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44D7A2DEE4; Thu, 6 Dec 2018 11:40:31 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 1DAE12DDF9 for ; Thu, 6 Dec 2018 11:40:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728144AbeLFLk3 (ORCPT ); Thu, 6 Dec 2018 06:40:29 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38036 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727832AbeLFLk2 (ORCPT ); Thu, 6 Dec 2018 06:40:28 -0500 Received: by mail-wm1-f66.google.com with SMTP id m22so702042wml.3 for ; Thu, 06 Dec 2018 03:40:27 -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:mime-version:content-transfer-encoding; bh=2l507nDU0W1rv82AQB9Zomps5890aAjpOgur9DidWks=; b=sRF/f6EccvpGQJWpDIJ0yzKO5pDi7CNFFhOR3DyLRwexDkneTS5BUazFKkPmtxklfe dnR7TjYfH3eCbN9PSJ3uX3azMy3w8nTMDb64xGLtTsZdIbxCXc7+tYgqEkdskCPN5AQC vXc9btsDmI6mxJGLypqP+t86QNzZksYAK6NjUjNFUrjxPutnF/3qsv3SXZMKqybU8Tgm AiA1hSFfMKfarfOGm7RvCGEK+bkwCX+BroEAGi6KkZtS8j63mRgL/8ZirPdkiobwlugb P2e8kjevKGMlhvWluwul9cHR7Ho2SWcnAsCfCRmQ4FmCTjmK/OWmply+MahaslJgkQwt 1OXw== X-Gm-Message-State: AA+aEWaot821ltaZ13M11S56Xc4LXdlDBVzutEYNqMKFDF/99s7qsd+W El5BxBJZWZzfLHAgtAXfN2DY4+k27Lw= X-Google-Smtp-Source: AFSGD/U+ykEwT4OIsnWx5GlWXBzHnreMJSOI2k+ETgOStcFXBpAQCo8K1r9kGQA5BlJ5kWzqqjaB7w== X-Received: by 2002:a1c:864f:: with SMTP id i76mr15243198wmd.83.1544096427082; Thu, 06 Dec 2018 03:40:27 -0800 (PST) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id h4sm161410wrt.66.2018.12.06.03.40.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Dec 2018 03:40:26 -0800 (PST) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org Subject: [PATCH] mt76: fix typo in mt76x02_check_mac_err routine Date: Thu, 6 Dec 2018 12:40:23 +0100 Message-Id: <401ea9d0ae92b372b5d68060b089e5d44a76d53c.1544096101.git.lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: References: MIME-Version: 1.0 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 Reconfigure properly MT_MAC_SYS_CTRL register after mac sw-reset in mt76x02_check_mac_err routine Fixes: 73556561ab9f ("mt76x0: use mt76x02_mac_work as stats handler") Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c index c08bf371e527..490368dc9325 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c @@ -774,8 +774,8 @@ static void mt76x02_check_mac_err(struct mt76x02_dev *dev) mt76_set(dev, MT_MAC_SYS_CTRL, MT_MAC_SYS_CTRL_RESET_CSR); udelay(10); - mt76_clear(dev, MT_MAC_SYS_CTRL, - MT_MAC_SYS_CTRL_ENABLE_TX | MT_MAC_SYS_CTRL_ENABLE_RX); + mt76_wr(dev, MT_MAC_SYS_CTRL, + MT_MAC_SYS_CTRL_ENABLE_TX | MT_MAC_SYS_CTRL_ENABLE_RX); } void mt76x02_mac_work(struct work_struct *work)