From: Jaehoon Chung Date: Fri, 27 Mar 2020 09:07:28 +0000 (+0900) Subject: brcmfamc: add the feature-disable property X-Git-Tag: accepted/tizen/unified/20230814.120944~206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a12cde7ed3e962f146676cb51fb3a6bc6380bd1;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c index c2d6b8a..15ed5ec 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c @@ -101,6 +101,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;