Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1134718pxb; Fri, 20 Nov 2020 01:55:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxAcQF9PP2U9MSI/g+UhxR4vLZjWC2ZaozNIjjynSBYn+rgAqLjXq93aPqc9+eQQM7vOYD X-Received: by 2002:a17:906:c826:: with SMTP id dd6mr14486609ejb.191.1605866100890; Fri, 20 Nov 2020 01:55:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605866100; cv=none; d=google.com; s=arc-20160816; b=cqbCYPTiPDhhQ5vmPE7aQlubWObO0Svc5jGAeo+VcSIor7CAmaboqSaxeMP+68+J22 2SybExpWZMtm1EGuW2HxZqajHbpVKz1jrDNWHcpSo8tZ+Z58T9LmKeZR3cdNfwLLHg/X VBARgsC8iFTgBlgNekUnxzSIVvVbKQrY8rRArN1Fn/K8KL2oxMZEdDoFXHzWozImUO7n LZRY8UaQTLOWmtBz/jkcbN8EDNKZmCe+bkOBsS8lXGXR4G/lBVn4izJYOZVrCfbCljNX pxTS12GUUrUFJDqiS/xVzoPLxRrf+0ZvKdvb8X7CfM09HP7FP8UPP9aIWGrJiFPw3XZi 4m3g== 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=f9gigsKCe816ouK5Q8SmHHE2aHTC8239uatIfrb/xO0=; b=N2/iyxm0lncjAIoY+ZkagDpLKLs2Fmknxh6mFSUSFAP+0m8Baoew2tMbjzgLOIuU5e rev9r4eZIit5rKQAkc/W8ERuFJrQfQJ7cV8Mq9rkPgTj3jxWX9kTlSXMO88ddshRnaA7 JxV+p2VthZjs2dMMNHYq1zI4C2AaoR9oYhcqoIuhfJmwWnaPoz4bXDNdNKOf2RIMwlhi fl/85mUwSVE6EQpmaCMbXL6p/kVC05irLsJQtCvnTcVjZVPaS0tSHhzcqcXjW5S93QTN w4W9sQp1uE4lsO4QCdke0eAeAmwfO4QGORaxpZLNuP56SMDz64F19BXmtFUEG5cdyb6T eHVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NAyTdDXf; 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 ks3si1402049ejb.100.2020.11.20.01.54.27; Fri, 20 Nov 2020 01:55:00 -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=NAyTdDXf; 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 S1727379AbgKTJwr (ORCPT + 99 others); Fri, 20 Nov 2020 04:52:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:59640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726426AbgKTJwr (ORCPT ); Fri, 20 Nov 2020 04:52:47 -0500 Received: from ziggy.com (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 748B5204EF; Fri, 20 Nov 2020 09:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605865966; bh=udTHvxcuCpSES0f2tVzcWrSR6BzuIbl1+3bPc1axuBQ=; h=From:To:Cc:Subject:Date:From; b=NAyTdDXfdkzDgGz51roi/laoFCqxWVIiamZD9ajJRQcgl+HNHWwB9RLtk97KcB8ZZ IV54pbFljRsAsX619EJXoOPbqK8OOdZ0u1EMEBfj5Ke7TH80GhZapI/bxXQZ23nEGV 3K0k9yg7mnz98iMcsjaNmRTClHnps69KTwImjO1Y= 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 , Saravanan Shanmugham , brcm80211-dev-list@cypress.com, linux-kernel@vger.kernel.org, Ulf Hansson , Amar Shankar , Dmitry Osipenko Subject: [PATCH v2] brcmfmac: expose firmware config files through modinfo Date: Fri, 20 Nov 2020 10:52:33 +0100 Message-Id: <20201120095233.19953-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 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"); + 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