From patchwork Sat Aug 25 10:40:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10576121 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 26C15109C for ; Sat, 25 Aug 2018 10:42:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 167CE2AE6D for ; Sat, 25 Aug 2018 10:42:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 090EE2B009; Sat, 25 Aug 2018 10:42:11 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9CFF62AE6D for ; Sat, 25 Aug 2018 10:42:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=2yfmvjgPTrMI5Hg3xQ00WZDUEFhW6STPlgxp/yj/KAc=; b=Z8I dT7CZ3tRLpI6GxIScmC84J9BleI9rYMlfBiCS40K5FjkMPBlGM6OUGYu32XG9CehTn5pybg5prnxl AoGA0/D+RaYFppXy2FpadhX8Bx0Yp2L2DDihZxKtzezkCHdPH9B1tzXVg4qSaWVuuoNJlovdw991e rdmwZcotbTkdvOr3gtpqOhibTXu+KCqXKajo7mia8Jl8QmxSM87c0q3pMxET+shZR6xUsfx2hjf2r 1VRuR1IVyxp/g5TcHZ+h3y8P/C3Yt3LRGo7InoFvKHlSTQs6kHTyy5lY6S4mwkjqS1LmzRkW6DayJ T5E0v5Y0EJbr4JQti5OnJ+G4Nu+AngA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftW19-0005R5-DV for patchwork-linux-mediatek@patchwork.kernel.org; Sat, 25 Aug 2018 10:42:07 +0000 Received: from mail-wm0-f67.google.com ([74.125.82.67]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftW0P-0004xx-2E for linux-mediatek@lists.infradead.org; Sat, 25 Aug 2018 10:41:26 +0000 Received: by mail-wm0-f67.google.com with SMTP id m199-v6so6025602wma.1 for ; Sat, 25 Aug 2018 03:41:18 -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; bh=TIEv5KMFaHRl+fW7jPC2CI7IvfHinLxJNRCHGgBmqpg=; b=sHbQ3HF3sud8ELJIxKikzuSlG05AnbNZkiVrrLCOKSoeugXkvCn1nvRb9QjIoatBpU t3EWEGur8wIh3jBrzUXLamV1rmguwXPClnrUUqdkr3yzHhj2BlxzXADcXn9pKkxI6tyi JGJ3Lps69YbLVdE4LPhYKRVYodFpehmhF/u3N6t71yREMQtorHAbdHBno7Ww8dFIWkbC kXJmQn0YWWHkJVCJzzepf0UdQzuelQu9UbFR4k8QYbO/NrMcEiXGxDDRi1gcXTTc5nun 9SLWdOzPo2+alErWGGYL3y0BhMEWJBgdxq2+uuGIKN4PUYLJtnCs2ZZ6sWSvn4alYfSv eTeg== X-Gm-Message-State: APzg51CV6XweBMwtCPRMzFKlj1TozNp72C+nhzLiVn8AUEhzae/Ns8U3 WHa23svYYtLVVT47p/t3LX6JSg== X-Google-Smtp-Source: ANB0Vdbrl6yd8j/UvCffzRpKXkaOPYfrrKjEB09PxAfay+6UfR83Ak3i1S/6AT+O/16FhgnpjQMhHw== X-Received: by 2002:a1c:148f:: with SMTP id 137-v6mr844599wmu.61.1535193677165; Sat, 25 Aug 2018 03:41:17 -0700 (PDT) Received: from localhost.localdomain ([151.66.53.29]) by smtp.gmail.com with ESMTPSA id l18-v6sm16391708wru.75.2018.08.25.03.41.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Aug 2018 03:41:16 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Subject: [PATCH 14/16] mt76x0: remove unused mt76x0_mcu structure Date: Sat, 25 Aug 2018 12:40:54 +0200 Message-Id: <20180825104056.9130-15-lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.18.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180825_034121_123227_5474ECBB X-CRM114-Status: UNSURE ( 8.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, sgruszka@redhat.com MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Remove no longer used mt76x0_mcu data structure Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x0/mcu.c | 2 -- .../net/wireless/mediatek/mt76/mt76x0/mt76x0.h | 15 --------------- 2 files changed, 17 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/mcu.c b/drivers/net/wireless/mediatek/mt76/mt76x0/mcu.c index 39b2ec0c1ee0..d49557834658 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/mcu.c @@ -452,8 +452,6 @@ int mt76x0_mcu_init(struct mt76x0_dev *dev) { int ret; - mutex_init(&dev->mcu.mutex); - ret = mt76x0_load_firmware(dev); if (ret) return ret; diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h b/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h index 298b7af31911..cdace0565d51 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h @@ -49,19 +49,6 @@ struct mt76x0_dma_buf { size_t len; }; -struct mt76x0_mcu { - struct mutex mutex; - - u8 msg_seq; - - struct mt76x0_dma_buf resp; - - struct mt76_reg_pair *reg_pairs; - unsigned int reg_pairs_len; - u32 reg_base; - bool burst_read; -}; - struct mac_stats { u64 rx_stat[6]; u64 tx_stat[6]; @@ -160,8 +147,6 @@ struct mt76x0_dev { unsigned long wcid_mask[DIV_ROUND_UP(N_WCIDS, BITS_PER_LONG)]; unsigned long vif_mask; - struct mt76x0_mcu mcu; - struct delayed_work cal_work; struct delayed_work mac_work;