[PATCH v3 20/25] staging: ion: fix common struct sg_table related issues

2020-05-05 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of the entries passed to dma_map_sg. The

[PATCH v3 21/25] staging: tegra-vde: fix common struct sg_table related issues

2020-05-05 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of the entries passed to dma_map_sg. The

[PATCH 3/4] staging: most: usb: drop unlikely macros

2020-05-05 Thread Christian Gromm
This patch removes the unlikely macros in the error patch of argument checking, as it has no measurable performance adavantage. Signed-off-by: Christian Gromm Reported-by: Greg Kroah-Hartman --- drivers/staging/most/usb/usb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

[PATCH 1/4] staging: most: usb: remove overcautious parameter checking

2020-05-05 Thread Christian Gromm
The interface pointer passed to a core API function cannot be NULL. This patch removes unnessecary the sanity check of the pointer. Signed-off-by: Christian Gromm Reported-by: Greg Kroah-Hartman --- drivers/staging/most/usb/usb.c | 11 +++ 1 file changed, 3 insertions(+), 8

[PATCH 2/4] staging: most: usb: use EINVAL error code

2020-05-05 Thread Christian Gromm
This patch replaces the error code EIO with EINVAL, when there is no IO happening. Signed-off-by: Christian Gromm --- drivers/staging/most/usb/usb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/most/usb/usb.c b/drivers/staging/most/usb/usb.c

[PATCH 0/4] staging: most: usb: cleanup code

2020-05-05 Thread Christian Gromm
This patch set consolidates the source code appearance by rearranging or removing unnecessary code and makes use of error codes that better signal the exception. Christian Gromm (4): staging: most: usb: remove overcautious parameter checking staging: most: usb: use EINVAL error code

[PATCH 4/4] staging: most: usb: consolidate code

2020-05-05 Thread Christian Gromm
This patch applies the same look and feel when assigning local variables. Signed-off-by: Christian Gromm --- drivers/staging/most/usb/usb.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/most/usb/usb.c b/drivers/staging/most/usb/usb.c index

[RFC] mm/gup.c: Updated return value of {get|pin}_user_pages_fast()

2020-05-05 Thread Souptick Joarder
Currently {get|pin}_user_pages_fast() have 3 return value 0, -errno and no of pinned pages. The only case where these two functions will return 0, is for nr_pages <= 0, which doesn't find a valid use case. But if at all any, then a -ERRNO will be returned instead of 0, which means

[git:media_tree/master] media: staging: media: imx: no need to check return value of debugfs_create functions

2020-05-05 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued: Subject: media: staging: media: imx: no need to check return value of debugfs_create functions Author: Greg Kroah-Hartman Date:Tue Apr 28 19:04:05 2020 +0200 When calling debugfs functions, there

Re: KASAN: slab-out-of-bounds Read in hfa384x_usbin_callback

2020-05-05 Thread Oliver Neukum
Am Freitag, den 20.03.2020, 12:28 -0700 schrieb syzbot: > Hello, > > syzbot found the following crash on: > > HEAD commit:e17994d1 usb: core: kcov: collect coverage from usb comple.. > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: [PATCH 03/15] staging: wfx: fix double free

2020-05-05 Thread Michał Mirosław
On Tue, May 05, 2020 at 02:37:45PM +0200, Jerome Pouiller wrote: > From: Jérôme Pouiller > > In case of error in wfx_probe(), wdev->hw is freed. Since an error > occurred, wfx_free_common() is called, then wdev->hw is freed again. > > Cc: Michał Mirosław > Signed-off-by: Jérôme Pouiller > ---

[PATCH 2/6] staging: vt6656: vnt_get_rtscts_duration_le use ieee80211_rts_duration

2020-05-05 Thread Malcolm Priestley
use the mac80211 ieee80211_rts_duration for RTS frames. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6656/rxtx.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c index

[PATCH 1/6] staging: vt6656: vnt_rxtx_rsvtime_le16 to use ieee80211_generic_frame_duration.

2020-05-05 Thread Malcolm Priestley
ieee80211_generic_frame_duration is the mac80211 equivalent to vnt_get_rsvtime use this to get our frame time. There is a change where there is rrv_time_a and rrv_time_b the frame duration is always the same so both are equal. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6656/rxtx.c

[PATCH 5/6] staging: vt6656: vnt_get_rtscts_rsvtime_le replace with rts/cts duration.

2020-05-05 Thread Malcolm Priestley
rsvtime is the time needed in firmware to process the received frame time in firmware so they can be the same as vnt_get_rts_duration or vnt_get_cts_duration where appropriate. The rts_rrv_time are now all the same timing in vnt_rxtx_rts. So vnt_get_rtscts_rsvtime_le and and vnt_get_frame_time

