From patchwork Fri Oct 5 08:32:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10627647 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 6CD6215E2 for ; Fri, 5 Oct 2018 08:32:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B534290F2 for ; Fri, 5 Oct 2018 08:32:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DC392917E; Fri, 5 Oct 2018 08:32:26 +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 E10EF290F2 for ; Fri, 5 Oct 2018 08:32:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728305AbeJEPaE (ORCPT ); Fri, 5 Oct 2018 11:30:04 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38912 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727863AbeJEPaE (ORCPT ); Fri, 5 Oct 2018 11:30:04 -0400 Received: by mail-wm1-f66.google.com with SMTP id q8-v6so1071413wmq.4 for ; Fri, 05 Oct 2018 01:32:23 -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=4h8UMQWmY+XUhvhUk8evMHbqpiHS032QmD3/7HyV1B0=; b=X6IVB93Th4qO3El8BA/RI0bEcxFYHFGQa+8JFyjl4De9ZAbl09Z+3/S0XCe1DNY5PD Bg83KQR8kwyQbhrZEy1uKQL+GI149HStr3gIYQ9gXPjO80v5TAiYFop3Bb0bBGun5mTi l2GXXARtQcVSSvcI9s8At7PJ8bJBpfkJO5EtqNIdaa1VB+n3CEt/iysNEpW+B50ZqAG8 7j6RFGZ46v5rDzPpZUU3Y/FgNC9i4ux2ordVLCi754j6Ue1jtlCtyIpG4msipP9a8zJE NjfSoL/KaUp1aXV07YlaMdMejxvyeLqHDFDpE+9baQo47euD2baFKlRSaDojIjGWICre xhJA== X-Gm-Message-State: ABuFfoiQ/vuJIXCy8OpzruGyMvxwUZwau7DmedtJ2/nQrToFbsMRFHkF NHIBloNrXxDyX7EPNeW0qrUgaA== X-Google-Smtp-Source: ACcGV60m86vqDe+i0PpUPsl7l8KMfHsRSzF6XNgPTVuUZI9P1ofSbBKz74YH2gvc6j9vSjdHjWygjg== X-Received: by 2002:a1c:7dd5:: with SMTP id y204-v6mr7472792wmc.63.1538728342915; Fri, 05 Oct 2018 01:32:22 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id r8-v6sm9085212wrm.14.2018.10.05.01.32.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Oct 2018 01:32:22 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: sgruszka@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH] mt76x0: pci: report firmware version using ethtool Date: Fri, 5 Oct 2018 10:32:12 +0200 Message-Id: <43e21bfe8d4b3c24e4130a0631566db771e342a4.1538728254.git.lorenzo.bianconi@redhat.com> 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 Report via ethtool fw_ver and build_ver members of mt76x02_fw_header data structure similarly to what is reported in the syslog Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c index 6c66656c21f4..569861289aa5 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c @@ -116,6 +116,7 @@ static int mt76x0e_load_firmware(struct mt76x02_dev *dev) goto out; } + mt76x02_set_ethtool_fwver(dev, hdr); dev_dbg(dev->mt76.dev, "Firmware running!\n"); out: