Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp327215pxb; Fri, 22 Apr 2022 01:31:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwStEVJL8Y4rrlvQsjWDlMLKX26/Y50jwp1sNHmGiMK4JP2IFIT6hq6JgDSz6sGHiYWreJx X-Received: by 2002:a17:907:6d81:b0:6eb:f837:9077 with SMTP id sb1-20020a1709076d8100b006ebf8379077mr3142909ejc.328.1650616281141; Fri, 22 Apr 2022 01:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650616281; cv=none; d=google.com; s=arc-20160816; b=TqQRbtjIuojnjJRNP5xokce+tqou9Bi58hlcd9bE/UAcckhz16xej7BDDeZUANohJ3 cBhXvB1yGx4LAwFhR/f6+tuEDGkEFz2s7/i0sBPFcxWRs/6mkoElgbGvYl2anSOfzzx5 bFb82DHwAd1bfWUsIbmXio2ie+sK7bJtB/QJOZnLR6mh+ox28qA/+p5fG8nVKp1BbSub SKAMcplnCXgIyXrMTDxKl8JNJWHFjk/y8crPPmhibbPqaMOKqFhSpG8jU8+r4rF9MIzZ dDImqLZ5vQKCjEnGfwLpFkxbqGkl5D8SG4LDpt9iZyvOTbt61SP1EgcFU31mLXmCEF0w glIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bDkBpCp5feiSpGjQLvuWHjxX6inrI6WZw2ly5p4/hyc=; b=A/LgyZSmz97txM/QhD2NRBP4YIdQLY4x+LtfhXk94cyQwcvWz7ADKY/KycmqAPR7Dc 8zAHpeYxA5YrmNo875Rfx0HLWtSxdLuslpPkPgz4qshc7+ppebRL8CqKg7iwRCaA7Os+ N91wZfkFLkgraGeuxHldU0Q3jeCobTpCYe/D9F09FHIpoRy8oz7zzzjBdRdEZ67pEhOC 1j+DxBz4S8QyVZkqaZXe11yUth1NWLoYU4UhUhEwjnG750YomRPHd9kDk+p6Sgdbo40W vnVm/WlJuK/NIQ55T0mUwXekqlihINDaj9KkRh0DQIieV1VroMIN6kt45Er6tmVB401z 6PzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=N9pLSulf; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a50ee08000000b00420419eddc4si4996471eds.85.2022.04.22.01.30.59; Fri, 22 Apr 2022 01:31:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=N9pLSulf; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443730AbiDVD1t (ORCPT + 66 others); Thu, 21 Apr 2022 23:27:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443780AbiDVD1h (ORCPT ); Thu, 21 Apr 2022 23:27:37 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFA4C4D623; Thu, 21 Apr 2022 20:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1650597885; x=1682133885; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=bDkBpCp5feiSpGjQLvuWHjxX6inrI6WZw2ly5p4/hyc=; b=N9pLSulflr/MM0RUc0XqBOIWnAq6kiaaQJGofAMCTLKAoGcBQnW34b+y zOzr2jQPzLv7RecuQxmwQjsxKsc4QBUnXXVgvzJryKJe2qdmS3LgbWbIX 7Yb299Gqh+z/D43Fam19M/W/l1D4X2i0f8WtsbIi5VXt/qKH8wIT2Yj7w D8A8XuiqaIkYVz81hoO1FrOBfFyfEnOX2zLOqKQtvVIcMCFlSiqI06I2g j2FVpsLg6vZCUkmLKPEzu+cPZ4TvOUpyxOz9tfLwT4lGQpcBqXpq03xDf rHMOEISXg5ZKO+NBDoPrMLHfnNjNQYUc9j9ULhX/F6Z3U9JDFZdY8eE62 w==; From: Hermes Zhang To: Arend van Spriel , Franky Lin , Hante Meuleman , Kalle Valo , "David S. Miller" , "Jakub Kicinski" , Paolo Abeni CC: , Hermes Zhang , , , , , Subject: [PATCH] brcmfmac: of: introduce new property to allow disable PNO Date: Fri, 22 Apr 2022 11:24:28 +0800 Message-ID: <20220422032428.3404284-1-chenhui.zhang@axis.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Hermes Zhang The PNO feature need to be disable for some scenario in different product. This commit introduce a new property to allow the product-specific toggling of this feature. Signed-off-by: Hermes Zhang --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c index 8623bde5eb70..15f190368a8b 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c @@ -11,6 +11,7 @@ #include "core.h" #include "common.h" #include "of.h" +#include "feature.h" static int brcmf_of_get_country_codes(struct device *dev, struct brcmf_mp_device *settings) @@ -102,6 +103,9 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, if (bus_type != BRCMF_BUSTYPE_SDIO) return; + if (of_find_property(np, "pno-disable", NULL)) + settings->feature_disable |= BIT(BRCMF_FEAT_PNO); + if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0) sdio->drive_strength = val; -- 2.30.2