We bieden financiering tegen een laag tarief.

2020-05-05 Thread Genovese Capital partners
Welkom bij Genovese Capital Partners. We hebben een enorme kredietportefeuille voor het financieren van projecten en bedrijven met een groot volume. De procedures zijn als volgt: - 1-De klant moet een korte samenvatting van het project sturen. Dit moet het totale bedrag bevatten dat nodig is

[staging:staging-testing] BUILD SUCCESS 2e11cc1ab790ccbc7c7f6ed74c0f40b85c561dc7

2020-05-05 Thread kbuild test robot
amigaone_defconfig powerpc ep8248e_defconfig powerpc g5_defconfig powerpc mpc512x_defconfig m68k randconfig-a001-20200505 mips randconfig-a001-20200505 nds32randconfig-a001

Re: [RFC] mm/gup.c: Updated return value of {get|pin}_user_pages_fast()

2020-05-05 Thread John Hubbard
On 2020-05-05 12:14, Souptick Joarder wrote: Currently {get|pin}_user_pages_fast() have 3 return value 0, -errno and no of pinned pages. The only case where these two functions will return 0, is for nr_pages <= 0, which doesn't find a valid use case. But if at all any, then a -ERRNO will be

[PATCH 4/6] staging: vt6656: Split RTS and CTS Duration functions

2020-05-05 Thread Malcolm Priestley
split vnt_get_rtscts_duration_le into vnt_get_rts_duration and vnt_get_cts_duration. The duration's are all the same in vnt_rxtx_rts_g_head. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6656/rxtx.c | 56 ++- 1 file changed, 16 insertions(+), 40

[PATCH 6/6] staging: vt6656: remove difs / sifs adjustments.

2020-05-05 Thread Malcolm Priestley
Now mac89211 is doing frame timing in rxtx these vendor adjustments need to be removed. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6656/card.c | 32 1 file changed, 32 deletions(-) diff --git a/drivers/staging/vt6656/card.c

Re: [RFC] mm/gup.c: Updated return value of {get|pin}_user_pages_fast()

2020-05-05 Thread Souptick Joarder
On Wed, May 6, 2020 at 1:08 AM John Hubbard wrote: > > On 2020-05-05 12:14, Souptick Joarder wrote: > > Currently {get|pin}_user_pages_fast() have 3 return value 0, -errno > > and no of pinned pages. The only case where these two functions will > > return 0, is for nr_pages <= 0, which doesn't

Re: [RFC] mm/gup.c: Updated return value of {get|pin}_user_pages_fast()

2020-05-05 Thread John Hubbard
On 2020-05-05 13:36, Souptick Joarder wrote: On Wed, May 6, 2020 at 1:08 AM John Hubbard wrote: On 2020-05-05 12:14, Souptick Joarder wrote: Currently {get|pin}_user_pages_fast() have 3 return value 0, -errno and no of pinned pages. The only case where these two functions will return 0, is

[staging:staging-linus] BUILD SUCCESS 769acc3656d93aaacada814939743361d284fd87

2020-05-05 Thread kbuild test robot
powerpcadder875_defconfig powerpc ep8248e_defconfig powerpc g5_defconfig powerpc mpc512x_defconfig m68k randconfig-a001-20200505 mips randconfig-a001-20200505 nds32

[PATCH 3/6] staging: vt6656: vnt_get_rtscts_duration_le use ieee80211_ctstoself_duration

2020-05-05 Thread Malcolm Priestley
use the mac80211 ieee80211_ctstoself_duration for CTS to self frames. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6656/rxtx.c | 32 +++- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c

[driver-core:driver-core-testing] BUILD SUCCESS c78c31b374a68be79cb4a03ef5b6c187f034e903

2020-05-05 Thread kbuild test robot
randconfig-a001-20200505 mips randconfig-a001-20200505 m68k randconfig-a001-20200503 mips randconfig-a001-20200503 nds32randconfig-a001-20200503 alpharandconfig-a001-20200503 parisc

[PATCH 07/15] staging: wfx: introduce a way to poll IRQ

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller It is possible to check if an IRQ is ending by polling the control register. This function must used with care: if an IRQ fires while the host reads control register, the IRQ can be lost. However, it could be useful in some cases. Signed-off-by: Jérôme Pouiller ---

[PATCH 08/15] staging: wfx: poll IRQ during init

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller When the chip starts in SDIO mode, the external IRQ (aka Out-Of-Band IRQ) cannot be used before to configure it. Therefore, the first exchanges with the chip have to be done without the OOB IRQ. This patch allow to poll the data until the OOB IRQ is correctly setup. In

