Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1577696pxu; Tue, 24 Nov 2020 04:02:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7rJxP2sGql3PcdaNPctt1oHV9STZHbmHTtQlqaimyBij/ANrmbP51WHI0sphl1xV+piTo X-Received: by 2002:a17:906:7b82:: with SMTP id s2mr3723833ejo.435.1606219336562; Tue, 24 Nov 2020 04:02:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606219336; cv=none; d=google.com; s=arc-20160816; b=G5Rd8GaYotSWbFh86ODsDAxLeaRjaKKBDf9g+qjw++lzBxUyU8H4k7GoLuxV/dyNBb 27yT7+82NhCjKhTdsXE7nL6hpeZ/2hWappqJFCzv+dak38tV/lJjRoeFqydMshgL76q9 XcfA7oCNTPnnGG1lvHkjiG9pgBC5CafjuyLje0LI6yQVh6zbgEWQ7P0A6YwWrutTO7ku QLH0qynx7gevugcGdFPUIzdPktxSKKf4OUqBiCGvUNLClusNQ8MQerk2wR4GLS4ugvtR umgoLHaAqn4aKW+HuQcYd/bj1s92JUCoVhhapOgMeTwJESKdUHQYhzCyHDjNThKGMn4K ga1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ikbQnPdoJAiI77kv0G3Jc5kH6Npx+SYj3Q0St2IszFc=; b=nUrLUmchE1QOZUXeULN5T/9NmUklHsoVhx/2Tx+trGidTxr4LGCAZsZMtk+khvmhF9 yWqa/ob2sC1c5zFFOBAU+IYEbJAhT/NfdDUAk60eoRW4Bhq4NR0a42eAKvw7a34WeDVQ f4Fu/S5W6KsEtYhfc3eqecEVKe5FVZdpCUkHTKXiRZxZLXEAz3NgplScwWCChZItnD5Q TWCK1GJVzN+RNZRJVMc+etyq0I8ZyAuCootlleqIg52XO+3Sfhw1hn/bflMBprnCRplr z43zCBoAOfQzD9yqKcr0fD4yXJWgexLPPynqdkKI5Xb2/nhge3YN47yKQB7KxE38z1LN W0aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gcP6Nhok; 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 mf18si8065361ejb.630.2020.11.24.04.01.50; Tue, 24 Nov 2020 04:02:16 -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=default header.b=gcP6Nhok; 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 S1733151AbgKXMAe (ORCPT + 99 others); Tue, 24 Nov 2020 07:00:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:44940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729172AbgKXMAd (ORCPT ); Tue, 24 Nov 2020 07:00:33 -0500 Received: from localhost.localdomain (unknown [213.195.126.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 39E2B2076E; Tue, 24 Nov 2020 12:00:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606219233; bh=EQ3qNXyrD0FnMOq6ggilGWtupETyN3N8CFyBBuVBxh0=; h=From:To:Cc:Subject:Date:From; b=gcP6Nhok4oHyifW6lw25dPmRr6Fsm3jMYieJrh4HWPpJOLiC3XyHk7UabSCC+Skal qESXdJ6kDPjzpC3vk7BL9V2RXcHyX8Dy6Dnf57c98+Kym90+FDF+NGNpY4tZz0mFWd iRhzlkAsIddkXLvoo5DaG3+Zb5Ty77vQfzPnRja8= From: matthias.bgg@kernel.org To: Jakub Kicinski , Kalle Valo , "David S . Miller" , hdegoede@redhat.com Cc: =?UTF-8?q?Pali=20Roh=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?q?Rafa=C5=82=20Mi=C5=82ecki?= , Hante Meuleman , Wright Feng , Matthias Brugger , digetx@gmail.com, Saravanan Shanmugham , linux-kernel@vger.kernel.org, Ulf Hansson , Amar Shankar , brcm80211-dev-list@cypress.com Subject: [PATCH v3] brcmfmac: expose firmware config files through modinfo Date: Tue, 24 Nov 2020 13:00:18 +0100 Message-Id: <20201124120018.31358-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.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 v3: Use only two more generic wildcards. 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c index 99987a789e7e..6fe91c537adf 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c @@ -625,6 +625,10 @@ 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/brcmfmac*-sdio.*.txt"); +MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcm/brcmfmac*-pcie.*.txt"); + static const struct brcmf_firmware_mapping brcmf_sdio_fwnames[] = { BRCMF_FW_ENTRY(BRCM_CC_43143_CHIP_ID, 0xFFFFFFFF, 43143), BRCMF_FW_ENTRY(BRCM_CC_43241_CHIP_ID, 0x0000001F, 43241B0), -- 2.29.2