Message ID | fefcbf36f13873ae0d97438a0156b87e7e1ae64e.1684191377.git.daniel@makrotopia.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp35148vqo; Mon, 15 May 2023 16:05:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4GhS64DhKgB5CMvJqA+AgguyHCGlcULE1IWiQEZhA0e4cMKg0GBZdZhXr5SeumCno/WSpI X-Received: by 2002:a05:6a21:3398:b0:103:946d:8a4c with SMTP id yy24-20020a056a21339800b00103946d8a4cmr24544439pzb.5.1684191959094; Mon, 15 May 2023 16:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684191959; cv=none; d=google.com; s=arc-20160816; b=KdUrWfCSz/8EhsPvDs+Jyc3JOI0+BIwcfYKOPTQQoYMtdkc/KKZzIfC8itCzoLq/Py ezpX4h3NCpQYi84n/G3thb7rFmazzIFbXUtl9Z2I38S13rFwnD7JL7rSJA5J4MGMQeoA Xogwgd0/rLwIHRxbP9bou555PlRMMIAv1ok+XfUY5vkFW55583exybvT1V2F+BpRyqCv c39U2DI/6+9x8eiXEnPCJ1aHtqJMGXR9zAHopdWOOTmikvMFfsi55BHVYWQTd6gvzCbg PtyKkTMOryiAcGzkc2kvDZZIQNmcyM0ldHC1vhUVF/mdCNiBArZzS/mV9uLb0FVE5Iq1 5VvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date; bh=OO++u/SVASUhji5dHgyXtQF4xbBpwscMJSU6SotHbLw=; b=fVW8TnPuG6Dz6K5BFCpsa+/r7/skLRJGg3ckiDRBxUoCF/zTbo0jc39vXotyHZm9gk Hy3FPXpXJ9ZzZbni0t5bhAGjCCrE4ha3gAj5VAVipc6dIhsikTA9JjHWVjtv3bVrXMTi O6fCktS9mqLAUDqAJWikt5063qQhn10hS+b85vUKk2Pl4t949FLxCygNByjvfy4Y7Cf2 MgSFpbZhYQYZcc2AibCCVt3io6KgHoN0COorkI25WMoCV1eEanxNGv+aEtBHNC0uQALr dcy7gcz90A+mEXPt6uhjytG+xZfFEuYMkhLWQAtnQTVUMHxr+aYW4gF4+dbxmAUvW02C kY9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v71-20020a63894a000000b0052d389c3ca7si17330989pgd.52.2023.05.15.16.05.45; Mon, 15 May 2023 16:05:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245312AbjEOW7G (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Mon, 15 May 2023 18:59:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbjEOW7E (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 15 May 2023 18:59:04 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86C6ED851; Mon, 15 May 2023 15:59:02 -0700 (PDT) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from <daniel@makrotopia.org>) id 1pyh9V-0001yf-3C; Mon, 15 May 2023 22:58:50 +0000 Date: Tue, 16 May 2023 00:56:53 +0200 From: Daniel Golle <daniel@makrotopia.org> To: Jakub Kicinski <kuba@kernel.org>, Kalle Valo <kvalo@kernel.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Paolo Abeni <pabeni@redhat.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] wifi: mt7601u: update firmware path Message-ID: <fefcbf36f13873ae0d97438a0156b87e7e1ae64e.1684191377.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766003267740772666?= X-GMAIL-MSGID: =?utf-8?q?1766003267740772666?= |
Series |
wifi: mt7601u: update firmware path
|
|
Commit Message
Daniel Golle
May 15, 2023, 10:56 p.m. UTC
mt7601u.bin was moved to mediatek/ folder in linux-wireless via commit
8451c2b1 ("mt76xx: Move the old Mediatek WiFi firmware to mediatek")
and linux-firmware release 20230515.
Update the firmware path requested by the mt7601u driver to follow up
with the move of the file.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
drivers/net/wireless/mediatek/mt7601u/usb.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
base-commit: 0d9b41daa5907756a31772d8af8ac5ff25cf17c1
Comments
Daniel Golle <daniel@makrotopia.org> writes: > mt7601u.bin was moved to mediatek/ folder in linux-wireless via commit > 8451c2b1 ("mt76xx: Move the old Mediatek WiFi firmware to mediatek") > and linux-firmware release 20230515. Why was it moved? > --- a/drivers/net/wireless/mediatek/mt7601u/usb.h > +++ b/drivers/net/wireless/mediatek/mt7601u/usb.h > @@ -8,7 +8,7 @@ > > #include "mt7601u.h" > > -#define MT7601U_FIRMWARE "mt7601u.bin" > +#define MT7601U_FIRMWARE "mediatek/mt7601u.bin" How do we handle backwards compatibility? We have a rule that old userspace needs to work with new kernel and this change breaks that.
On Tue, May 16, 2023 at 12:56:53AM +0200, Daniel Golle wrote: > mt7601u.bin was moved to mediatek/ folder in linux-wireless via commit > 8451c2b1 ("mt76xx: Move the old Mediatek WiFi firmware to mediatek") > and linux-firmware release 20230515. > > Update the firmware path requested by the mt7601u driver to follow up > with the move of the file. > > Signed-off-by: Daniel Golle <daniel@makrotopia.org> Reviewed-by: Simon Horman <simon.horman@corigine.com>
Kalle Valo <kvalo@kernel.org> writes: > Daniel Golle <daniel@makrotopia.org> writes: > >> mt7601u.bin was moved to mediatek/ folder in linux-wireless via commit >> 8451c2b1 ("mt76xx: Move the old Mediatek WiFi firmware to mediatek") >> and linux-firmware release 20230515. > > Why was it moved? Here's the link to the commit in linux-firmware: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=8451c2b1d529dc1a49328ac9235d3cf5bb8a8fcb It would be good to include that in the commit log. Unfortunately the linux-firmware commit doesn't explain why the change is made, oh well. >> --- a/drivers/net/wireless/mediatek/mt7601u/usb.h >> +++ b/drivers/net/wireless/mediatek/mt7601u/usb.h >> @@ -8,7 +8,7 @@ >> >> #include "mt7601u.h" >> >> -#define MT7601U_FIRMWARE "mt7601u.bin" >> +#define MT7601U_FIRMWARE "mediatek/mt7601u.bin" > > How do we handle backwards compatibility? We have a rule that old > userspace needs to work with new kernel and this change breaks that. Luckily the linux-firmware commit added symlinks so that won't break the backward compatibility. But I think in the driver we still need to support both the old and new location for several years. So the driver should first try the new location, next the old location and only after that fail.
diff --git a/drivers/net/wireless/mediatek/mt7601u/usb.h b/drivers/net/wireless/mediatek/mt7601u/usb.h index 9fdf35970339..66481b7e3252 100644 --- a/drivers/net/wireless/mediatek/mt7601u/usb.h +++ b/drivers/net/wireless/mediatek/mt7601u/usb.h @@ -8,7 +8,7 @@ #include "mt7601u.h" -#define MT7601U_FIRMWARE "mt7601u.bin" +#define MT7601U_FIRMWARE "mediatek/mt7601u.bin" #define MT_VEND_REQ_MAX_RETRY 10 #define MT_VEND_REQ_TOUT_MS 300