Re: [PATCH] staging: wfx: silence symbol 'wfx_get_ps_timeout' was not declared warning

2021-04-19 Thread Jérôme Pouiller
_get_ps_timeout' and 'wfx_update_pm' static" (merged in master in version 5.8). Can you check you are working on the last tree? -- Jérôme Pouiller

Re: [PATCH v5 08/24] wfx: add bus_sdio.c

2021-03-23 Thread Jérôme Pouiller
On Tuesday 23 March 2021 15:11:56 CET Ulf Hansson wrote: > On Mon, 22 Mar 2021 at 18:14, Jérôme Pouiller > wrote: > > On Monday 22 March 2021 13:20:35 CET Ulf Hansson wrote: > > > On Mon, 15 Mar 2021 at 14:25, Jerome Pouiller > > > wrote: > &g

Re: [PATCH v5 08/24] wfx: add bus_sdio.c

2021-03-22 Thread Jérôme Pouiller
Hello Ulf, On Monday 22 March 2021 13:20:35 CET Ulf Hansson wrote: > On Mon, 15 Mar 2021 at 14:25, Jerome Pouiller > wrote: > > > > From: Jérôme Pouiller > > > > Signed-off-by: Jérôme Pouiller > > --- > > drivers/net/wireless/silabs/wfx/bus_sdio

Re: [PATCH] wfx: fix irqf_oneshot.cocci warnings

2021-03-16 Thread Jérôme Pouiller
"genirq: Reject bogus threaded irq requests") > threaded IRQs without a primary handler need to be requested with > IRQF_ONESHOT, otherwise the request will fail. > > So pass the IRQF_ONESHOT flag in this case. > > Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci >

Re: [PATCH v5 03/24] wfx: add Makefile/Kconfig

2021-03-15 Thread Jérôme Pouiller
Hi Leon, On Monday 15 March 2021 16:11:52 CET Leon Romanovsky wrote: > On Mon, Mar 15, 2021 at 02:24:40PM +0100, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > Signed-off-by: Jérôme Pouiller > > --- > > drivers/net/wireless/silabs/wfx/Kconfig

Re: [PATCH] staging: wfx: remove unused included header files

2021-03-09 Thread Jérôme Pouiller
On Tuesday 9 March 2021 14:07:43 CET Greg KH wrote: > On Thu, Mar 04, 2021 at 10:43:45AM +0100, Jérôme Pouiller wrote: > > Hello Greg, > > > > On Tuesday 2 March 2021 16:01:25 CET Jérôme Pouiller wrote: > > > Hello Muhammad, > > > > > > Sorry, I a

Re: [PATCH] staging: wfx: remove unused included header files

2021-03-04 Thread Jérôme Pouiller
Hello Greg, On Tuesday 2 March 2021 16:01:25 CET Jérôme Pouiller wrote: > Hello Muhammad, > > Sorry, I am a bit late for the review of this patch. Thank you for your > contribution. > > On Thursday 11 February 2021 15:36:37 CET Muhammad Usama Anjum wrote: > > > &g

Re: [PATCH] staging: wfx: remove unused included header files

2021-03-02 Thread Jérôme Pouiller
completion. If you try to compile bh.h alone (with something like gcc -xc .../bh.h) it won't work. Maybe it works now because we are lucky in the order the headers are included, but I think it is not sufficient. [... same problem repeats multiple times in the following ...] -- Jérôme Pouiller

Re: [PATCH] staging: wfx: avoid defining array of flexible struct

