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

2021-02-11 Thread Jérôme Pouiller
s/staging/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.2

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

2021-03-02 Thread Jérôme Pouiller
on. 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 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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-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 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] 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 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 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] staging: wfx: silence symbol 'wfx_get_ps_timeout' was not declared warning

2021-04-19 Thread Jérôme Pouiller
g: wfx: make methods 'wfx_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 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 29/31] staging: wfx: remove useless comments after #endif

2021-09-10 Thread Jérôme Pouiller
On Friday 10 September 2021 18:27:18 CEST Kari Argillander wrote: > On Fri, Sep 10, 2021 at 06:05:02PM +0200, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > Comments after the last #endif of header files don't bring any > > information and are redundant

Re: [PATCH 02/31] staging: wfx: do not send CAB while scanning

2021-09-10 Thread Jérôme Pouiller
35PM +0200, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > During the scan requests, the Tx traffic is suspended. This lock is > > shared by all the network interfaces. So, a scan request on one > > interface will block the traffic on a second interface.

Re: [PATCH 13/31] staging: wfx: update with API 3.8

2021-09-10 Thread Jérôme Pouiller
On Friday 10 September 2021 18:43:26 CEST Kari Argillander wrote: > > On Fri, Sep 10, 2021 at 06:04:46PM +0200, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > API 3.8 introduces new statistic counters. These changes are backward > > compatible. > >

Re: [PATCH 31/31] staging: wfx: indent functions arguments

2021-09-10 Thread Jérôme Pouiller
On Friday 10 September 2021 18:57:43 CEST Kari Argillander wrote: > > On Fri, Sep 10, 2021 at 06:05:04PM +0200, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > Function arguments must be aligned with left parenthesis. Apply that > > rule. > > To m

Re: [PATCH 02/31] staging: wfx: do not send CAB while scanning

2021-09-10 Thread Jérôme Pouiller
the content is safe. > > > > > > > > > On Fri, Sep 10, 2021 at 06:04:35PM +0200, Jerome Pouiller wrote: > > > > From: Jérôme Pouiller > > > > > > > > During the scan requests, the Tx traffic is suspended. This lock is > >

Re: [PATCH 00/31] [PATCH 00/31] staging/wfx: usual maintenance

2021-09-10 Thread Jérôme Pouiller
On Friday 10 September 2021 19:07:41 CEST Kari Argillander wrote: > > On Fri, Sep 10, 2021 at 06:04:33PM +0200, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > Hi, > > > > The following PR contains now usual maintenance for the wfx driver. I have &g

Re: [PATCH v2 03/33] staging: wfx: ignore PS when STA/AP share same channel

2021-09-13 Thread Jérôme Pouiller
*enable_ps = false; > > + if (wvif->vif->bss_conf.assoc && > > wvif->vif->bss_conf.ps) > > + dev_info(wvif->wdev->dev, "ignoring requested > > PS mode"); > > + re

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

2021-09-30 Thread Jérôme Pouiller
Hello Ulf, On Thursday 30 September 2021 12:07:55 CEST Ulf Hansson wrote: > On Mon, 20 Sept 2021 at 18:12, Jerome Pouiller > wrote: > > > > From: Jérôme Pouiller > > > > Signed-off-by: Jérôme Pouiller > > --- > > drivers/net/wireless/silabs/wfx/bus

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

