From patchwork Thu Oct 18 22:57:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10648399 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 8E23317DE for ; Thu, 18 Oct 2018 22:57:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F32528CA2 for ; Thu, 18 Oct 2018 22:57:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 738C428CBB; Thu, 18 Oct 2018 22:57:44 +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 4E9C028CA2 for ; Thu, 18 Oct 2018 22:57:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727175AbeJSHAx (ORCPT ); Fri, 19 Oct 2018 03:00:53 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35514 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725777AbeJSHAx (ORCPT ); Fri, 19 Oct 2018 03:00:53 -0400 Received: by mail-wm1-f67.google.com with SMTP id o17-v6so1174851wmh.0 for ; Thu, 18 Oct 2018 15:57:41 -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:mime-version:content-transfer-encoding; bh=Dwkc0MQebIiHT0JpTzF+pqaPz3lqXtJnqsmwAeeItGg=; b=sye/2tL3hbHbPdkPihgo1rMSaylNktslYKn6I5sICH6VM/7E0EyFw8QdSif1wsKHp8 GPnNVd0lsvuh3aJ344bf9DA5eogvHJenAjyQeRdSdH1v58LaHxelx5owmYOpaARsJgAp FDInCUVc86WFFSyIIgQGZjtNUgimqGtgDm+Nn0oUri8bAnO8Rp1oW36ghrUpP5EYWLXN NC5cfiVIQlarN0ePfJZAlVHJJMSCyVd5QGpA0/eD5cGdPf2mfSkOeXTuUV2kqautQcD0 hsQvowQpmSadY4qNak0ZQ5mtazkCKtLiXs1unRK5ZubnM7cMPK/KpWZ02QiKVO9XlgPG DGXA== X-Gm-Message-State: ABuFfogQzdQbF8bdlmPVfWqITIcnlJ9/TS0pHJKxYDP89iCYTYTvs+Kq nyLc3liOpxxsoti10DW8CAMUnA== X-Google-Smtp-Source: AJdET5c33YZvVQKN4so/P+QRN0FK0PIJsC+QVw972tT9XFBHG2ZPwvnn1TYyLEezTfEQcW0FPBzvgw== X-Received: by 2002:a1c:3b89:: with SMTP id i131-v6mr2201968wma.27.1539903460036; Thu, 18 Oct 2018 15:57:40 -0700 (PDT) Received: from localhost.localdomain ([151.66.57.235]) by smtp.gmail.com with ESMTPSA id z8-v6sm19268042wrp.63.2018.10.18.15.57.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 15:57:39 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: sgruszka@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH] mt76x0: pci: add missing MODULE_FIRMWARE macro Date: Fri, 19 Oct 2018 00:57:32 +0200 Message-Id: X-Mailer: git-send-email 2.19.1 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 Add missing firmware declaration for mt76x0e driver Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h | 3 +++ drivers/net/wireless/mediatek/mt76/mt76x0/pci.c | 2 ++ drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h b/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h index 989ed00c0b7a..24e817bda500 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h @@ -28,6 +28,9 @@ #include "../mt76x02.h" #include "eeprom.h" +#define MT7610E_FIRMWARE "mediatek/mt7610e.bin" +#define MT7650E_FIRMWARE "mediatek/mt7650e.bin" + #define MT_USB_AGGR_SIZE_LIMIT 21 /* * 1024B */ #define MT_USB_AGGR_TIMEOUT 0x80 /* * 33ns */ diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c b/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c index 3277e6b07a46..6e11b8c8e495 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c @@ -211,6 +211,8 @@ static const struct pci_device_id mt76x0e_device_table[] = { }; MODULE_DEVICE_TABLE(pci, mt76x0e_device_table); +MODULE_FIRMWARE(MT7610E_FIRMWARE); +MODULE_FIRMWARE(MT7650E_FIRMWARE); MODULE_LICENSE("Dual BSD/GPL"); static struct pci_driver mt76x0e_driver = { diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c index 569861289aa5..aca0ea318dce 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c @@ -19,9 +19,6 @@ #include "mt76x0.h" #include "mcu.h" -#define MT7610E_FIRMWARE "mediatek/mt7610e.bin" -#define MT7650E_FIRMWARE "mediatek/mt7650e.bin" - #define MT_MCU_IVB_ADDR (MT_MCU_ILM_ADDR + 0x54000 - MT_MCU_IVB_SIZE) static int mt76x0e_load_firmware(struct mt76x02_dev *dev)