[PATCH 05/15] staging: wfx: repair external IRQ for SDIO

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller When used over SDIO bus, device is able to use an external line to signal IRQs (also called Out-Of-Band IRQ). The current code have several problems: 1. The ISR cannot directly acknowledge IRQ since access to the bus is not atomic. This patch use a threaded IRQ to

Re: KASAN: slab-out-of-bounds Read in hfa384x_usbin_callback

2020-05-05 Thread Oliver Neukum
Am Freitag, den 20.03.2020, 12:28 -0700 schrieb syzbot: > Hello, > > syzbot found the following crash on: > > HEAD commit:e17994d1 usb: core: kcov: collect coverage from usb comple.. > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

[PATCH 11/15] staging: wfx: prefer ARRAY_SIZE instead of a magic number

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller When possible, we prefer to use the macro ARRAY_SIZE rather than hard coding the number of elements. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wfx/data_tx.c

[PATCH 15/15] staging: wfx: use kernel types instead of c99 ones

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller The kernel coding style promotes the use of kernel types (u8, u16, u32, etc...) instead of the C99 ones. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx.c | 5 ++--- drivers/staging/wfx/hif_tx_mib.c | 2 +- drivers/staging/wfx/hif_tx_mib.h | 2 +-

[PATCH 13/15] staging: wfx: fix alignements of function prototypes

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller Some function prototypes were not correctly aligned and/or exceed 80 columns. In some other cases, the prototypes were written on more lines than necessary. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c | 3 +-- drivers/staging/wfx/hif_tx.c | 24

[PATCH 12/15] staging: wfx: remove useless header inclusions

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller In order to keep the compilation times reasonable, we try to only include the necessary headers (especially header included from other headers). This patch clean up unnecessary headers inclusions. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_rx.h| 3

[PATCH 14/15] staging: wfx: remove spaces after cast operator

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller The kernel coding style expects no space after cast operator. This patch make the wfx driver compliant with this rule. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_rx.c | 2 +- drivers/staging/wfx/hif_tx.c | 4 ++-- drivers/staging/wfx/hwio.c | 4 ++--

[PATCH 09/15] staging: wfx: fix missing 'static' statement

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller The function get_firmware() is only used from fwio.c. It can be declared static. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/fwio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wfx/fwio.c b/drivers/staging/wfx/fwio.c

[PATCH 10/15] staging: wfx: fix missing 'static' keyword

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller Sparse tool noticed that wfx_enable_beacon() is never used outside of sta.c. Therefore, it can be declared static. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/sta.c

[PATCH] staging: most: usb: add PM functions

2020-05-05 Thread Christian Gromm
This patch adds the implementation of the PM functions resume and suspend. Signed-off-by: Christian Gromm --- drivers/staging/most/usb/usb.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/staging/most/usb/usb.c b/drivers/staging/most/usb/usb.c index

[PATCH 01/15] staging: wfx: add support for hardware revision 2 and further

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller Currently, the driver explicitly exclude support for chip with version number it does not know. However, it unlikely that any futur hardware change would break the driver. Therefore, we prefer to invert the test and only exclude the versions we know the driver does not

[PATCH 04/15] staging: wfx: drop useless check

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller Currently, the ISR check if bus->core is not NULL. But, it is a useless check. bus->core is initialiased before to request IRQ and it is not assigned to NULL when it is released. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bus_sdio.c | 9 +

[PATCH 06/15] staging: wfx: use threaded IRQ with SPI

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller Currently, the SPI implementation use a workqueue to acknowledge IRQ while the SDIO-OOB implementation use a threaded IRQ. The threaded also offers the advantage to allow level triggered IRQs. Uniformize the code and use threaded IRQ in both case. Therefore, prefer level

[PATCH 03/15] staging: wfx: fix double free

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller In case of error in wfx_probe(), wdev->hw is freed. Since an error occurred, wfx_free_common() is called, then wdev->hw is freed again. Cc: Michał Mirosław Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/main.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 00/15] staging: wfx: fix Out-Of-Band IRQ

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller The WF200 can be used on SPI and SDIO. When using SDIO bus, the driver normally use the in band IRQ provided by the SDIO bus. However, WF200 also provides support for a dedicated IRQ line. This feature is used when in-band IRQ does not work or to allows some kind of

[PATCH 02/15] staging: wfx: reduce timeout for chip initial start up

2020-05-05 Thread Jerome Pouiller
From: Jérôme Pouiller The device take a few hundreds of milliseconds to start. However, the current code wait up to 10 second for the chip. We can safely reduce this value to 1 second. Thanks to that change, it is no more necessary to use an interruptible timeout. Signed-off-by: Jérôme Pouiller