2021-10-01 Thread Jérôme Pouiller
On Friday 1 October 2021 11:22:08 CEST Kalle Valo wrote: > Jerome Pouiller writes: > > > From: Jérôme Pouiller > > > > Signed-off-by: Jérôme Pouiller > > [...] > > > +/* The device needs data about the antenna configuration. This information > >

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

2021-10-01 Thread Jérôme Pouiller
On Friday 1 October 2021 13:41:55 CEST Kalle Valo wrote: > Jerome Pouiller writes: > > > From: Jérôme Pouiller > > > > Signed-off-by: Jérôme Pouiller > > [...] > > > --- /dev/null > > +++ b/drivers/net/wireless/silabs/wfx/hif_api_cmd.h > >

Re: [PATCH v7 10/24] wfx: add fwio.c/fwio.h

2021-10-01 Thread Jérôme Pouiller
On Friday 1 October 2021 13:58:38 CEST Kalle Valo wrote: > Jerome Pouiller writes: > > > From: Jérôme Pouiller > > > > Signed-off-by: Jérôme Pouiller > > [...] > > > +static int get_firmware(struct wfx_dev *wdev, u32 keyset_chip, > > +

Re: [PATCH v7 13/24] wfx: add hif_tx*.c/hif_tx*.h

2021-10-01 Thread Jérôme Pouiller
On Friday 1 October 2021 11:55:33 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 v7 05/24] wfx: add main.c/main.h

2021-10-01 Thread Jérôme Pouiller
On Friday 1 October 2021 11:22:08 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 v7 10/24] wfx: add fwio.c/fwio.h

2021-10-01 Thread Jérôme Pouiller
On Friday 1 October 2021 18:08:32 CEST Pali Rohár wrote: > On Friday 01 October 2021 17:09:41 Jérôme Pouiller wrote: > > On Friday 1 October 2021 13:58:38 CEST Kalle Valo wrote: > > > Jerome Pouiller writes: > > > > > > > From: Jérôme Pouiller > &g

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

2021-10-05 Thread Jérôme Pouiller
On Tuesday 5 October 2021 07:56:53 CEST Kalle Valo wrote: > Jérôme Pouiller writes: > > > On Friday 1 October 2021 11:22:08 CEST Kalle Valo wrote: > >> CAUTION: This email originated from outside of the organization. Do > >> not click links or open attachments u

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

2021-10-05 Thread Jérôme Pouiller
On Friday 1 October 2021 17:23:16 CEST Ulf Hansson wrote: > On Thu, 30 Sept 2021 at 19:06, Pali Rohár wrote: > > On Thursday 30 September 2021 18:51:09 Jérôme Pouiller wrote: > > > On Thursday 30 September 2021 12:07:55 CEST Ulf Hansson wrote: > > > > On Mon,

Re: [PATCH v7 13/24] wfx: add hif_tx*.c/hif_tx*.h

2021-10-05 Thread Jérôme Pouiller
On Tuesday 5 October 2021 08:12:27 CEST Kalle Valo wrote: > Pali Rohár writes: > > On Friday 01 October 2021 17:17:52 Jérôme Pouiller wrote: > >> On Friday 1 October 2021 11:55:33 CEST Kalle Valo wrote: > >> > Jerome Pouiller writes: > &g

Re: [PATCH v7 13/24] wfx: add hif_tx*.c/hif_tx*.h

2021-10-05 Thread Jérôme Pouiller
On Tuesday 5 October 2021 10:21:27 CEST Greg Kroah-Hartman wrote: > On Tue, Oct 05, 2021 at 10:17:32AM +0200, Jérôme Pouiller wrote: > > On Tuesday 5 October 2021 08:12:27 CEST Kalle Valo wrote: > > > Pali Rohár writes: > > > > On Friday 01 October 2021 17:17:52 Jérô

Re: [PATCH v8 00/24] wfx: get out from the staging area

2021-10-05 Thread Jérôme Pouiller
On Tuesday 5 October 2021 16:20:19 CEST Kalle Valo wrote: > Jerome Pouiller writes: > > > From: Jérôme Pouiller [...] > > > > v8: > > - Change the way the DT is handled. The user can now specify the name of > > the board (= chip + antenna) he u

Re: [PATCH v8 00/24] wfx: get out from the staging area

2021-10-05 Thread Jérôme Pouiller
On Tuesday 5 October 2021 16:15:22 CEST Kalle Valo wrote: > Jerome Pouiller writes: > > > From: Jérôme Pouiller [...] > > v8: > > - Change the way the DT is handled. The user can now specify the name of > > the board (= chip + antenna) he use. It easier for

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

2021-10-06 Thread Jérôme Pouiller
Hi Kalle, On Friday 1 October 2021 14:18:04 CEST Kalle Valo wrote: > Jérôme Pouiller writes: > > > On Friday 1 October 2021 11:22:08 CEST Kalle Valo wrote: > >> Jerome Pouiller writes: > >> > >> > From: Jérôme Pouiller &g

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

2021-10-06 Thread Jérôme Pouiller
On Wednesday 6 October 2021 17:02:07 CEST Ulf Hansson wrote: > On Tue, 5 Oct 2021 at 10:14, Jérôme Pouiller > wrote: > > On Friday 1 October 2021 17:23:16 CEST Ulf Hansson wrote: > > > On Thu, 30 Sept 2021 at 19:06, Pali Rohár wrote: > > > > On Thursday

Re: [PATCH v7 10/24] wfx: add fwio.c/fwio.h

2021-10-07 Thread Jérôme Pouiller
On Thursday 7 October 2021 10:08:53 CEST Kalle Valo wrote: > Jérôme Pouiller writes: > > On Friday 1 October 2021 13:58:38 CEST Kalle Valo wrote: > >> Jerome Pouiller writes: > >> > >> > From: Jérôme Pouiller > >> > > >> > Signed-o

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

2021-10-07 Thread Jérôme Pouiller
On Thursday 7 October 2021 10:35:43 CEST Kalle Valo wrote: > Jérôme Pouiller writes: > > On Friday 1 October 2021 14:18:04 CEST Kalle Valo wrote: > >> Jérôme Pouiller writes: > >> > On Friday 1 October 2021 11:22:08 CEST Kalle Valo wrote: > >> >> Je

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

2021-10-07 Thread Jérôme Pouiller
On Thursday 7 October 2021 12:49:47 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. > > > Kalle Valo writes: > > &

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

2021-11-10 Thread Jérôme Pouiller
On Wednesday 10 November 2021 10:58:41 CET Kalle Valo wrote: > Jérôme Pouiller writes: > > On Thursday 7 October 2021 12:49:47 CEST Kalle Valo wrote: > >> Kalle Valo writes: > >> > Jérôme Pouiller writes: > >> >>> >> >> I&#x

Re: [PATCH v9 23/24] wfx: remove from the staging area

2022-01-12 Thread Jérôme Pouiller
On Wednesday 12 January 2022 08:49:54 CET Kalle Valo wrote: > Jerome Pouiller writes: > > > From: Jérôme Pouiller > > > > Signed-off-by: Jérôme Pouiller > > --- > > .../bindings/net/wireless/silabs,wfx.yaml | 125 --- > > drivers/staging/wfx/Kcon

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

2022-01-12 Thread Jérôme Pouiller
On Tuesday 11 January 2022 23:19:56 CET Rob Herring wrote: > On Tue, Jan 11, 2022 at 06:14:02PM +0100, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > Prepare the inclusion of the wfx driver in the kernel. > > > > Signed-off-by: Jérôme Pouiller >

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

2022-01-12 Thread Jérôme Pouiller
; + .probe = wfx_sdio_probe, > > + .remove = wfx_sdio_remove, > > + .drv = { > > + .owner = THIS_MODULE, > > + .of_match_table = wfx_sdio_of_match, > > + } > > +}; > > -- > > 2.34.1 > > > -- Jérôme Pouill

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

2022-01-12 Thread Jérôme Pouiller
On Wednesday 12 January 2022 12:43:32 CET Pali Rohár wrote: > > On Wednesday 12 January 2022 12:18:58 Jérôme Pouiller wrote: > > On Wednesday 12 January 2022 11:58:59 CET Pali Rohár wrote: > > > On Tuesday 11 January 2022 18:14:08 Jerome Pouiller wrote: > > > > +s

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

2022-01-12 Thread Jérôme Pouiller
On Wednesday 12 January 2022 18:48:48 CET Pali Rohár 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. > > > On Wednesday 12 January 2022 17:45:

Re: [PATCH 02/31] staging: wfx: fix HIF API license

2022-01-13 Thread Jérôme Pouiller
On Thursday 13 January 2022 12:50:23 CET Kalle Valo wrote: > Jerome Pouiller writes: > > > From: Jérôme Pouiller > > > > Apache-2.0 is not allowed in the kernel. > > > > Signed-off-by: Jérôme Pouiller > > --- > > drivers/staging/wfx/h

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

2022-01-26 Thread Jérôme Pouiller
Hi Kalle, On Tuesday 11 January 2022 18:14:05 CET Jerome Pouiller wrote: > From: Jérôme Pouiller > > Signed-off-by: Jérôme Pouiller > --- > drivers/net/wireless/silabs/wfx/main.c | 485 + > drivers/net/wireless/silabs/wfx/main.h | 42 +++ >

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

2022-02-10 Thread Jérôme Pouiller
On Thursday 10 February 2022 15:20:56 CET Kalle Valo wrote: > > Jérôme Pouiller writes: > > > Hi Kalle, > > > > On Tuesday 11 January 2022 18:14:05 CET Jerome Pouiller wrote: > >> From: Jérôme Pouiller > >> > >> Signed-off-by: Jérôme Po

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

2022-02-10 Thread Jérôme Pouiller
On Thursday 10 February 2022 15:51:03 CET Kalle Valo wrote: > Jérôme Pouiller writes: > > On Thursday 10 February 2022 15:20:56 CET Kalle Valo wrote: > >> Jérôme Pouiller writes: > >> > >> > Kalle, is this function what you expected? If it is right for y

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

2022-02-10 Thread Jérôme Pouiller
On Thursday 10 February 2022 17:25:05 CET Kalle Valo wrote: > Jérôme Pouiller writes: > > > On Thursday 10 February 2022 15:51:03 CET Kalle Valo wrote: > >> Jérôme Pouiller writes: > >> > On Thursday 10 February 2022 15:20:56 CET Kalle Valo wrote

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? Look

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

2020-10-08 Thread Jérôme Pouiller
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 ___ devel mailing list de...@linuxdriverp

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 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 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] 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 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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

2020-10-14 Thread Jérôme Pouiller
commented out). 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 ___ devel

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-add

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 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 support

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

2020-10-19 Thread Jérôme Pouiller
NTENTS, ALLOC, LOAD, READONLY, CODE [...] 7 .rodata 002d 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 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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

2020-10-26 Thread Jérôme Pouiller
evel/20201019160604.1609180-1-jerome.pouil...@silabs.com/ -- Jérôme Pouiller ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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: silabs si4455 serial driver

2020-12-09 Thread Jérôme Pouiller
taIn[3]; > + memcpy(&result->ID, &dataIn[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 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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 oth

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 09/24] wfx: add hwio.c/hwio.h

2020-12-22 Thread Jérôme Pouiller
t; + */ > > > > 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 >

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

