Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp233298pxb; Thu, 21 Apr 2022 22:38:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJGJPYSo5Q2PbzyPzFVLrbXMA/ClpLndjROfMcTBX/2DeghQpSRkZ+WwmUTYw2QIWbeD9U X-Received: by 2002:a17:90a:a393:b0:1d0:e448:811d with SMTP id x19-20020a17090aa39300b001d0e448811dmr14288357pjp.97.1650605882543; Thu, 21 Apr 2022 22:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650605882; cv=none; d=google.com; s=arc-20160816; b=lPdbILQFLDJ/hCZO7A2AgsvNlSoUnap8hYhFOplOpDTFDvgY5PsRNn+ZUDnAz9n8vO bmbkQlvCAH/SXw7Div9nFdoeeQBgkZBYjZXhmWdh1suYD4o6YiiQWBYsS+xLzKe15niJ rQA0tyNKTPw/cAFQrPV+Rr2XTDDAodwtQc97jHI5BgZVcsFpmdmxsR3huDMc1Vwg1d2p VdYU0JaPpdTKrkK7v44DSyaM72HkWqR50yyY4XTDVBUdK4ZGfusWeJYSAREVHLrvVZ7L hIky+aSP1pdJ+6fxGvAccf2LF4sN4eNlfNrCf36i9hIUNhmaTk/T7ENOcgmZG0ltNvDo 12Pg== 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=ToZPNNcFICAl5kNbjhROOShmc9lRKbW7VGDIpg6Onc0=; b=NmF+5PZbNjUa7LWsoco6/bu0OJ2bC3QBJsBJVIAMN9sRJFHQWMmDWu6FUaIkE/IIPj C03qUy+SgU0hgkmkgcEKz7/c7nvjUOlbtdw5iM8CRwMoBS8F32oxmhpkugyTGlKtrov5 4e+noUwkO/NqLPXwM7URDrCWzKUhghGKqwyDLvWse6S1sY0JcogblQazV4KuuDf+It5S WZPSsRkuyQ1mhys4bliXemceuhD4xxvEYnIQo0o5VLVIyw3HLkFv6qmJd2kszOUHA6VO AFtm5idnlp+ht/Xb8U6GksqfswotCFfkw+MmiJUXJtTJgypcjMHrWOzoqiO9iPaY+Xix PAtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=mKVCfG8m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 u15-20020a170903124f00b00153b2d1653asi7309477plh.322.2022.04.21.22.37.43; Thu, 21 Apr 2022 22:38:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=mKVCfG8m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S1443972AbiDVErz (ORCPT + 99 others); Fri, 22 Apr 2022 00:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231707AbiDVErx (ORCPT ); Fri, 22 Apr 2022 00:47:53 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65F58B3A; Thu, 21 Apr 2022 21:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1650602701; x=1682138701; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ToZPNNcFICAl5kNbjhROOShmc9lRKbW7VGDIpg6Onc0=; b=mKVCfG8m+RiEOZudWI1wsw+PYV7sSVFJALuIGiJWp0cTtOQZh+46BZgq fUhlBasLgoTOyMTUv8BSuI15eLtmCoqimaOTBV/PVlo9EeIRWx+245IIg KlIziBqfT/3wo1S07gv60hhnknCPbizRp8oD7A1kEcb3EqiN6vaF8O1VD jV5WkR9cEwCW1NVO/pkzc59mxGTqvQqcoOqSxqhGOe8SZKhCSfmyapCwU EMvB5DBu5WZMEb90jUgGoGX2NMZrvjPxFeg2TZbEdwdV3bLlVR0trEFUB 2czQSZyt9l4kEumjV4P1q9tSwgHZm7lDbvG0pLzX8BoUYiEnpi1UjvFYN A==; 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 v2] brcmfmac: of: introduce new property to allow disable PNO Date: Fri, 22 Apr 2022 12:44:18 +0800 Message-ID: <20220422044419.3415842-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-kernel@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 --- Notes: Change property name to brcm,pno-disable 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..121a195e4054 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, "brcm,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