[PATCH] staging: rtl8192u: fix multiple memory leaks on error path

2019-09-19 Thread Navid Emamdoost
In rtl8192_tx on error handling path allocated urbs and also skb should be released. Signed-off-by: Navid Emamdoost --- drivers/staging/rtl8192u/r8192U_core.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c

[PATCH] staging: rtl8192u: release memory on error path

2019-09-19 Thread Navid Emamdoost
In rtl819xU_tx_cmd if usb_submit_urb fails the allocated memories should be released. Signed-off-by: Navid Emamdoost --- drivers/staging/rtl8192u/r8192U_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c

Re: [PATCH 02/20] staging: wfx: add support for I/O access

2019-09-19 Thread Andrew Lunn
On Thu, Sep 19, 2019 at 10:52:35AM +, Jerome Pouiller wrote: > +static int wfx_sdio_copy_from_io(void *priv, unsigned int reg_id, > + void *dst, size_t count) > +{ > + struct wfx_sdio_priv *bus = priv; > + unsigned int sdio_addr = reg_id << 2; > + int

Re: [PATCH RFC 0/2] staging: Support Avalon-MM DMA Interface for PCIe

2019-09-19 Thread Vinod Koul
On 19-09-19, 13:37, Greg KH wrote: > On Thu, Sep 19, 2019 at 11:59:11AM +0200, Alexander Gordeev wrote: > > The Avalon-MM DMA Interface for PCIe is a design found in hard IPs for > > Intel Arria, Cyclone or Stratix FPGAs. It transfers data between on-chip > > memory and system memory. This RFC is

Re: [PATCH 02/20] staging: wfx: add support for I/O access

2019-09-19 Thread Greg Kroah-Hartman
On Thu, Sep 19, 2019 at 06:34:29PM +0200, Andrew Lunn wrote: > On Thu, Sep 19, 2019 at 10:52:35AM +, Jerome Pouiller wrote: > > +static int wfx_sdio_copy_from_io(void *priv, unsigned int reg_id, > > +void *dst, size_t count) > > +{ > > + struct wfx_sdio_priv *bus

Re: [PATCH v3 00/20] Add support for Silicon Labs WiFi chip WF200 and further

2019-09-19 Thread Greg Kroah-Hartman
On Thu, Sep 19, 2019 at 02:25:36PM +, Jerome Pouiller wrote: > From: Jérôme Pouiller > > Hello all, > > This series add support for Silicon Labs WiFi chip WF200 and further: > >https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf > > This driver is an export from: >

[PATCH 19/20] staging: wfx: implement 802.11 key handling

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/key.c| 272 +++ drivers/staging/wfx/key.h| 22 +++ drivers/staging/wfx/main.c | 2 + drivers/staging/wfx/sta.c| 4 +

[PATCH v3 18/20] staging: wfx: allow to scan networks

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Chip can make foreground scan or background, but both can't be mixed in same request. So, we need to split each mac80211 requests into multiple HIF requests. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/bh.c | 2 +-

[PATCH v3 14/20] staging: wfx: setup initial chip configuration

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller A few tasks remain to be done in order to finish chip initial configuration: - configure chip to use multi-tx confirmation (speed up data transfer) - configure chip to use wake-up feature (save power consumption during runtime) - set hardware

[PATCH v3 15/20] staging: wfx: add debug files and trace debug events

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Add traces when debug events happen and allow to ask internal information to chip. These features work independently from mac80211. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/debug.c | 105 +++ drivers/staging/wfx/hif_rx.c |

[PATCH v3 16/20] staging: wfx: allow to send 802.11 frames

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Three things make this task more complex than it should: - Chip necessitate to associate a link-id to each station. It is same thing than association ID but, using 8 bits only. - Rate policy is sent separately from Tx frames - Driver try to handle itself power

[PATCH v3 19/20] staging: wfx: implement 802.11 key handling

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller wfx_set_key() mostly copy bytes on correct offsets. A big piece of code for a simple work. Unfortunately, I did not found any way to factorize it. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/key.c| 258

[PATCH v3 17/20] staging: wfx: allow to receive 802.11 frames

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Again, this task is more complex than it should since driver try to handle itself power saving of stations. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/data_rx.c | 182 ++

[PATCH v3 13/20] staging: wfx: introduce "secure link"

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Chip support encryption of the link between host and chip. This feature is called "secure link". Driver code on github[1] support it. However, it relies on mbedtls for cryptographic functions. So, I decided to not import this feature in current patch. However, in order to

[PATCH v3 05/20] staging: wfx: load firmware

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller A firmware is necessary to run the chip. wfx_init_device() is in charge of loading firmware on chip and doing low level initialization. Firmwares for WF200 are available here: https://github.com/SiliconLabs/wfx-firmware/ Note that firmware are encrypted. Driver checks

[PATCH v3 09/20] staging: wfx: add support for start-up indication

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Once firmware is loaded, it send a first indication to host. This indication signalize that host can start to communicate with firmware. In add, it contains information about chip and firmware (MAC addresses, firmware version, etc...). Signed-off-by: Jérôme Pouiller ---

[PATCH v3 11/20] staging: wfx: allow to send commands to chip

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Chip has multiple input buffers and can handle multiple 802.11 frames in parallel. However, other HIF command must be sent sequentially. wsm_send_cmd() handles these requests. This commit also add send_hif_cmd in debugfs. This file allows to send arbitrary commands to

[PATCH v3 02/20] staging: wfx: add support for I/O access

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Introduce bus level communication layer. At this level, 7 registers can be addressed. Notice that SPI driver is able to manage chip reset. SDIO mode relies on an external driver (`mmc-pwrseq`) to reset chip. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bus.h

[PATCH v3 12/20] staging: wfx: add HIF commands helpers

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Provide an abstraction for HIF commands. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx.c | 375 +++ drivers/staging/wfx/hif_tx.h | 33 +++ drivers/staging/wfx/hif_tx_mib.h | 281 +++ 3 files

[PATCH v3 06/20] staging: wfx: import HIF API headers

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller These files are shared with firmware sources. Only a subset of these definitions are used by driver but, for now, it is easier to import all. API defines 3 kinds of messages: - Requests (req) are sent from host to chip - Confirmations (cnf) are sent by chip and are

[PATCH v3 00/20] Add support for Silicon Labs WiFi chip WF200 and further

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Hello all, This series add support for Silicon Labs WiFi chip WF200 and further: https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf This driver is an export from: https://github.com/SiliconLabs/wfx-linux-driver/ I squashed all commits from

[PATCH v3 10/20] staging: wfx: instantiate mac80211 data

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Allocate a struct ieee80211_hw but do not yet register it. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/debug.c | 12 ++ drivers/staging/wfx/debug.h | 15 drivers/staging/wfx/main.c | 41

[PATCH v3 01/20] staging: wfx: add infrastructure for new driver

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Instantiate build infrastructure WFx driver. This driver provides support for Wifi chipset Silicon Labs WF200 and further: https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf This chip support SPI and SDIO bus. SDIO interface has two

[PATCH v3 20/20] staging: wfx: implement the rest of mac80211 API

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Finish to fill struct ieee80211_ops with necessary callbacks. Driver is now ready to be registered to mac80211. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_rx.c | 26 + drivers/staging/wfx/data_tx.c | 16 + drivers/staging/wfx/debug.c |2 +

[PATCH v3 08/20] staging: wfx: add tracepoints for HIF

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller These tracepoints decode HIF headers and provide more human readable results. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.c | 5 + drivers/staging/wfx/traces.h | 211 +++ 2 files changed, 216 insertions(+) diff --git

[PATCH v3 07/20] staging: wfx: add IRQ handling

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller bh_work() is in charge to schedule all HIF message from/to chip. On normal operation, when an IRQ is received, driver can get size of next message in control register. In order to save control register access, when chip send a message, it also appends a copy of control

[PATCH v3 04/20] staging: wfx: add tracepoints for I/O access

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Some tracepoints are useful for debugging. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 6 +- drivers/staging/wfx/debug.c | 10 +++ drivers/staging/wfx/hwio.c | 11 +++ drivers/staging/wfx/traces.h | 149 +++ 4

[PATCH v3 03/20] staging: wfx: add I/O API

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller hwio.c provides an abstraction to access different types of register of the chip. Note that only data register (aka FRAME_OUT) and control register are used normal communication. Other registers are only used during chip start up. Signed-off-by: Jérôme Pouiller ---

Re: [PATCH v2 20/20] staging: wfx: implement the rest of mac80211 API

2019-09-19 Thread Greg Kroah-Hartman
On Thu, Sep 19, 2019 at 01:52:42PM +, Jerome Pouiller wrote: > From: Jérôme Pouiller > > Signed-off-by: Jérôme Pouiller I can not take patches without any changelog text :( ___ devel mailing list de...@linuxdriverproject.org

[PATCH v2 20/20] staging: wfx: implement the rest of mac80211 API

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_rx.c | 26 + drivers/staging/wfx/data_tx.c | 16 + drivers/staging/wfx/debug.c |2 + drivers/staging/wfx/hif_rx.c | 53 ++ drivers/staging/wfx/hif_tx.c |1 + drivers/staging/wfx/main.c| 133

[PATCH v2 16/20] staging: wfx: allow to send 802.11 frames

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Three things make this task more complex than it should: - Chip necessitate to associate a link-id to each station. It is same thing than association ID but, using 8 bits only. - Rate policy is sent separately from Tx frames - Driver try to handle itself power

[PATCH v2 08/20] staging: wfx: add tracepoints for HIF

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller These tracepoints decode HIF headers and provide more human readable results. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.c | 5 + drivers/staging/wfx/traces.h | 211 +++ 2 files changed, 216 insertions(+) diff --git

[PATCH v2 19/20] staging: wfx: implement 802.11 key handling

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/key.c| 258 +++ drivers/staging/wfx/key.h| 22 +++ drivers/staging/wfx/main.c | 2 + drivers/staging/wfx/sta.c| 4 +

[PATCH v2 04/20] staging: wfx: add tracepoints for I/O access

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Some tracepoints are useful for debugging. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 6 +- drivers/staging/wfx/debug.c | 10 +++ drivers/staging/wfx/hwio.c | 11 +++ drivers/staging/wfx/traces.h | 149 +++ 4

[PATCH v2 11/20] staging: wfx: allow to send commands to chip

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Chip has multiple input buffers and can handle multiple 802.11 frames in parallel. However, other HIF command must be sent sequentially. wsm_send_cmd() handles these requests. This commit also add send_hif_cmd in debugfs. This file allows to send arbitrary commands to

[PATCH v2 13/20] staging: wfx: introduce "secure link"

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Chip support encryption of the link between host and chip. This feature is called "secure link". Driver code on github[1] support it. However, it relies on mbedtls for cryptographic functions. So, I decided to not import this feature in current patch. However, in order to

[PATCH v2 09/20] staging: wfx: add support for start-up indication

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Once firmware is loaded, it send a first indication to host. This indication signalize that host can start to communicate with firmware. In add, it contains information about chip and firmware (MAC addresses, firmware version, etc...). Signed-off-by: Jérôme Pouiller ---

[PATCH v2 18/20] staging: wfx: allow to scan networks

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/bh.c | 2 +- drivers/staging/wfx/hif_rx.c | 13 ++ drivers/staging/wfx/main.c | 5 + drivers/staging/wfx/scan.c | 249 +++

[PATCH v2 15/20] staging: wfx: add debug files and trace debug events

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Add traces when debug events happen and allow to ask internal information to chip. These features work independently from mac80211. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/debug.c | 105 +++ drivers/staging/wfx/hif_rx.c |

[PATCH v2 06/20] staging: wfx: import HIF API headers

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller These files are shared with firmware sources. Only a subset of these definitions are used by driver but, for now, it is easier to import all. API defines 3 kinds of messages: - Requests (req) are sent from host to chip - Confirmations (cnf) are sent by chip and are

[PATCH v2 07/20] staging: wfx: add IRQ handling

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller bh_work() is in charge to schedule all HIF message from/to chip. On normal operation, when an IRQ is received, driver can get size of next message in control register. In order to save control register access, when chip send a message, it also appends a copy of control

[PATCH v2 03/20] staging: wfx: add I/O API

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller hwio.c provides an abstraction to access different types of register of the chip. Note that only data register (aka FRAME_OUT) and control register are used normal communication. Other registers are only used during chip start up. Signed-off-by: Jérôme Pouiller ---

[PATCH v2 01/20] staging: wfx: add infrastructure for new driver

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Instantiate build infrastructure WFx driver. This driver provides support for Wifi chipset Silicon Labs WF200 and further: https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf This chip support SPI and SDIO bus. SDIO interface has two

[PATCH v2 05/20] staging: wfx: load firmware

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller A firmware is necessary to run the chip. wfx_init_device() is in charge of loading firmware on chip and doing low level initialization. Firmwares for WF200 are available here: https://github.com/SiliconLabs/wfx-firmware/ Note that firmware are encrypted. Driver checks

[PATCH v2 00/20] Add support for Silicon Labs WiFi chip WF200 and further

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Hello all, This series add support for Silicon Labs WiFi chip WF200 and further: https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf This driver is an export from: https://github.com/SiliconLabs/wfx-linux-driver/ I squashed all commits from

[PATCH v2 17/20] staging: wfx: allow to receive 802.11 frames

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Again, this task is more complex than it should since driver try to handle itself power saving of stations. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/data_rx.c | 182 ++

[PATCH v2 12/20] staging: wfx: add HIF commands helpers

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Provide an abstraction for HIF commands. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx.c | 375 +++ drivers/staging/wfx/hif_tx.h | 33 +++ drivers/staging/wfx/hif_tx_mib.h | 281 +++ 3 files

[PATCH v2 10/20] staging: wfx: instantiate mac80211 data

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Allocate a struct ieee80211_hw but do not yet register it. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/debug.c | 12 ++ drivers/staging/wfx/debug.h | 15 drivers/staging/wfx/main.c | 41

[PATCH v2 14/20] staging: wfx: setup initial chip configuration

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller A few tasks remain to be done in order to finish chip initial configuration: - configure chip to use multi-tx confirmation (speed up data transfer) - configure chip to use wake-up feature (save power consumption during runtime) - set hardware

[PATCH v2 02/20] staging: wfx: add support for I/O access

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Introduce bus level communication layer. At this level, 7 registers can be addressed. Notice that SPI driver is able to manage chip reset. SDIO mode relies on an external driver (`mmc-pwrseq`) to reset chip. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bus.h

[PATCH 20/20] staging: wfx: implement the rest of mac80211 API

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_rx.c | 26 + drivers/staging/wfx/data_tx.c | 16 + drivers/staging/wfx/debug.c |2 + drivers/staging/wfx/hif_rx.c | 53 ++ drivers/staging/wfx/hif_tx.c |1 + drivers/staging/wfx/main.c| 137

[PATCH 03/20] staging: wfx: add I/O API

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller hwio.c provides an abstraction to access different types of register of the chip. Note that only data register (aka FRAME_OUT) and control register are used normal communication. Other registers are only used during chip start up. Signed-off-by: Jérôme Pouiller ---

[PATCH 06/20] staging: wfx: import HIF API headers

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller These files are shared with firmware sources. Only a subset of these definitions are used by driver but, for now, it is easier to import all. API defines 3 kinds of messages: - Requests (req) are sent from host to chip - Confirmations (cnf) are sent by chip and are

[PATCH 08/20] staging: wfx: add tracepoints for HIF

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller These tracepoints decode HIF headers and provide more human readable results. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.c | 5 + drivers/staging/wfx/traces.h | 211 +++ 2 files changed, 216 insertions(+) diff --git

[PATCH 18/20] staging: wfx: allow to scan networks

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/bh.c | 2 +- drivers/staging/wfx/hif_rx.c | 13 ++ drivers/staging/wfx/main.c | 5 + drivers/staging/wfx/scan.c | 258 +++

[PATCH 11/20] staging: wfx: allow to send commands to chip

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Chip has multiple input buffers and can handle multiple 802.11 frames in parallel. However, other HIF command must be sent sequentially. wsm_send_cmd() handles these requests. This commit also add send_hif_cmd in debugfs. This file allows to send arbitrary commands to

[PATCH 00/20] Add support for Silicon Labs WiFi chip WF200 and further

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Hello all, This series add support for Silicon Labs WiFi chip WF200 and further: https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf This driver is an export from: https://github.com/SiliconLabs/wfx-linux-driver/ I squashed all commits from

[PATCH 15/20] staging: wfx: add debug files and trace debug events

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Add traces when debug events happen and allow to ask internal information to chip. These features work independently from mac80211. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/debug.c | 122 +++ drivers/staging/wfx/hif_rx.c |

[PATCH 07/20] staging: wfx: add IRQ handling

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller bh_work() is in charge to schedule all HIF message from/to chip. On normal operation, when an IRQ is received, driver can get size of next message in control register. In order to save control register access, when chip send a message, it also appends a copy of control

[PATCH 12/20] staging: wfx: add HIF commands helpers

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Provide an abstraction for HIF commands. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx.c | 375 +++ drivers/staging/wfx/hif_tx.h | 33 +++ drivers/staging/wfx/hif_tx_mib.h | 281 +++

[PATCH 04/20] staging: wfx: add tracepoints for I/O access

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Some tracepoints are useful for debugging. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 6 +- drivers/staging/wfx/debug.c | 10 +++ drivers/staging/wfx/hwio.c | 11 +++ drivers/staging/wfx/traces.h | 154 +++ 4

[PATCH 05/20] staging: wfx: load firmware

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller A firmware is necessary to run the chip. wfx_init_device() is in charge of loading firmware on chip and doing low level initialization. Firmwares for WF200 are available here: https://github.com/SiliconLabs/wfx-firmware/ Note that firmware are encrypted. Driver checks

[PATCH 09/20] staging: wfx: add support for start-up indication

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Once firmware is loaded, it send a first indication to host. This indication signalize that host can start to communicate with firmware. In add, it contains information about chip and firmware (MAC addresses, firmware version, etc...). Signed-off-by: Jérôme Pouiller ---

[PATCH 10/20] staging: wfx: instantiate mac80211 data

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Allocate a struct ieee80211_hw but do not yet register it. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/debug.c | 12 ++ drivers/staging/wfx/debug.h | 15 drivers/staging/wfx/main.c | 41

[PATCH 14/20] staging: wfx: setup initial chip configuration

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller A few tasks remain to be done in order to finish chip initial configuration: - configure chip to use multi-tx confirmation (speed up data transfer) - configure chip to use wake-up feature (save power consumption during runtime) - set hardware

[PATCH 01/20] staging: wfx: add infrastructure for new driver

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Instantiate build infrastructure WFx driver. This driver provides support for Wifi chipset Silicon Labs WF200 and further: https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf This chip support SPI and SDIO bus. SDIO interface has two

[PATCH 02/20] staging: wfx: add support for I/O access

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Introduce bus level communication layer. At this level, 7 registers can be addressed. Notice that SPI driver is able to manage chip reset. SDIO mode relies on an external driver (`mmc-pwrseq`) to reset chip. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bus.h

[PATCH 13/20] staging: wfx: introduce "secure link"

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Chip support encryption of the link between host and chip. This feature is called "secure link". Driver code on github[1] support it. However, it relies on mbedtls for cryptographic functions. So, I decided to not import this feature in current patch. However, in order to

[PATCH 16/20] staging: wfx: allow to send 802.11 frames

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Three things make this task more complex than it should: - Chip necessitate to associate a link-id to each station. It is same thing than association ID but, using 8 bits only. - Rate policy is sent separately from Tx frames - Driver try to handle itself power

[PATCH] staging: board: use appropriate macro to initialize struct

2019-09-19 Thread Aurabindo Jayamohanan
Make code more readable by using macros defined for initializing struct resource Signed-off-by: Aurabindo Jayamohanan --- drivers/staging/board/armadillo800eva.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/staging/board/armadillo800eva.c

Re: [PATCH 00/20] Add support for Silicon Labs WiFi chip WF200 and further

2019-09-19 Thread Arend Van Spriel
On 9/19/2019 1:25 PM, Greg Kroah-Hartman wrote: - I also kept compatibility code for earlier Linux kernel version. I may drop it in future. Maybe I will maintain compatibility with older kernels in a external set of patches. That has to be dropped for the in-kernel version. There

Re: [PATCH RFC 0/2] staging: Support Avalon-MM DMA Interface for PCIe

2019-09-19 Thread Greg KH
On Thu, Sep 19, 2019 at 11:59:11AM +0200, Alexander Gordeev wrote: > The Avalon-MM DMA Interface for PCIe is a design found in hard IPs for > Intel Arria, Cyclone or Stratix FPGAs. It transfers data between on-chip > memory and system memory. This RFC is an attempt to provide a generic API: > >

Re: [PATCH 00/20] Add support for Silicon Labs WiFi chip WF200 and further

2019-09-19 Thread Greg Kroah-Hartman
On Thu, Sep 19, 2019 at 10:52:34AM +, Jerome Pouiller wrote: > From: Jérôme Pouiller > > Hello all, > > This series add support for Silicon Labs WiFi chip WF200 and further: > >https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf > > This driver is an export from: >

[PATCH 17/20] staging: wfx: allow to receive 802.11 frames

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Again, this task is more complex than it should since driver try to handle itself power saving of stations. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/Makefile | 1 + drivers/staging/wfx/data_rx.c | 187 ++

[PATCH v1 2/2] drm/bridge: anx7625: Add anx7625 MIPI to DP bridge driver

2019-09-19 Thread Xin Ji
The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed for portable device. It converts MIPI to DisplayPort 1.3 4K. Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/Makefile |2 +- drivers/gpu/drm/bridge/analogix/Kconfig |6 +

Re: [PATCH v1 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter binding

2019-09-19 Thread Xin Ji
On Thu, Sep 19, 2019 at 08:57:12AM +0200, Neil Armstrong wrote: > Hi, > > On 19/09/2019 08:55, Xin Ji wrote: > > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > > for portable device. It converts MIPI to DisplayPort 1.3 4K. > > > > You can add support to your board with

Re: [PATCH v1 0/2] Add initial support for slimport anx7625

2019-09-19 Thread Xin Ji
On Thu, Sep 19, 2019 at 08:56:01AM +0200, Neil Armstrong wrote: > Hi, > > Please Cc dri-de...@lists.freedesktop.org > > Thanks, > Neil OK, thanks. Xin > > On 19/09/2019 08:51, Xin Ji wrote: > > Hi all, > > > > The following series add initial support for the Slimport ANX7625 > > transmitter,

[PATCH RFC 1/2] staging: avalon-dma: Avalon DMA engine

2019-09-19 Thread Alexander Gordeev
Basic support for Avalon-MM DMA Interface for PCIe found in hard IPs for Intel Arria, Cyclone or Stratix FPGAs. This is an alternative (though minimal functionality) implementation of reference design driver from Intel. Unlike the reference design, the introduced interface allows submitting

[PATCH RFC 0/2] staging: Support Avalon-MM DMA Interface for PCIe

2019-09-19 Thread Alexander Gordeev
The Avalon-MM DMA Interface for PCIe is a design found in hard IPs for Intel Arria, Cyclone or Stratix FPGAs. It transfers data between on-chip memory and system memory. This RFC is an attempt to provide a generic API: typedef void (*avalon_dma_xfer_callback)(void *dma_async_param);

[PATCH RFC 2/2] staging: avalon-drv: Avalon DMA driver

2019-09-19 Thread Alexander Gordeev
This is sample implementation of a driver that uses "avalon-dma" driver interface to perform data transfers between on-chip and system memory in devices using Avalon-MM DMA Interface for PCIe design. Companion user-level tool could be found at g...@github.com:a-gordeev/avalon-drv-tool.git CC:

[PATCH v2] staging: octeon: Use "(uintptr_t)" to cast from pointer to int

2019-09-19 Thread Geert Uytterhoeven
On 32-bit: In file included from drivers/staging/octeon/octeon-ethernet.h:41, from drivers/staging/octeon/ethernet-tx.c:25: drivers/staging/octeon/octeon-stubs.h: In function ‘cvmx_phys_to_ptr’: drivers/staging/octeon/octeon-stubs.h:1205:9: warning: cast to

[PATCH -net] staging: octeon: se "(uintptr_t)" to cast from pointer to int

2019-09-19 Thread Geert Uytterhoeven
On 32-bit: In file included from drivers/staging/octeon/octeon-ethernet.h:41, from drivers/staging/octeon/ethernet-tx.c:25: drivers/staging/octeon/octeon-stubs.h: In function ‘cvmx_phys_to_ptr’: drivers/staging/octeon/octeon-stubs.h:1205:9: warning: cast to

[PATCH v1 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter binding

2019-09-19 Thread Xin Ji
The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed for portable device. It converts MIPI to DisplayPort 1.3 4K. You can add support to your board with binding. Example: anx_bridge: anx7625@58 { compatible = "analogix,anx7625"; reg =

[PATCH v1 0/2] Add initial support for slimport anx7625

2019-09-19 Thread Xin Ji
Hi all, The following series add initial support for the Slimport ANX7625 transmitter, a ultra-low power Full-HD 4K MIPI to DP transmitter designed for portable device. This is the first version upload, any mistakes, please let me know, I will fix it in the next series. Thanks, Xin Xin Ji

Re: [PATCH] net: mdio-octeon: Fix build error and Kconfig warning

2019-09-19 Thread Geert Uytterhoeven
On Thu, Aug 1, 2019 at 1:52 AM Randy Dunlap wrote: > However, there are lots of type/cast warnings in both mdio-octeon and > mdio-cavium: > > ../drivers/net/phy/mdio-octeon.c: In function ‘octeon_mdiobus_probe’: > ../drivers/net/phy/mdio-octeon.c:48:3: warning: cast from pointer to integer > of

Re: [PATCH v1 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter binding

2019-09-19 Thread Neil Armstrong
Hi, On 19/09/2019 08:55, Xin Ji wrote: > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > for portable device. It converts MIPI to DisplayPort 1.3 4K. > > You can add support to your board with binding. > > Example: > anx_bridge: anx7625@58 { >

Re: [PATCH v1 0/2] Add initial support for slimport anx7625

2019-09-19 Thread Neil Armstrong
Hi, Please Cc dri-de...@lists.freedesktop.org Thanks, Neil On 19/09/2019 08:51, Xin Ji wrote: > Hi all, > > The following series add initial support for the Slimport ANX7625 > transmitter, a > ultra-low power Full-HD 4K MIPI to DP transmitter designed for portable > device. > > This is the