2020-12-23 Thread Jérôme Pouiller
nning 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 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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

2020-12-23 Thread Jérôme Pouiller
ing to add this comment: The device need data about the antenna configuration. This information 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/Silicon

Re: [PATCH] staging: wfx: fix reset GPIO polarity

2019-12-05 Thread Jérôme Pouiller
gpio_nreset. What do you think about it? (in add, this solution would explicitly change the name of the DT attribute instead of changing the semantic of the existing attribute) -- Jérôme Pouiller ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: wfx: fix reset GPIO polarity

2019-12-05 Thread Jérôme Pouiller
On Thursday 5 December 2019 15:49:55 CET Michał Mirosław wrote: > On Thu, Dec 05, 2019 at 02:08:23PM +0000, Jérôme Pouiller wrote: > > On Wednesday 4 December 2019 17:59:46 CET Michał Mirosław wrote: > > > Driver inverts meaning of GPIO_ACTIVE_LOW/HIGH. Fix it to preve

[PATCH 21/55] staging: wfx: ensure that traces never modify arguments

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller There is no reason for a trace to change any bit of the argument. So, let's make sure that is the case by declaring the arguments constant. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/traces.h | 14 -- 1 file changed, 8 insertions(+), 6 dele

[PATCH 13/55] staging: wfx: avoid double warning when no more tx policy are available

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller Currently, number of available tx retry policies is checked two times. Only one is sufficient. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wfx/data_tx.c b/drivers