2021-02-11 Thread Jérôme Pouiller
ging/wfx/hif_api_cmd.h > @@ -100,7 +100,7 @@ struct hif_req_update_ie { > u8 reserved1:5; > u8 reserved2; > __le16 num_ies; > - struct element ie[]; > + u8 ie[]; > } __packed; > > struct hif_cnf_update_ie { > -- > 2.25.1 &

Re: [PATCH v3 05/24] wfx: add main.c/main.h

2020-12-23 Thread Jérôme Pouiller
n in provided by PDS (Platform Data Set, this is the wording used in WF200 documentation) files. For hardware integrators, the full process to create PDS files is described here: https://github.com/SiliconLabs/wfx-firmware/blob/master/PDS/README.md So this function aims to send PDS to the device. However, the PDS file is often bigger than Rx buffers of the chip, so it has to be sent in multiple parts. In add, the PDS data cannot be split anywhere. The PDS files contains tree structures. Braces are used to enter/leave a level of the tree (in a JSON fashion). PDS files can only been split between root nodes. -- Jérôme Pouiller

Re: [PATCH v3 09/24] wfx: add hwio.c/hwio.h

2020-12-23 Thread Jérôme Pouiller
ning on. Just to be curious, why these platforms don't support DMA in a stack allocated area? If the memory is contiguous (= not vmalloced), correctly aligned and in the first 4GB of physical memory, it should be sufficient, shouldn't? -- Jérôme Pouiller

Re: [PATCH v3 03/24] wfx: add Makefile/Kconfig

2020-12-22 Thread Jérôme Pouiller
On Tuesday 22 December 2020 16:02:38 CET Kalle Valo wrote: > Jerome Pouiller writes: > > > From: Jérôme Pouiller > > > > Signed-off-by: Jérôme Pouiller > > [...] > > > +wfx-$(CONFIG_SPI) += bus_spi.o > > +wfx-$(subst m,y,$(CONFIG_MMC)) += bus_sdi

Re: [PATCH v3 12/24] wfx: add hif_api_*.h

2020-12-22 Thread Jérôme Pouiller
t; +#include > > +#else > > +#include > > +#include > > +#define __packed __attribute__((__packed__)) > > +#endif > > Why check for __KERNEL__ and redefined __packed? These don't belong to a > wireless driver. In the old days, this file was shared with other projects. I though I had cleaned all these things. -- Jérôme Pouiller

Re: [PATCH v3 09/24] wfx: add hwio.c/hwio.h

2020-12-22 Thread Jérôme Pouiller
*/ > > > > This sounds very hacky to me, I have understood that you should never > > use stack with DMA. > > You should never do that because some platforms do not support it, so no > driver should ever try to do that as they do not know what platform they > are

Re: [PATCH] Staging: silabs si4455 serial driver

2020-12-09 Thread Jérôme Pouiller
In), dataIn); > + if (ret == 0) { > + result->CHIPREV = dataIn[0]; > + memcpy(>PART, [1],sizeof(result->PART)); > + result->PBUILD = dataIn[3]; > + memcpy(>ID, [4], sizeof(result->ID)); > + result->CUSTOMER = dataIn[6]; > + result->ROMID = dataIn[7]; > + result->BOND = dataIn[8]; ... it would avoid all these lines. > + } else { > + dev_err(port->dev, > + "%s: si4455_send_command_get_response error(%i)", > + __func__, > + ret); > + } > + return ret; > +} [...] -- Jérôme Pouiller

Re: [PATCH v3 02/24] dt-bindings: introduce silabs,wfx.yaml

2020-11-05 Thread Jérôme Pouiller
On Wednesday 4 November 2020 20:15:54 CET Rob Herring wrote: > On Wed, 04 Nov 2020 16:51:45 +0100, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > Signed-off-by: Jérôme Pouiller > > --- > > .../bindings/net/wireless/silabs,wfx.yaml | 131 ++

Re: [PATCH] staging: wfx: avoid uninitialized variable use

2020-10-26 Thread Jérôme Pouiller
1609180-1-jerome.pouil...@silabs.com/ -- Jérôme Pouiller

Re: [PATCH] staging: wfx: make a const array static, makes object smaller

2020-10-19 Thread Jérôme Pouiller
[...] 7 .rodata 002d 0000 1dd4 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA The difference of .rodata is exactly what is expected (24 bytes) and we save 115 bytes of code. Reviewed-by: Jérôme Pouiller -- Jérôme Pouiller

Re: [PATCH 07/23] wfx: add bus_sdio.c

2020-10-16 Thread Jérôme Pouiller
Hello Ulf, On Friday 16 October 2020 13:30:30 CEST Ulf Hansson wrote: > On Mon, 12 Oct 2020 at 12:47, Jerome Pouiller > wrote: > > > > From: Jérôme Pouiller > > Please fill out this commit message to explain a bit more about the > patch and the HW it enables suppo

Re: [PATCH 07/23] wfx: add bus_sdio.c

2020-10-15 Thread Jérôme Pouiller
On Wednesday 14 October 2020 14:43:34 CEST Pali Rohár wrote: > On Wednesday 14 October 2020 13:52:15 Jérôme Pouiller wrote: > > On Tuesday 13 October 2020 22:11:56 CEST Pali Rohár wrote: > > > On Monday 12 October 2020 12:46:32 Jerome Pouiller wrote: > > > >

Re: [PATCH 01/23] dt-bindings: introduce silabs,wfx.yaml

