340-v5.1-brcmfmac-Add-DMI-nvram-filename-quirk-for-PoV-TAB-P1.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From 4d95f99c59b8b814bcf09ba86020d937ec7caa86 Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <[email protected]>
  3. Date: Thu, 20 Dec 2018 17:40:58 +0100
  4. Subject: [PATCH] brcmfmac: Add DMI nvram filename quirk for PoV TAB-P1006W-232
  5. tablet
  6. The Point of View TAB-P1006W-232 tablet contains quite generic names in
  7. the sys_vendor and product_name DMI strings, without this patch brcmfmac
  8. will try to load: brcmfmac43340-sdio.Insyde-BayTrail.txt as nvram file
  9. which is a bit too generic.
  10. Add a DMI quirk so that a unique and clearly identifiable nvram file
  11. name is used on the PoV TAB-P1006W-232 tablet.
  12. Signed-off-by: Hans de Goede <[email protected]>
  13. Signed-off-by: Kalle Valo <[email protected]>
  14. ---
  15. .../wireless/broadcom/brcm80211/brcmfmac/dmi.c | 15 +++++++++++++++
  16. 1 file changed, 15 insertions(+)
  17. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c
  18. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c
  19. @@ -43,6 +43,10 @@ static const struct brcmf_dmi_data meego
  20. BRCM_CC_43340_CHIP_ID, 2, "meegopad-t08"
  21. };
  22. +static const struct brcmf_dmi_data pov_tab_p1006w_data = {
  23. + BRCM_CC_43340_CHIP_ID, 2, "pov-tab-p1006w-data"
  24. +};
  25. +
  26. static const struct dmi_system_id dmi_platform_data[] = {
  27. {
  28. /* Match for the GPDwin which unfortunately uses somewhat
  29. @@ -81,6 +85,17 @@ static const struct dmi_system_id dmi_pl
  30. },
  31. .driver_data = (void *)&meegopad_t08_data,
  32. },
  33. + {
  34. + /* Point of View TAB-P1006W-232 */
  35. + .matches = {
  36. + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
  37. + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
  38. + /* Note 105b is Foxcon's USB/PCI vendor id */
  39. + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
  40. + DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
  41. + },
  42. + .driver_data = (void *)&pov_tab_p1006w_data,
  43. + },
  44. {}
  45. };