[PATCH 15/55] staging: wfx: take advantage of IS_ERR_OR_NULL()

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller Obviously, current code can be replaced by IS_ERR_OR_NULL(). Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index 3b47b6c21ea1

[PATCH 17/55] staging: wfx: use meaningful names for CFG_BYTE_ORDER_*

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller This new naming allows to save a comment. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bus_spi.c | 2 ++ drivers/staging/wfx/fwio.c| 2 +- drivers/staging/wfx/hwio.h| 15 +-- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a

[PATCH 25/55] staging: wfx: fix name of struct hif_req_start_scan_alt

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller The original name did not make any sense. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_api_cmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/hif_api_cmd.h b/drivers/staging/wfx/hif_api_cmd.h index 3e77fbe3d5ff

[PATCH 10/55] staging: wfx: fix wrong error message

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller The driver checks that the number of retries made by the device is coherent with the rate policy. However, this check make sense only if the device has returned RETRY_EXCEEDED. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c | 4 +++- 1 file changed, 3

[PATCH 14/55] staging: wfx: improve error message on unexpected confirmation

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller When driver receives an unexpected answer from the device, it shows "unsupported HIF ID". That message does not represent the real error. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_rx.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletio

[PATCH 19/55] staging: wfx: simplify variable assignment

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller Attribute "aborted" and argument "aborted" are both booleans. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/scan.c b/drivers/staging/wfx/scan.

