brcmfamc: add the feature-disable property 49/308449/2
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 27 Mar 2020 09:07:28 +0000 (18:07 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 26 Mar 2024 00:22:11 +0000 (00:22 +0000)
Add the feature-disable property.
It will be parsed when brcmfmac is probed.
If someone want to disable some features by default, it's possible to
use this property.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
(cherry picked from commit 4a12cde7ed3e962f146676cb51fb3a6bc6380bd1)

Change-Id: Ie06f2e896d37dd75657779dedb68f7c683cb6d53

drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c

index e406e11..89c5f0a 100644 (file)
@@ -125,6 +125,11 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type,
        if (bus_type != BRCMF_BUSTYPE_SDIO)
                return;
 
+       if (of_property_read_u32(np, "brcm,feature-disable", &val) == 0) {
+               settings->feature_disable |= val;
+               brcmf_info("Disabled feature 0x%x\n", settings->feature_disable);
+       }
+
        if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0)
                sdio->drive_strength = val;