Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2227198pxb; Tue, 23 Feb 2021 01:33:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0mPcTZVXzw8qzdipIuqPFUZzlSnAI1q2CsV2RJWWfB5MmMEObngkUzlB27AwXVDue4Fel X-Received: by 2002:a17:906:cf8f:: with SMTP id um15mr9996846ejb.455.1614072817511; Tue, 23 Feb 2021 01:33:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614072817; cv=none; d=google.com; s=arc-20160816; b=YlXiJ/62v0L+vDkIOp/7DALz+/bjNNV+4UA88lhxcZd08z88d6R6DicpXiam+p8Ak8 MzD71BUFo+jjnXsdLdLsWutrOwT6CLlU2KIpYHzK8+z9yi4shIQvw2FQIKltrE0w90NX PPrdWBek1xaTr+cU6oA0JSM1hoXMkl8YHEPeMliLzp5KsXiL64q7OapYsaml9wo7L+fZ sNavFSORMoRUWB32VnfuuNGk1wkIkrN0rW0rQe2M6GamSEfjFviFaZwbLxXkCv5IwvLY RK9f7A+pX8p+SkfL7zOI+URTwY4wMPwIRQDeD4POX7zD+fhDnBvTgJKA2D+TzFRxfSCj btCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NK+J8eqbHUjKEIXdrC4aV3fweK8HBAiRiUOfxLoXNxQ=; b=G6rdn88Tr3VceFII8emwWgfSDDISwfq9JgD02eBidoI1iSrBNdK8864rBUyqZTv6Lq bc4Kw6wtfusm9Ar0ac6yFAmZ+yzpmC7+0zDZNg4meiRmgX4kV/IN3Tyi+z5Q6x/rCQzL uJWDVom8SxP27V07kki4JKsl5n7UkUNMssdFTsBTHXHAejB4cbHpiW5oFp09U+0BJ9sP oGgd/6tnwUCFR8bd9dwsf/zeoquJb1x84Y6QXjyxTv80MKSO2fEeqxy593Cv1O4WIEiC PRPsuFPaXpzVnoUCjy5NkL7ZFiv6z5H0kgON5Z8bMsJgwTWHv7SKTMn1wsO9Puph3HoX mrNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IJ0Jc4ep; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si13971493edc.346.2021.02.23.01.33.14; Tue, 23 Feb 2021 01:33:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IJ0Jc4ep; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232291AbhBWJNQ (ORCPT + 99 others); Tue, 23 Feb 2021 04:13:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:47060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231696AbhBWJM7 (ORCPT ); Tue, 23 Feb 2021 04:12:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3BFD4601FA; Tue, 23 Feb 2021 09:12:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614071536; bh=DjqJjoufcjzpUfw/QLHeD87CQ3boRTZ3pvy1/b0MsKM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IJ0Jc4epoVOQ8K3M5oRA+ZUfR1he8niW5pIP0sj0nUuYpSgHKONp8Je6AaZZa20KX p/t7tr+guBLAS79EvRiFvE+GTMoVdaCdGMX9/8NPIvzhaPL1gS0OLT03fQayyrmNpQ VanviheTjJhB54LESIeAqAHCpULfvSoVzX5oBAlOEp/jn4ufer8nMqNheXTpFEeseu hZCJOaLrOj5M4Q89s0cTxy2z+vR2Obj8L6q9GeLqKToG2zYOYiJ4Vt4Q2CbREeN8U1 PEfvCfRBezMtsccwmMZhsuOcMO9bAJ9+dBJuBPEPDSudDbcRTepmWCM8Y4HWFk/hqJ fqN0s9LaMbo4A== Date: Tue, 23 Feb 2021 10:12:11 +0100 From: Lorenzo Bianconi To: Ryder Lee Cc: Felix Fietkau , Lorenzo Bianconi , Shayne Chen , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 2/2] mt76: mt7615: remove hdr->fw_ver check Message-ID: References: <61d40a20375f888c122ee0e186168fc2db863fc3.1614058187.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aZDrB28CWxLVbpCm" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --aZDrB28CWxLVbpCm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Only mt7615 uses v1 version. Also, some of released firmware doesn't > have hdr->fw_ver. >=20 > Signed-off-by: Ryder Lee > --- > drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) >=20 > diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/ne= t/wireless/mediatek/mt76/mt7615/mcu.c > index 393ce09d3956..65c6ab14fe6f 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c > @@ -1449,8 +1449,7 @@ static int mt7615_load_n9(struct mt7615_dev *dev, c= onst char *name) > sizeof(dev->mt76.hw->wiphy->fw_version), > "%.10s-%.15s", hdr->fw_ver, hdr->build_date); > =20 > - if (!is_mt7615(&dev->mt76) && > - !strncmp(hdr->fw_ver, "2.0", sizeof(hdr->fw_ver))) { > + if (!is_mt7615(&dev->mt76)) { > dev->fw_ver =3D MT7615_FIRMWARE_V2; > dev->mcu_ops =3D &sta_update_ops; > } else { so there are some v2 fw version w/o fw_ver field, correct? Is this fw in linux-firmware? Regards, Lorenzo > --=20 > 2.18.0 >=20 --aZDrB28CWxLVbpCm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCYDTG5wAKCRA6cBh0uS2t rCRXAQCV+tBJ1+NpNuY++xxAaztdP5BxlB8GjYx6vMsm7kVxegD/VXUUKUK6RtL0 4cHkqnAcKhHrjWm4udlXVrOMM2p4VAc= =fCnQ -----END PGP SIGNATURE----- --aZDrB28CWxLVbpCm--