[PATCH 22/55] staging: wfx: ensure that received hif messages are never modified

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller There are no real reason to modify the data received from device. So, let's mark the arguments constant. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_rx.c | 8 ++- drivers/staging/wfx/data_rx.h | 4 +- drivers/staging/wfx/data_tx.c

[PATCH 26/55] staging: wfx: improve API of hif_req_join->infrastructure_bss_mode

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller In fact "mode" is a boolean that indicates if IBSS mode is used. This patch fixes the name and uses a more adapted memory representation. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_api_cmd.h | 8 ++-- drivers/staging/wfx/sta.c | 2 +

[PATCH 16/55] staging: wfx: uniformize naming rule

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller In wfx driver, when a function is used as a struct member, its name is the name of the member prefixed with "wfx_". This patch apply this rule to wfx_spi_remove(). Also remove the useless comment above the function. Signed-off-by: Jérôme Pouiller --- drive

[PATCH 24/55] staging: wfx: fix typo in "num_i_es"

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller The script that has imported API header has made a mistake "num_i_es". Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_api_cmd.h | 2 +- drivers/staging/wfx/hif_tx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH 12/55] staging: wfx: don't print useless error messages

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller During chip probing, if error does not come from secure boot (for exemple when firmware has been found), others errors probably appears. It is not necessary to say to user that the error does not come from secure boot. So, drop the message saying "no error report

[PATCH 20/55] staging: wfx: make conditions easier to read

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller We prefer series of simple boolean conditions than computing bitmasks. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/drivers/staging/wfx/sta.c b/drivers

[PATCH 18/55] staging: wfx: remove useless include

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller hif_tx.c does not use any struct skb. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c index cb7cddcb9815..e8c2bd1efbac 100644 --- a/drivers

[PATCH 23/55] staging: wfx: fix typo in "num_of_ssi_ds"

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller The script that has imported API headers has made a mistake in "num_of_ssi_ds". Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_api_cmd.h | 4 ++-- drivers/staging/wfx/hif_tx.c | 10 +- drivers/staging/wfx/scan.c| 2 +- 3 fil

[PATCH 38/55] staging: wfx: prefer a bitmask instead of an array of boolean

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller It is easier to manipulate a int than an array of booleans. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 17 +++-- drivers/staging/wfx/sta.h | 2 +- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/staging/wfx/sta.c b

[PATCH 37/55] staging: wfx: simplify wfx_conf_tx()

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller Error management of wfx_conf_tx() can be simplified. In add, the hardware command "hif_set_edca_queue_params" never returns any error. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 42 ++- 1 file c

[PATCH 39/55] staging: wfx: simplify hif_set_uapsd_info() usage

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller It is useless to keep uapsd_info in struct wfx_vif. This structure can be rebuilt just before to be sent. In add, the struct hif_mib_set_uapsd_information comes from hardware API. It is not intended to be manipulated in upper layers of the driver. So, this patch relocates

[PATCH 40/55] staging: wfx: simplify hif_set_pm() usage

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller The struct hif_req_set_pm_mode comes from hardware API. It is not intended to be manipulated in upper layers of the driver. So, this patch relocate the handling of this struct to hif_set_pm() (the low level function). Signed-off-by: Jérôme Pouiller --- drivers/staging

