From aa2b86f0da9f39d0ed4ec694285743bae31c07b1 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Fri, 27 Mar 2020 18:07:28 +0900 Subject: [PATCH] brcmfamc: add the feature-disable property 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. Change-Id: Id9062624d5bc87055295209a329a817103fd11f5 Signed-off-by: Jaehoon Chung --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c index aee6e59..7325d9e 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c @@ -36,6 +36,11 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, !of_device_is_compatible(np, "brcm,bcm4329-fmac")) 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; -- 2.7.4