2020-10-14 Thread Jérôme Pouiller
On Tuesday 13 October 2020 18:49:35 CEST Rob Herring wrote: > On Mon, Oct 12, 2020 at 12:46:26PM +0200, Jerome Pouiller wrote: > > From: Jérôme Pouiller [...] > > + Note that in add of the properties below, the WFx driver also supports > > + `mac-address` and `local-mac-

Re: [PATCH 07/23] wfx: add bus_sdio.c

2020-10-14 Thread Jérôme Pouiller
). Anyway, if we choose to rely on the DT, should we also check the VID/PID? Personally, I am in favor to probe the device only if VID/PID match and if a DT node is found, even if it is not the usual way. -- Jérôme Pouiller

Re: [PATCH] staging: wfx: Spacing and alignment cleanup

2020-10-12 Thread Jérôme Pouiller
ies on the last development tree. To get the development tree to use, you can run: ./scripts/get_maintainer.pl --scm -f drivers/staging/wfx/debug.c -- Jérôme Pouiller

Re: [PATCH 3/8] staging: wfx: standardize the error when vif does not exist

2020-10-10 Thread Jérôme Pouiller
On Saturday 10 October 2020 14:40:34 CEST Greg Kroah-Hartman wrote: > On Sat, Oct 10, 2020 at 02:22:13PM +0200, Jérôme Pouiller wrote: > > On Friday 9 October 2020 20:52:47 CEST Kalle Valo wrote: > > > Jerome Pouiller writes: > > > > > > > From: Jérôme Pou

Re: [PATCH 2/8] staging: wfx: check memory allocation

2020-10-10 Thread Jérôme Pouiller
On Friday 9 October 2020 20:51:01 CEST Kalle Valo wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > Jerome Pouiller writes: > >

Re: [PATCH 3/8] staging: wfx: standardize the error when vif does not exist

2020-10-10 Thread Jérôme Pouiller
On Friday 9 October 2020 20:52:47 CEST Kalle Valo wrote: > Jerome Pouiller writes: > > > From: Jérôme Pouiller > > > > Smatch complains: > > > >drivers/staging/wfx/hif_rx.c:177 hif_scan_complete_indication() warn: > > potential NULL parameter der

Re: [PATCH 0/7] wfx: move out from the staging area

2020-10-08 Thread Jérôme Pouiller
it, or it would be an unnecessary effort? [1] https://lore.kernel.org/driverdev-devel/20190919142527.31797-1-jerome.pouil...@silabs.com/ or commits a7a91ca5a23d^..40115bbc40e2 -- Jérôme Pouiller

Re: [PATCH] staging: wfx: simplify virt_addr_valid call

2020-09-16 Thread Jérôme Pouiller
tmp = buf; > > } > > ret = sram_buf_write(wdev, addr, tmp, len); > > - if (!virt_addr_valid(buf)) > > + if (tmp != buf) > > kfree(tmp); > > return ret; > > } > > Jerome, any thoughts? Looks correct. Reviewed-by: Jérôme Pouiller -- Jérôme Pouiller

Re: [PATCH 01/12] staging: wfx: fix BA when device is AP and MFP is enabled

2020-08-24 Thread Jérôme Pouiller
On Monday 24 August 2020 11:50:42 CEST Dan Carpenter wrote: > On Thu, Aug 20, 2020 at 05:58:47PM +0200, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > The protection of the management frames is mainly done by mac80211. > > However, frames for the manageme

Re: [PATCH 1/6] staging: wfx/main.h: fix a spelling and grammar mistake

2020-08-20 Thread Jérôme Pouiller
ing: wfx: fix a handful of spelling mistakes"). But, I am sure there still are spell mistakes in code of wfx driver :) -- Jérôme Pouiller

Re: [PATCH 4/6] staging: wfx/debug.c: Fix spelling mistake "carefull" => "careful"

2020-08-20 Thread Jérôme Pouiller
et < 0) > return context->ret; > - // Be carefull, write() is waiting for a full message while read() > + // Be careful, write() is waiting for a full message while read() Already fixed by commit c9638363f02d ("staging: wfx: fix a handful of spelling mistakes"). -- Jérôme Pouiller

Re: [PATCH 5/6] staging: wfx/hif_rx.c: Fix spelling mistake "negociation" => "negotiation"

2020-08-20 Thread Jérôme Pouiller
e staging tree before to send it. You can use the script get_maintainer.pl to get this information: $ ./scripts/get_maintainer.pl --scm drivers/staging/wfx [...] git git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git -- Jérôme Pouiller

Re: [PATCH v2] staging: wfx: refactor to avoid duplication at hif_tx.c

2020-08-10 Thread Jérôme Pouiller
This function is special. After HIF_REQ_ID_SHUT_DOWN, chip won't reply to > any > // request anymore. We need to slightly hack struct wfx_hif_cmd for that > job. Be > -// carefull to only call this funcion during device unregister. > +// careful to only call this function during device unregister. Not related to the rest of the patch. [...] As it stands, I think this change does not improve the code. Obviously, it is a subjective opinion. What the other developers think about it? -- Jérôme Pouiller

Re: [PATCH][next][V2] staging: wfx: fix a handful of spelling mistakes

2020-08-10 Thread Jérôme Pouiller
const char *file_pds; > struct gpio_desc *gpio_wakeup; > diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c > index 4e30ab17a93d..ad63332f690c 100644 > --- a/drivers/staging/wfx/sta.c > +++ b/drivers/staging/wfx/sta.c > @@ -214,7 +214,7 @@ static int wfx_get_ps_timeout(struct wfx_vif *wvif, bool > *enable_ps) > if (chan0 && chan1 && chan0->hw_value != chan1->hw_value && > wvif->vif->type != NL80211_IFTYPE_AP) { > // It is necessary to enable powersave if channels > - // are differents. > + // are different. > if (enable_ps) > *enable_ps = true; > if (wvif->wdev->force_ps_timeout > -1) > -- > 2.27.0 > > Reviewed-by: Jérôme Pouiller -- Jérôme Pouiller

Re: [PATCH][next] staging: wfx: fix uninitialized variable bytes_done

2020-07-06 Thread Jérôme Pouiller
lized value. > Fix this by initializing bytes_done to zero. > > Addresses-Coverity: ("Uninitialized scalar variable") > Fixes: a9408ad79ff3 ("staging: wfx: load the firmware faster") > Signed-off-by: Colin Ian King Good catch! I am surprised that my gcc hasn't caught th

Re: [staging-testing] drivers/staging/wfx/hif_tx.c

2020-06-10 Thread Jérôme Pouiller
In some specific usages (RT-mutex? lock proving?), acquire mutex from a context and release it from another can produce some errors. In contrary a boolean semaphore does not have this restriction. (can anyone confirm that?) -- Jérôme Pouiller

Re: drivers/staging/wfx/main.c:47:14-21: ERROR: PTR_ERR applied after initialization to constant on line 42

2020-06-08 Thread Jérôme Pouiller
dev_dbg(dev, "using gpio %d for %s\n", > desc_to_gpio(ret), label); > 54 } > 55 return ret; > 56 } > 57 Hello, This warning seems to be a false positive (the variable "ret" is affected in all branches of the if/else). -- Jérôme Pouiller

Re: [PATCH 00/10] staging: wfx: introduce nl80211 vendor extensions

2020-05-27 Thread Jérôme Pouiller
. Also do note > that we have special rules for nl80211 vendor commands: > > https://wireless.wiki.kernel.org/en/developers/documentation/nl80211#vendor-specific_api I hoped to suggest the move of this driver outside of staging in some weeks (the last items in TODO list are either non-essential or easy to fix). So, you suggest me to resend these patches after that change? -- Jérôme Pouiller

Re: [PATCH] staging: wfx: typo fix

2020-05-16 Thread Jérôme Pouiller
gt; * with a dummy element: > * The subject of the mail should have been "[PATCH v2]" (it is automatic if use the -v option of "git send-email"). Apart from that: Reviewed-by: Jérôme Pouiller -- Jérôme Pouiller

Re: [PATCH 05/19] staging: wfx: fix coherency of hif_scan() prototype

2020-05-15 Thread Jérôme Pouiller
On Friday 15 May 2020 15:53:59 CEST Greg Kroah-Hartman wrote: > On Fri, May 15, 2020 at 10:33:11AM +0200, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > The function hif_scan() return the timeout for the completion of the > > scan request. It is the

Re: [PATCH] wfx: typo fix

2020-05-13 Thread Jérôme Pouiller
an now nearlu be used with __print_symbolic() but, > + * 5. list_name can now nearly be used with __print_symbolic() but, > * __print_symbolic() dislike last comma of list. So we define a new > list > * with a dummy element: Ok. Thank you for your contribution. -- Jérôme Pouiller

Re: [PATCH 13/17] staging: wfx: fix endianness of the field 'len'

2020-05-12 Thread Jérôme Pouiller
On Tuesday 12 May 2020 09:43:34 CEST Geert Uytterhoeven wrote: > Hi Jerome, > > On Mon, May 11, 2020 at 5:53 PM Jerome Pouiller > wrote: > > From: Jérôme Pouiller > > > > The struct hif_msg is received from the hardware. So, it declared as > > little endia

[PATCH] ARM: dts: imx6dl: Fix typo in Engicam i.CoreM6 DualLite/Solo RQS

2018-03-03 Thread Jérôme Pouiller
Obviously "Engicam i.CoreM6 DualLite/Solo RQS" include an imx6dl, not an imx6q. Signed-off-by: Jérôme Pouiller <j...@sysmic.org> --- arch/arm/boot/dts/imx6dl-icore-rqs.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6dl-icore-rqs.dts

[PATCH] ARM: dts: imx6dl: Fix typo in Engicam i.CoreM6 DualLite/Solo RQS

2018-03-03 Thread Jérôme Pouiller
Obviously "Engicam i.CoreM6 DualLite/Solo RQS" include an imx6dl, not an imx6q. Signed-off-by: Jérôme Pouiller --- arch/arm/boot/dts/imx6dl-icore-rqs.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6dl-icore-rqs.dts b/arch/arm/boot/dts/im