[PATCH 41/55] staging: wfx: drop struct wfx_edca_params

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller Intermediate structure wfx_edca_params does not help. This patch relocates its members directly in struct wfx_vif. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/queue.c | 4 ++-- drivers/staging/wfx/sta.c | 18 +- drivers/staging/wfx/sta.h

[PATCH 45/55] staging: wfx: device already handle sleep mode during scan

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller The device is not allowed to enter in sleep mode during scan. However, this is already handled by the device. So driver does not have to care about it. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.c | 3 +-- drivers/staging/wfx/scan.c | 3 --- drivers

[PATCH 49/55] staging: wfx: simplify hif_set_template_frame() usage

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller The structure hif_mib_template_frame come from hardware API. It is not intended to be manipulated in upper layers of the driver. In add, the current code for hif_set_template_frame() is dumb. All the difficult task is left to the caller. So, there is code to factorize here

[PATCH 47/55] staging: wfx: simplify hif_scan() usage

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller The structures hif_req_start_scan and hif_ssid_def come from hardware API. It is not intended to be manipulated in upper layers of the driver. So, this patch relocate handling of theses structures to hif_scan() (the low level function). This change also allows to drop

[PATCH 46/55] staging: wfx: drop useless wfx_scan_complete()

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller Since wfx_scan_complete() is now only called from wfx_scan_complete_cb(), it make sense to merge the both functions. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/scan.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging

[PATCH 43/55] staging: wfx: simplify hif_set_edca_queue_params() usage

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller The struct hif_req_edca_queue_params comes from hardware API. It is not intended to be manipulated in upper layers of the driver. So, this patch: 1. relocate the handling of this struct in hif_set_edca_queue_params() (the low level function) 2. replace it in

[PATCH 44/55] staging: wfx: hif_scan() never fails

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller If scan fails, status is returned in hif_ind_scan_cmpl. hif_scan always return a success. So, we can simplify the code. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/scan.c | 20 ++-- drivers/staging/wfx/scan.h | 1 - 2 files changed, 2

[PATCH 42/55] staging: wfx: remove unnecessary EDCA initialisation

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller mac80211 already call wfx_conf_tx() on every VIF instanciation. So, the driver does not need to do it. Note that current code did dirty things with wvif->edca_params. This struct was initialized, but only 'queue_id' was really used. The other members are only

[PATCH 48/55] staging: wfx: introduce update_probe_tmpl()

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller Simplify wfx_hw_scan() by splitting out the update of the probe request. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/scan.c | 57 -- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/drivers/staging/wfx/scan.c

[PATCH 06/55] staging: wfx: fix rate control handling

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller A tx_retry_policy (the equivalent of a list of ieee80211_tx_rate in hardware API) is not able to include a rate multiple time. So currently, the driver merges the identical rates from the policy provided by minstrel (and it try to do the best choice it can in the associated

[PATCH 00/55] Improve wfx driver

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller Hello all, This pull request continue to clean up the wfx driver. It can be more or less divided in four parts: - 0001 to 0009 fix some issues (should be included in 5.5?) - 0010 to 0028 mostly contains cosmetics changes - 0029 to 0043 re-work power save (in station

[PATCH 07/55] staging: wfx: ensure that retry policy always fallbacks to MCS0 / 1Mbps

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller When not using HT mode, minstrel always includes 1Mbps as fallback rate. But, when using HT mode, this fallback is not included. Yet, it seems that it could save some frames. So, this patch add it unconditionally. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx

[PATCH 03/55] staging: wfx: fix counter overflow

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller Some weird behaviors were observed when connection is really good and packets are small. It appears that sometime, number of packets in queues can exceed 255 and generate an overflow in field usage_count. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.h

[PATCH 02/55] staging: wfx: fix case of lack of tx_retry_policies

2019-12-16 Thread Jérôme Pouiller
From: Jérôme Pouiller In some rare cases, driver may not have any available tx_retry_policies. In this case, the driver asks to mac80211 to stop sending data. However, it seems that a race is possible and a few frames can be sent to the driver. In this case, driver can't wait for

  1   2   3   4   >