Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1830468ybl; Thu, 30 Jan 2020 06:47:43 -0800 (PST) X-Google-Smtp-Source: APXvYqy0Zrod3aYxK3oG+/UglWxpQV1+rLFGp+UjRJnA9vBRBaeDu6hLmk3rUOl5Uyq2n8TqFnTD X-Received: by 2002:a9d:74c5:: with SMTP id a5mr3952810otl.229.1580395663057; Thu, 30 Jan 2020 06:47:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580395663; cv=none; d=google.com; s=arc-20160816; b=RHMc/xJHZFEtrcedVFmYyuCajmN3nCHWn+yMmCiX3kaz9ZKl8iMhg4IM4eqw/+o7bP fl+rR2Go5anPlbk+F5YlRuBhpo1XkN4fi7zKrQTWBrkhjOvNjsqpRPT9ojXjf5MaCwP3 tQ+A6dtzD5MFA6FuUCne2plZsKKARW8t/Ckar3fx07SEQu/4CM1q4eTkcXyi5zCoUDh7 FoL3ZgGOPiGbmd3Qx3NvPJ+CxLKlmfTVka7r0+LHdYMZoVQBjSH0X9m4d8sixnRbp5BS cbLPD498KO+nsutvAhRjuJWr6x1ob1wYensdUPTjyoWCEx13II7Hf4wny2Rr4PKy69Oq P2tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=KxgAELrbWifHChymz7VCJj5aEFJbPCi9k5N6+/p4uO8=; b=xxklPqc6bda/XAzYUtYGhQH3ahrL1lRObET4w4vJSVCTEY1Uk8ZOyPchQMbSKaMOkb dXoVgYynk31pj6uAJcrqxevqbhbkjmMR/HSd+UYg6s7cIcYpoZJbSyl5bv8IZqf9dcjX 0fCgq+yK6T+4mL6xhHmPv2L6iPxEEC9yK269n2ESZFW3B0luo3G3+m5qI1DEPFIK4Kkz WBeLIsI3m02XV6VpS4mRdFyBaEind5n35/U9b+pK05EXKusl3Yap72TSBB4H7tBSCkA9 vcCJHh0vhO1SiNc0bDMyX1/mGom0uATwTgGLkPoxmQAhzsu7jcldUDoeCtkUYya05Whs xiaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=V9NNZu4k; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si3300818otn.293.2020.01.30.06.47.31; Thu, 30 Jan 2020 06:47:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=V9NNZu4k; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727317AbgA3OrY (ORCPT + 99 others); Thu, 30 Jan 2020 09:47:24 -0500 Received: from nbd.name ([46.4.11.11]:57442 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727235AbgA3OrW (ORCPT ); Thu, 30 Jan 2020 09:47:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KxgAELrbWifHChymz7VCJj5aEFJbPCi9k5N6+/p4uO8=; b=V9NNZu4kg8NrBKNB8PtCxPxksZ sTKQvtrvYUXz9P8mGeuQ/x7LnIKzX2fGrRJqLRgqE2Jzg4yn+SzqcCjA8SFtJiongZgNUADWCrM// mTK/PTN5GbjC0u2cYgcQ0DDDckDTPKF0Y+X33dJU1ZTYWZejK39GX61sdW39GdyU0UDE=; Received: from [178.162.209.135] (helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ixB6G-0001Vj-Ho for linux-wireless@vger.kernel.org; Thu, 30 Jan 2020 15:47:20 +0100 Received: by maeck.local (Postfix, from userid 501) id EDF5A7AE4692; Thu, 30 Jan 2020 15:47:18 +0100 (CET) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 05/15] mt76: mt7615: store N9 firmware version instead of CR4 Date: Thu, 30 Jan 2020 15:47:08 +0100 Message-Id: <20200130144718.14298-5-nbd@nbd.name> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200130144718.14298-1-nbd@nbd.name> References: <20200130144718.14298-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org CR4 is used very little, N9 is the main firmware that the driver interacts with Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c index 097d3fc365f7..2352e7687790 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c @@ -491,6 +491,10 @@ static int mt7615_load_n9(struct mt7615_dev *dev, const char *name) goto out; } + snprintf(dev->mt76.hw->wiphy->fw_version, + sizeof(dev->mt76.hw->wiphy->fw_version), + "%.10s-%.15s", hdr->fw_ver, hdr->build_date); + out: release_firmware(fw); return ret; @@ -528,10 +532,6 @@ static int mt7615_load_cr4(struct mt7615_dev *dev, const char *name) goto out; } - snprintf(dev->mt76.hw->wiphy->fw_version, - sizeof(dev->mt76.hw->wiphy->fw_version), - "%.10s-%.15s", hdr->fw_ver, hdr->build_date); - out: release_firmware(fw); -- 2.24.0