[PATCH] staging: vt6656: Use BIT() macro instead of bit shift operator

2020-04-12 Thread Oscar Carter
Use the BIT() macro instead of the bit left shift operator. So the code is more clear. It's safe to remove the casting to u16 type because the value obtained never exceeds 16 bits. So the casting is unnecessary. Signed-off-by: Oscar Carter --- drivers/staging/vt6656/card.c | 8 1 file

[PATCH] staging: mt7621-dts: fix PCIe interrupt mapping

2020-04-12 Thread Sergio Paracuellos
MT7621 has three assigned interrupts for the pcie. This interrupts should properly being mapped taking into account which devices are finally connected in which bus. Because of this current information of these mappings is not enough and should be a little modified to properly got interrupts workin

[PATCH v2] staging: vt6656: formulate rspinf values into tables

2020-04-12 Thread Malcolm Priestley
Four tables can be extracted from RSPINF_A_* based on BB_TYPE_11A or else being GB rates. Preamble short or long tables from fixed size len of 14 for RSPINF_B rates. Remove function vnt_calculate_ofdm_rate and replace with the tables calling RSPINF_A and RSPINF_B separately. Signed-off-by: Malco

Re: [PATCH] staging: vt6656: formulate rspinf values into tables

2020-04-12 Thread Malcolm Priestley
Drop this patch v2 sent Regards Malcolm ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 1/3] iio: kfifo: add iio_device_attach_kfifo_buffer() helper

2020-04-12 Thread Jonathan Cameron
On Mon, 6 Apr 2020 08:12:42 + "Ardelean, Alexandru" wrote: > On Sun, 2020-04-05 at 11:46 +0100, Jonathan Cameron wrote: > > [External] > > > > On Wed, 1 Apr 2020 15:59:34 +0300 > > Alexandru Ardelean wrote: > > > > > This change adds the iio_device_attach_kfifo_buffer() helper/short-hand

Re: [PATCH] staging: mt7621-dts: fix PCIe interrupt mapping

2020-04-12 Thread Sergio Paracuellos
Hi all, On Sun, Apr 12, 2020 at 12:29 PM Sergio Paracuellos wrote: > > MT7621 has three assigned interrupts for the pcie. This > interrupts should properly being mapped taking into account > which devices are finally connected in which bus. Because of > this current information of these mappings

Re: [PATCH 5/8] staging: rtl8188eu: Remove function rtw_modular64()

2020-04-12 Thread Ivan Safonov
Remove function rtw_modular64 as all it does is call do_div. This is wrong. Macro do_div(x, y) change first argument x, but rtw_modular64(x, y) preserve it. + tsf = pmlmeext->TSFValue - do_div(pmlmeext->TSFValue, (pmlmeinfo->bcn_interval*1024)) - 1024; /* us */ round

[PATCH] Staging: comedi: drivers: jr3_pci: fixed two warnings

2020-04-12 Thread carlosteniswarrior
Fixed two checkpatch warnings. Signed-off-by: Carlos Guerrero Alvarez --- drivers/staging/comedi/drivers/jr3_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/jr3_pci.c b/drivers/staging/comedi/drivers/jr3_pci.c index c3c88e6d298f..6bc8

Re: [PATCH] Staging: comedi: drivers: jr3_pci: fixed two warnings

2020-04-12 Thread Joe Perches
On Sun, 2020-04-12 at 16:25 +0200, carlosteniswarr...@gmail.com wrote: > Fixed two checkpatch warnings. by introducing compiler errors. > diff --git a/drivers/staging/comedi/drivers/jr3_pci.c > b/drivers/staging/comedi/drivers/jr3_pci.c [] > @@ -91,8 +91,8 @@ struct jr3_pci_dev_private { > };

Re: [PATCH] Staging: comedi: drivers: jr3_pci: fixed two warnings

2020-04-12 Thread kbuild test robot
Hi, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] [also build test ERROR on v5.6 next-20200412] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base&#x

[PATCH] staging: r8188eu: replace rtw_malloc/copy_from_user sequence with memdup_user

2020-04-12 Thread Ivan Safonov
memdup_user is shorter and expressively. Signed-off-by: Ivan Safonov --- .../staging/rtl8188eu/os_dep/ioctl_linux.c| 22 +-- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl

[staging:staging-testing] BUILD SUCCESS f4f7714f055fa662cf2f27dd0809a8781538e780

2020-04-12 Thread kbuild test robot
randconfig-a002-20200412 x86_64 randconfig-a001-20200412 x86_64 randconfig-a002-20200412 i386 randconfig-a003-20200412 x86_64 randconfig-a003-20200412 i386 randconfig-a001-20200412 mips randconfig-a001-20200412 nds32

Re: [PATCH] media: staging: ipu3: Fix stale list entries on parameter queue failure

2020-04-12 Thread Laurent Pinchart
Hi Tomasz, Thank you for the patch. On Sat, Apr 11, 2020 at 05:37:10PM +, Tomasz Figa wrote: > When queuing parameters fails, current code bails out without deleting > the corresponding vb2 buffer from the driver buffer list, but the buffer > is returned to vb2. This leads to stale list entri

RE: [PATCH] media: staging: ipu3: Fix stale list entries on parameter queue failure

2020-04-12 Thread Cao, Bingbu
Hi, Tomasz, Thanks for your patch. BRs, Bingbu Cao > -Original Message- > From: Tomasz Figa > Sent: Sunday, April 12, 2020 1:37 AM > To: linux-me...@vger.kernel.org > Cc: Sakari Ailus ; Mauro Carvalho Chehab > ; Greg Kroah-Hartman ;

[PATCH 1/2] staging: rtl8192u: Refactoring setKey function

2020-04-12 Thread Camylla Goncalves Cantanheide
Changes of the local variable value and modification in the seletive repetition structure. Signed-off-by: Camylla Goncalves Cantanheide --- drivers/staging/rtl8192u/r8192U_core.c | 52 -- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/drivers/staging/rtl8

[PATCH 2/2] staging: rtl8192u: Renames variables in setKey function

2020-04-12 Thread Camylla Goncalves Cantanheide
Renames the local variables of the setKey function, making them explicit. Signed-off-by: Camylla Goncalves Cantanheide --- drivers/staging/rtl8192u/r8192U_core.c | 48 +- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.

[PATCH] staging: mt7621-pci: fix PCIe interrupt mapping

2020-04-12 Thread Sergio Paracuellos
MT7621 has three assigned interrupts for the pcie. This interrupts should properly being mapped taking into account which devices are finally connected in which bus according to link status. So the irq mappings should be as follows according to link status (three bits indicating which devices are l