Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1141369pxb; Fri, 20 Nov 2020 02:06:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5kV0BWisYlZKvGDqfflDxpaC6bwJKmDYzd0et8oI5eR8wlt9dEr+8yTaGMiJCW4z4nyMr X-Received: by 2002:a17:906:c0d1:: with SMTP id bn17mr33603193ejb.114.1605866813435; Fri, 20 Nov 2020 02:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605866813; cv=none; d=google.com; s=arc-20160816; b=SilLVGnzn9VTnquTWYk8zyUIy8/LNl/oLCfjo7NYvcFF3N3rwz8o+qr/h5Ykgl9mU4 22nk78kTcfMG1HBMubU8ypzF4h8X5eyLPRnHCwN5vrOfmstRkm9CzIr30qEikbKPgtlX FDxZWiIlOby8HNhD/cp9QwIJGOePagQYCoIg5CVXbfaxKIY0upvb89UfX0glYqApZOEr /ZMYM8CSLWkTiZfGtciHakUq9px5nFZX6jxI6cdgmiPQkpO012qLjsQDMWm3AFCnIK0K THkpCxZONBgT/DjckbIzyO7sUMoffqL+ibOWaOteA2+UNvqMB7JtipE3Fnl2Mt++zj1o ahgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ALC5B9tIQTF680xeFUEICLS4/+UBA8Xb/cTnIHd0DHQ=; b=Lc70wkAp1dqi1gpcZUWsKiXpRtZCBTxbTlJeoPyumOZDUe+p1LaNPqLujtLUIMfBjV ggYWcVXHr1Zuf+PgDSxlIu+rV/c8UYiObYUfYg9sFOl4cazFBgodlENkpzVF3jiRlia9 nSjZ1BDfw5w3bkHmu669sbJLztQCxwIqInd1YDS8urbzRnZJs4ni/PoYnJ80nww7XEfG rnIN3MjGu0tslx+4rictwK5PAXkVN9/Kb2QWV9DX2qYBhvLEtW97pBE09p6NKM+tpACm QWHvM3/bfAM+RLi8RYRlmtqRydwoTGUQvCKnoAtj71GeCcq3io9uT14K/Hg5DSp95Jqj 4nDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iv8wJjtJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si1633921ejd.193.2020.11.20.02.06.23; Fri, 20 Nov 2020 02:06:53 -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=@gmail.com header.s=20161025 header.b=iv8wJjtJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727663AbgKTKFe (ORCPT + 99 others); Fri, 20 Nov 2020 05:05:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726719AbgKTKFd (ORCPT ); Fri, 20 Nov 2020 05:05:33 -0500 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04581C0613CF; Fri, 20 Nov 2020 02:05:33 -0800 (PST) Received: by mail-lj1-x243.google.com with SMTP id y16so9470873ljh.0; Fri, 20 Nov 2020 02:05:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ALC5B9tIQTF680xeFUEICLS4/+UBA8Xb/cTnIHd0DHQ=; b=iv8wJjtJSuqTL/WITf79BDKYpsj3uFnq3hkW6EV+B8Lz68zsE/5lvAC++PPsNSLvZN CXCBSrGIkyQeXKnZGyxnv4xHC/7Y63qCUXK+eWi9QMZJBl884TqSwcozpDdKhPeG7D12 scJAXg+P5k8D9xHDU6wLUDPiRheU71/1yFhUD+VSkF7welAMJxD8PjFh4WdDtR23T1de iohw7JuyMFJRfGURNCl1an1QrcWk4vQ3ghN3k9bWtC5Q2ekybiuioGGJJo72x29JP+x0 rtTitbq4nCVgmVc0bkuIr3OwgvU96iQ2LNQC2MvoHdLk7F5/+phdm6oacSgC4SQJjpiJ 7+Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ALC5B9tIQTF680xeFUEICLS4/+UBA8Xb/cTnIHd0DHQ=; b=JZKa2YoMlfwWljW5TBc60zGpJEag/OGcPb/zub31X67gzJ29/iHS1OOgljezZvgGuN y3a/2F1lDTSmz50XMhepEeL36C/+3ZqFJvMtZyUXDK1VnMvMGdqbvVjLx/ZIWSjklq41 qZt3cXi3k8es+44eaF0TQU/DUpcwGp+r2U3h4pd4QZ7835q+JGlc9rrVOfYFmBR7YdG+ vcKcLpXRyVIuyvYq2aJfyxVL8X+yKYTxr/WhjF5BjAOPvWW3NiPMF8QKRtOlC32VbqHG g8mmmopaEXgwNDIclR/7S+CFMWTaKeZWTiTc245EHQiI2pLGvRMCwUOmlkOo/m3+z/Tb K0XA== X-Gm-Message-State: AOAM532FVpj47/JboxDPrfxK9T69iXiZsobgqSMeXY4UWRsCkNcHAGJ1 iqLt4MkQ7T0m199J8BisLTM= X-Received: by 2002:a2e:7306:: with SMTP id o6mr7255145ljc.306.1605866731494; Fri, 20 Nov 2020 02:05:31 -0800 (PST) Received: from [192.168.2.145] (109-252-193-159.dynamic.spd-mgts.ru. [109.252.193.159]) by smtp.googlemail.com with ESMTPSA id b12sm241145ljk.117.2020.11.20.02.05.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Nov 2020 02:05:30 -0800 (PST) Subject: Re: [PATCH v2] brcmfmac: expose firmware config files through modinfo To: matthias.bgg@kernel.org, Jakub Kicinski , Kalle Valo , "David S . Miller" , hdegoede@redhat.com Cc: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Guenter Roeck , Chi-Hsien Lin , Franky Lin , Chung-Hsien Hsu , Jean-Philippe Brucker , Double Lo , Frank Kao , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, Arend van Spriel , "Gustavo A . R . Silva" , netdev@vger.kernel.org, =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Hante Meuleman , Wright Feng , Matthias Brugger , Saravanan Shanmugham , brcm80211-dev-list@cypress.com, linux-kernel@vger.kernel.org, Ulf Hansson , Amar Shankar References: <20201120095233.19953-1-matthias.bgg@kernel.org> From: Dmitry Osipenko Message-ID: <2ff4dcc3-6f99-a068-8989-4293d2013627@gmail.com> Date: Fri, 20 Nov 2020 13:05:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.2 MIME-Version: 1.0 In-Reply-To: <20201120095233.19953-1-matthias.bgg@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 20.11.2020 12:52, matthias.bgg@kernel.org пишет: > From: Matthias Brugger > > Apart from a firmware binary the chip needs a config file used by the > FW. Add the config files to modinfo so that they can be read by > userspace. > > Signed-off-by: Matthias Brugger > > --- > > Changes in v2: > In comparison to first version [0] we use wildcards to enumerate the > firmware configuration files. Wildcard support was added to dracut > recently [1]. > [0] https://lore.kernel.org/linux-wireless/20200701153123.25602-1-matthias.bgg@kernel.org/ > [1] https://github.com/dracutdevs/dracut/pull/860 > > drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > index 99987a789e7e..dd6d287b1b00 100644 > --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > @@ -625,6 +625,15 @@ BRCMF_FW_DEF(4359, "brcmfmac4359-sdio"); > BRCMF_FW_DEF(4373, "brcmfmac4373-sdio"); > BRCMF_FW_DEF(43012, "brcmfmac43012-sdio"); > > +/* firmware config files */ > +MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcm/brcmfmac4330-sdio.*.txt"); > +MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcm/brcmfmac43340-sdio.*.txt"); > +MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcm/brcmfmac43362-sdio.*.txt"); > +MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcm/brcmfmac43430a0-sdio.*.txt"); > +MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcm/brcmfmac43430-sdio.*.txt"); > +MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcm/brcmfmac43455-sdio.*.txt"); > +MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcm/brcmfmac4356-pcie.*.txt"); This doesn't cover all hardware models. Note that the upstream linux-firmware has files only for a few hardware models. I suppose that the correct mask should be "brcm/brcmfmac*-sdio.*.txt".