From patchwork Sat Aug 25 10:40:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10576101 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 4731A109C for ; Sat, 25 Aug 2018 10:41:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 332362AE30 for ; Sat, 25 Aug 2018 10:41:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24AC12AF1F; Sat, 25 Aug 2018 10:41:41 +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=unavailable 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 D08492AE30 for ; Sat, 25 Aug 2018 10:41:40 +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=5+gNxIBmMVdOHkfu0+4ugSfXn7QMbzbmqL9bijGsI84=; b=EfX LBF5BXKja1mOFS7hcmlKEeE/fjJB8gRkvUkh9YwUF2Dc+UnuWlc9XwTUzgEZ6czjWTPUqZjHW5Q9a APdWL30GmLYP3tg4AmLyEpT/Rftexmo0V4iKpIbNSSQZoAhX2VXbKCIwOwfw34gGUZz3WNgjyMccT B3W1kV6ZFtehHuR51W+WNqW5/IyQMV41wnh6iZJWK7bMZLd9N4PDTCZVb3FHG/HXjL0+hoY866RYm tReW3zqEQJuPsZcAbbbryZQ/WKeg/VpRgqWBkejX+0gcM61NXkjwB8wNElF/dQD2nPkrwOXeHqfvU ek9nAdCN0BdyWmjX7ZnSGC9yN3MvwiQ==; 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 1ftW0d-00056Q-Uy for patchwork-linux-mediatek@patchwork.kernel.org; Sat, 25 Aug 2018 10:41:35 +0000 Received: from mail-wm0-f65.google.com ([74.125.82.65]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftW0K-0004wm-7u for linux-mediatek@lists.infradead.org; Sat, 25 Aug 2018 10:41:19 +0000 Received: by mail-wm0-f65.google.com with SMTP id s12-v6so3714169wmc.0 for ; Sat, 25 Aug 2018 03:41: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; bh=cNIACiowubO73QaLozFJBKec/NjTCfONj0thNTjBbyg=; b=aY9MP2LpMH2dK8Osh5HcEC71hnUNJmgEE9jhRGiQKRS3t6il2Y+++VUAUOndZhK/lU e3qx1/kKn3JO2qVhnXD1g3z0cAk4EVtSM+7HmaRJtL9gnpOkAdcmViv2Kc8jGGGreJID WhpsPT2KVMIqdV3kIKstcIug72UjCLyEAZOuzr/+j0zBpjTnVZQoqOWDu62mWsqSttGF 4mMJwxw+YbAlIw9+p8B9YVuV7tdBg7igfjxwtBW6wQrXAhF60pH61b8WzF1WxlaJxnxA JNCxItw37Gv9mQJnX0x7jwYY/rIZDDLfzp+9Tqbhnmhu9HavC9seUDI5mxVpuZxzFiTM ufgg== X-Gm-Message-State: APzg51DvAfGZWwU75xRHUEonF3r+9Ny/AHhH+nrIy0NT3ij4D8TSp8qq URrW+D5BDH1C4f53xCh/eKxX6A== X-Google-Smtp-Source: ANB0VdbnybUYWTbWMskQSsAloQCIpauS70qBU21pCpJZtIS59aMepTP8/7ZdXkGJTgVIkF0vyNudpQ== X-Received: by 2002:a1c:cf08:: with SMTP id f8-v6mr941751wmg.27.1535193674888; Sat, 25 Aug 2018 03:41:14 -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.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Aug 2018 03:41:14 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Subject: [PATCH 12/16] mt76x0: remove unused mt76x0_wait_asic_ready routine Date: Sat, 25 Aug 2018 12:40:52 +0200 Message-Id: <20180825104056.9130-13-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_034116_283742_22B9D2B7 X-CRM114-Status: GOOD ( 11.99 ) 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 Delete core.c source file since, removing mt76x0_wait_asic_ready routine, it is no longer needed Signed-off-by: Lorenzo Bianconi --- .../wireless/mediatek/mt76/mt76x0/Makefile | 2 +- .../net/wireless/mediatek/mt76/mt76x0/core.c | 34 ------------------- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 drivers/net/wireless/mediatek/mt76/mt76x0/core.c diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/Makefile b/drivers/net/wireless/mediatek/mt76/mt76x0/Makefile index 7843908261ba..2f1721263aa5 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/Makefile +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/Makefile @@ -2,6 +2,6 @@ obj-$(CONFIG_MT76x0U) += mt76x0.o mt76x0-objs = \ usb.o init.o main.o mcu.o trace.o dma.o eeprom.o phy.o \ - mac.o util.o debugfs.o tx.o core.o + mac.o util.o debugfs.o tx.o # ccflags-y := -DDEBUG CFLAGS_trace.o := -I$(src) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/core.c b/drivers/net/wireless/mediatek/mt76/mt76x0/core.c deleted file mode 100644 index 892803fce842..000000000000 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/core.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2014 Felix Fietkau - * Copyright (C) 2015 Jakub Kicinski - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#include "mt76x0.h" - -int mt76x0_wait_asic_ready(struct mt76x0_dev *dev) -{ - int i = 100; - u32 val; - - do { - if (test_bit(MT76_REMOVED, &dev->mt76.state)) - return -EIO; - - val = mt76_rr(dev, MT_MAC_CSR0); - if (val && ~val) - return 0; - - udelay(10); - } while (i--); - - return -EIO; -}