Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2268313pxb; Sun, 24 Apr 2022 09:27:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8fr4jIo2bZVtNc+nJYw+OBf0IuV7LUL/VV0LKo9VxNYtJlBpqLzHJyz6aQKgxKSfcmM87 X-Received: by 2002:a63:6bc6:0:b0:39d:966d:2791 with SMTP id g189-20020a636bc6000000b0039d966d2791mr11886538pgc.407.1650817644931; Sun, 24 Apr 2022 09:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650817644; cv=none; d=google.com; s=arc-20160816; b=sEvjymHg8M3/noQR0TfP0ndwrKRjcpgqVOfZVDguOKKM3z6aA/9NlEdnzR+BOA2YUY jQHu32o27wtubzQAq57HGxNXyA3UtUYOMPgtF5XJXOhN1n9sVD+fFogmKjvKf8byiAPo nB6+YGdrIXcF3D8LiK06Jgnx8p5nDH8JdCtsRZZb+Nx2ftZkn1C9ze3IYK/tz3T9N+Go D2n0lUNxpoWwozcPpT1+gZ4uK29NrRqgS0YM6gS1YOYj4i3mxl6f00hhJK6Jd6pbXoET y0kGpN2NiL7e+/kkhMrhykWGjPMpiOcacwHoR1Te1aqtI5JSPvEJiMPsC6eqSqNiub5K hJOA== 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=QDh0au46jwGUKNxxZkaZpw8h8HU6jf4Ztj+mwSJXuEk=; b=CdNIdchxMWDMhybie4y1mDWjneKarMeoO7+VFI/iuAJq18dtLDb7Xl4rCmd6g3TIWL bndpVImf0H/YCrhVmsWMHM6q/1ZWlyBkvXPcLlz5icka7XcXJcBBrs/KkVFKmXT8lRpI djofN1SGqZKM5Hjlx2PGf+wUWCywB87059F+Y04kFSrmJn7kuz2KTANNHigwql83Ak9h /Os2bQioW3lLqQl2lDYlihzsjLLuvTu7HaJUZDV+wb+uW/25sgbwode+29Uo+BxYxni2 2hiqLL/YZ5T3eMcyHt7gPj1S/1to80NaaaT0a1eV4W3+XcNd/niNZXCSk2/EAFYckdjS CzLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=hoRItIIp; 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 y8-20020a17090322c800b00153b2d164e8si3177165plg.240.2022.04.24.09.27.07; Sun, 24 Apr 2022 09:27:24 -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=hoRItIIp; 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 S237466AbiDXCZb (ORCPT + 67 others); Sat, 23 Apr 2022 22:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbiDXCZa (ORCPT ); Sat, 23 Apr 2022 22:25:30 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12BD8237FD; Sat, 23 Apr 2022 19:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1650766950; x=1682302950; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=QDh0au46jwGUKNxxZkaZpw8h8HU6jf4Ztj+mwSJXuEk=; b=hoRItIIpXJVMNqiT1T4kGsVH4TPcT9U+AlvzuxlBZUFSWIEfP4BfnK76 ZCQ/m7PB5udbTK5mjIW7hfSJyxI8tBfNjM9+EmY+CXnGdvhikq6O3OHaE /pIq+4Mi9PAarSBEjoAtbOE3u7YOl9eSRA41qgOxO7mgTCb1gUdQZu7zt bCreesVyHjovGu7mZO/rlQbc85G/rwxQQL5nTknWaTph6xVGxZRfqQFgJ QyRRYUvB7vTntHFRGZcE00Hz7khDoQUx3Yl6GfuNBzL2XTZHHhMRTwvz7 4ZpV25h/tj+PXPuGxO1k/OxuGa+HkNiV1ahslMYh6bxu5VBRVYszAKzhg 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 v3] brcmfmac: of: introduce new property to allow disable PNO Date: Sun, 24 Apr 2022 10:22:24 +0800 Message-ID: <20220424022224.3609950-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,URIBL_BLOCKED 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 Some versions of the Broadcom firmware for this chip seem to hang if the PNO feature is enabled when connecting to a dummy or non-existent AP. Add a new property to allow the disabling of PNO for devices with this specific firmware. Signed-off-by: Hermes Zhang --- Notes: Comments update 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