1 From b1a0ba8f772d7a6dcb5aa3e856f5bd8274989ebe Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Mon, 22 Apr 2019 22:41:23 +0200
4 Subject: [PATCH] brcmfmac: Add DMI nvram filename quirk for ACEPC T8 and T11
7 The ACEPC T8 and T11 mini PCs contain quite generic names in the sys_vendor
8 and product_name DMI strings, without this patch brcmfmac will try to load:
9 "brcmfmac43455-sdio.Default string-Default string.txt" as nvram file which
12 The DMI strings on which we are matching are somewhat generic too, but
13 "To be filled by O.E.M." is less common then "Default string" and the
14 system-sku and bios-version strings are pretty unique. Beside the DMI
15 strings we also check the wifi-module chip-id and revision. I'm confident
16 that the combination of all this is unique.
18 Both the T8 and T11 use the same wifi-module, this commit adds DMI
19 quirks for both mini PCs pointing to brcmfmac43455-sdio.acepc-t8.txt .
21 BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1690852
22 Cc: stable@vger.kernel.org
23 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
24 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
26 .../broadcom/brcm80211/brcmfmac/dmi.c | 26 +++++++++++++++++++
27 1 file changed, 26 insertions(+)
29 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c
30 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c
31 @@ -35,6 +35,10 @@ static const struct brcmf_dmi_data acepc
32 BRCM_CC_4345_CHIP_ID, 6, "acepc-t8"
35 +static const struct brcmf_dmi_data acepc_t8_data = {
36 + BRCM_CC_4345_CHIP_ID, 6, "acepc-t8"
39 static const struct brcmf_dmi_data gpd_win_pocket_data = {
40 BRCM_CC_4356_CHIP_ID, 2, "gpd-win-pocket"
42 @@ -76,6 +80,28 @@ static const struct dmi_system_id dmi_pl
43 /* also match on somewhat unique bios-version */
44 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "1.000"),
46 + .driver_data = (void *)&acepc_t8_data,
49 + /* ACEPC T8 Cherry Trail Z8350 mini PC */
51 + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "To be filled by O.E.M."),
52 + DMI_EXACT_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
53 + DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "T8"),
54 + /* also match on somewhat unique bios-version */
55 + DMI_EXACT_MATCH(DMI_BIOS_VERSION, "1.000"),
57 + .driver_data = (void *)&acepc_t8_data,
60 + /* ACEPC T11 Cherry Trail Z8350 mini PC, same wifi as the T8 */
62 + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "To be filled by O.E.M."),
63 + DMI_EXACT_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
64 + DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "T11"),
65 + /* also match on somewhat unique bios-version */
66 + DMI_EXACT_MATCH(DMI_BIOS_VERSION, "1.000"),
68 .driver_data = (void *)&acepc_t8_data,