Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wifi: brcmfmac: Add DMI nvram filename quirk for Acer A1 840 tablet

The Acer A1 840 tablet contains quite generic names in the sys_vendor and
product_name DMI strings, without this patch brcmfmac will try to load:
brcmfmac43340-sdio.Insyde-BayTrail.txt as nvram file which is a bit
too generic.

Add a DMI quirk so that a unique and clearly identifiable nvram file name
is used on the Acer A1 840 tablet.

Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Link: https://patch.msgid.link/20251103100314.353826-1-hansg@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Hans de Goede and committed by
Johannes Berg
a8e5a110 9f33477b

+14
+14
drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c
··· 24 24 BRCM_CC_4345_CHIP_ID, 6, "acepc-t8" 25 25 }; 26 26 27 + static const struct brcmf_dmi_data acer_a1_840_data = { 28 + BRCM_CC_43340_CHIP_ID, 2, "acer-a1-840" 29 + }; 30 + 27 31 /* The Chuwi Hi8 Pro uses the same Ampak AP6212 module as the Chuwi Vi8 Plus 28 32 * and the nvram for the Vi8 Plus is already in linux-firmware, so use that. 29 33 */ ··· 94 90 DMI_MATCH(DMI_BIOS_VENDOR, "American Megatrends Inc."), 95 91 }, 96 92 .driver_data = (void *)&acepc_t8_data, 93 + }, 94 + { 95 + /* Acer Iconia One 8 A1-840 (non FHD version) */ 96 + .matches = { 97 + DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 98 + DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"), 99 + /* Above strings are too generic also match BIOS date */ 100 + DMI_MATCH(DMI_BIOS_DATE, "04/01/2014"), 101 + }, 102 + .driver_data = (void *)&acer_a1_840_data, 97 103 }, 98 104 { 99 105 /* Chuwi Hi8 Pro with D2D3_Hi8Pro.233 BIOS */