* [PATCH v2] brcmfmac: of: introduce new property to allow disable PNO
@ 2022-04-22 4:44 Hermes Zhang
2022-04-22 5:59 ` Kalle Valo
0 siblings, 1 reply; 3+ messages in thread
From: Hermes Zhang @ 2022-04-22 4:44 UTC (permalink / raw)
To: Arend van Spriel, Franky Lin, Hante Meuleman, Kalle Valo,
David S. Miller, Jakub Kicinski, Paolo Abeni
Cc: kernel, Hermes Zhang, linux-wireless, brcm80211-dev-list.pdl,
SHA-cyfmac-dev-list, netdev, linux-kernel
From: Hermes Zhang <chenhuiz@axis.com>
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 <chenhuiz@axis.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] brcmfmac: of: introduce new property to allow disable PNO
2022-04-22 4:44 [PATCH v2] brcmfmac: of: introduce new property to allow disable PNO Hermes Zhang
@ 2022-04-22 5:59 ` Kalle Valo
2022-04-24 19:13 ` Arend van Spriel
0 siblings, 1 reply; 3+ messages in thread
From: Kalle Valo @ 2022-04-22 5:59 UTC (permalink / raw)
To: Hermes Zhang
Cc: Arend van Spriel, Franky Lin, Hante Meuleman, David S. Miller,
Jakub Kicinski, Paolo Abeni, kernel, Hermes Zhang, linux-wireless,
brcm80211-dev-list.pdl, SHA-cyfmac-dev-list, netdev, linux-kernel
Hermes Zhang <chenhui.zhang@axis.com> writes:
> From: Hermes Zhang <chenhuiz@axis.com>
>
> 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.
"some scenario"? That's not really helpful.
> Signed-off-by: Hermes Zhang <chenhuiz@axis.com>
> ---
>
> 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);
Is this DT property documented and acked by the Device Tree maintainers?
AFAIK DT is not supposed to be used as a software configuration
database.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] brcmfmac: of: introduce new property to allow disable PNO
2022-04-22 5:59 ` Kalle Valo
@ 2022-04-24 19:13 ` Arend van Spriel
0 siblings, 0 replies; 3+ messages in thread
From: Arend van Spriel @ 2022-04-24 19:13 UTC (permalink / raw)
To: Kalle Valo, Hermes Zhang
Cc: Arend van Spriel, Franky Lin, Hante Meuleman, David S. Miller,
Jakub Kicinski, Paolo Abeni, kernel, Hermes Zhang, linux-wireless,
brcm80211-dev-list.pdl, SHA-cyfmac-dev-list, netdev, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 625 bytes --]
On 4/22/2022 7:59 AM, Kalle Valo wrote:
> Hermes Zhang <chenhui.zhang@axis.com> writes:
>
>> From: Hermes Zhang <chenhuiz@axis.com>
>>
>> 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.
>
> "some scenario"? That's not really helpful.
The firmware feature PNO is used to provide the scheduled scan
functionality. User-space can choose whether or not to use scheduled
scan. If the scheduled scan is not working I would rather see a bug
report so it can be properly investigated.
Regards,
Arend
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-24 19:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-22 4:44 [PATCH v2] brcmfmac: of: introduce new property to allow disable PNO Hermes Zhang
2022-04-22 5:59 ` Kalle Valo
2022-04-24 19:13 ` Arend van Spriel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).