From patchwork Thu Sep 27 09:01:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10617639 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 689903CF1 for ; Thu, 27 Sep 2018 09:02:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A9322A490 for ; Thu, 27 Sep 2018 09:02:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4EB2F2ABC1; Thu, 27 Sep 2018 09:02:19 +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 0814A2A490 for ; Thu, 27 Sep 2018 09:02:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727380AbeI0PT3 (ORCPT ); Thu, 27 Sep 2018 11:19:29 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37283 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727340AbeI0PT3 (ORCPT ); Thu, 27 Sep 2018 11:19:29 -0400 Received: by mail-wr1-f67.google.com with SMTP id u12-v6so1703415wrr.4 for ; Thu, 27 Sep 2018 02:02:16 -0700 (PDT) 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=TrSL7pDDT3K3e6J3BldreeTfoSmvX/hizDWYQt2NsCE=; b=mU7mwxCqmFveonki81ZM/9TOVKyQpIO7MDXGaAJuPN2KgyuEWOFzWImZWvoH14ak7m A4vDmg2dVhHxWFpb28clCixzqPlxdtfyi4KkCTH86vm/SNtWv3JojlAy5yqTk0diKDaC dfYXVrkaZkXMrvi/uZMIOjNZsOHCcT40B3EJyCxyzC8ts20FnKQ0tWsKL31OYQeDLWEK agiL7noPKIKQPibk0w1WsKzJwSPO7Xh8hIfP9YU024aJBuR/olS9T2WGfK4u9Gf7MlIq V+cI7xdARKoFhf2S71eh1Rh72TQ+uZSQhpZh3nvNAkXBvzo5evbFjVFgjuSh0sc5D93S XoDw== X-Gm-Message-State: ABuFfohYTT7kY7BlH4zLqLM2jWb9rf8a+uEWptXwmbCgdod7hQToc1XO xLmDcgs8VcobJgrPfOjjdAXxQA== X-Google-Smtp-Source: ACcGV63wmnQ547OWoc43H6L5LKi3OeeSvlgISLTGHnPToYsN5/TeFbEDBZ2iQssDSdjBHdHBQFpLxQ== X-Received: by 2002:adf:de05:: with SMTP id b5-v6mr7835869wrm.185.1538038935535; Thu, 27 Sep 2018 02:02:15 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id a17-v6sm1802382wme.40.2018.09.27.02.02.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Sep 2018 02:02:15 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: sgruszka@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH 14/26] mt76x0: init: remove MT_PBF_SYS_CTRL configuration in mt76x0_reset_csr_bbp Date: Thu, 27 Sep 2018 11:01:43 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 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 Remove MT_PBF_SYS_CTRL configuration in mt76x0_reset_csr_bbp since it is already initialized in mt76x0_init_mac_registers routine Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x0/init.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/init.c b/drivers/net/wireless/mediatek/mt76/mt76x0/init.c index f04fd0163f94..03211fd0db33 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/init.c @@ -103,15 +103,9 @@ EXPORT_SYMBOL_GPL(mt76x0_chip_onoff); static void mt76x0_reset_csr_bbp(struct mt76x0_dev *dev) { - u32 val; - - val = mt76_rr(dev, MT_PBF_SYS_CTRL); - val &= ~0x2000; - mt76_wr(dev, MT_PBF_SYS_CTRL, val); - - mt76_wr(dev, MT_MAC_SYS_CTRL, MT_MAC_SYS_CTRL_RESET_CSR | - MT_MAC_SYS_CTRL_RESET_BBP); - + mt76_wr(dev, MT_MAC_SYS_CTRL, + MT_MAC_SYS_CTRL_RESET_CSR | + MT_MAC_SYS_CTRL_RESET_BBP); msleep(200); }