Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp498113pxb; Sat, 21 Aug 2021 08:47:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnnTUOLcVgLG9/nAR3yy881tmBQ7k7UyvUIElJsdj/EFfv3b6SUOhywBDcjwIWz825zNZI X-Received: by 2002:a50:eb95:: with SMTP id y21mr27691260edr.5.1629560824283; Sat, 21 Aug 2021 08:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629560824; cv=none; d=google.com; s=arc-20160816; b=mP4AksxUI0kNg2qUK9/IWT+EqSG7tcKDdx9Kdi2LpXqxMzE1Pk2RqbKIWLYkcI3vdc Jvflmal65grYYfZcd5feXxvDk+QggJPkSxjcyXohtezurmv/PjDCTxRatoM08xTMynHd 10kFtHy1T3pejkPlyN3q0DC0BftlRRQQmmXtTsI334Zhfcs/AfZaaXQmrg7xumlzxNY0 iRY6Qnz5JLdLXZKekl4PwAPI2bDIJuRZwwQZur6YvpptnQnNBsuEJBaijt2HcAPPc75n xricccWWzMPsaRJd1xZwdL/L1oGFi2tyAPBCyD/11WOpCz644laMl3AhwnLf2fRgorm5 Xwpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dmarc-filter:sender:dkim-signature; bh=3RW1uwh4hlAKrLsru/9gPgAAu2K8NF/R9jxFVISA6FQ=; b=ovIXDuAp9Sp8rPyiOyFuRYCE+LxHiu+z+Fq5o2jIKHkg13Z/EPfqPaGAtr+BZtE8Cm XwT4ub/kQre7ohJIj4jJTQ94FuBwhyV8wyEoqflLZarF2XpUPMKx8IsvF88N7dXS1EO9 16k/9f3DHWYYArd97arMDzMAEM4G0lQCIpprXA5AqQUPrOd8NX6WiFhswdfQ5uZPPKAF v/skXPyloz2kepz0qHd70KvWhEwdrYI48zxBiyhNypz4PNeRn0ipNqU7zyxdJqjpn8K2 wCXsN4Vn7vzfj7Ec+zjd8O/VEbhCufO25zBPfy1Tz5wDHKWcDx8OwBlJoEAdxpsRi7lO OAhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="WqWSnn/g"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk6si8827973ejb.587.2021.08.21.08.46.26; Sat, 21 Aug 2021 08:47:04 -0700 (PDT) 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=@mg.codeaurora.org header.s=smtp header.b="WqWSnn/g"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232133AbhHUPq4 (ORCPT + 99 others); Sat, 21 Aug 2021 11:46:56 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:55952 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231491AbhHUPq4 (ORCPT ); Sat, 21 Aug 2021 11:46:56 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1629560777; h=Date: Message-Id: Cc: To: References: In-Reply-To: From: Subject: Content-Transfer-Encoding: MIME-Version: Content-Type: Sender; bh=3RW1uwh4hlAKrLsru/9gPgAAu2K8NF/R9jxFVISA6FQ=; b=WqWSnn/gxUrMAYB4L/73Uht7Xjz/QMo/71iR/zDxhr6nA5nej4TDEDExygeg6l5J2ZryaeIh OLXiS2iWym+WPYWdvyDXolcDxjZy+fwpQvjPMx00O4KgXU0gCN9AlmpV+j/DtoevQWiFjkLg 8QLaX7oVVVhZWi/0YPYquTrunjc= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 61211fbb89fbdf3ffe164e5c (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 21 Aug 2021 15:46:03 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 672EEC43616; Sat, 21 Aug 2021 15:46:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,BAYES_00, MISSING_DATE,MISSING_MID,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from tykki.adurom.net (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id ABF3FC4338F; Sat, 21 Aug 2021 15:45:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org ABF3FC4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v5] brcmfmac: firmware: Fix firmware loading From: Kalle Valo In-Reply-To: <20210808180510.8753-1-digetx@gmail.com> References: <20210808180510.8753-1-digetx@gmail.com> To: Dmitry Osipenko Cc: Arend van Spriel , Franky Lin , Hante Meuleman , Chi-hsien Lin , Wright Feng , Chung-hsien Hsu , Linus Walleij , linux-wireless@vger.kernel.org, Stefan Hansson User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-Id: <20210821154602.672EEC43616@smtp.codeaurora.org> Date: Sat, 21 Aug 2021 15:46:02 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Dmitry Osipenko wrote: > From: Linus Walleij > > The patch that would first try the board-specific firmware > had a bug because the fallback would not be called: the > asynchronous interface is used meaning request_firmware_nowait() > returns 0 immediately. > > Harden the firmware loading like this: > > - If we cannot build an alt_path (like if no board_type is > specified) just request the first firmware without any > suffix, like in the past. > > - If the lookup of a board specific firmware fails, we get > a NULL fw in the async callback, so just try again without > the alt_path from a dedicated brcm_fw_request_done_alt_path > callback. > > - Drop the unnecessary prototype of brcm_fw_request_done. > > - Added MODULE_FIRMWARE match for per-board SDIO bins, making > userspace tools to pull all the relevant firmware files. > > Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware binaries") > Cc: Stefan Hansson > Signed-off-by: Linus Walleij > Signed-off-by: Dmitry Osipenko > Reviewed-by: Arend van Spriel Patch applied to wireless-drivers-next.git, thanks. c2dac3d2d3f1 brcmfmac: firmware: Fix firmware loading -- https://patchwork.kernel.org/project/linux-wireless/patch/20210808180510.8753-1-digetx@gmail.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches