Re: [PATCH] staging: rtl8723bs: core: rtw_recv: fix warning Comparison to NULL

2019-05-16 Thread Joe Perches
On Thu, 2019-05-16 at 23:55 +0530, Hariprasad Kelam wrote: > On Thu, May 16, 2019 at 11:00:56AM +0300, Dan Carpenter wrote: > > On Wed, May 15, 2019 at 11:15:36PM +0530, Hariprasad Kelam wrote: > > > @@ -1042,7 +1042,7 @@ sint sta2ap_data_frame( > > > } > > > > > > *psta =

RE: [PATCH 02/11] staging: kpc2000: add separate show functions for kpc_uio_class device attributes.

2019-05-16 Thread Matt Sickler
>-Original Message- >From: devel On Behalf Of >Define separate simple show functions for each attribute instead of having a >one big one containing a chain of conditionals. > >+static ssize_t s2c_dma_ch_show(struct device *dev, >+ struct device_attribute

RE: [PATCH v2 5/9] staging: kpc2000: use atomic_t to assign card numbers.

2019-05-16 Thread Matt Sickler
>-Original Message- >From: devel On Behalf Of >Previously the next card number was assigned from a static int local variable, >which was read and later incremented. This was not thread- safe, so now we >use an atomic_t and atomic_fetch_add instead. Switching to atomic_fetch_add is

[PATCH v2 1/9] staging: kpc2000: removed trailing white-space.

2019-05-16 Thread Jeremy Sowden
Removed trailing white-space from four files. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 62 ++--- drivers/staging/kpc2000/kpc2000/core.c | 98 ++-- drivers/staging/kpc2000/kpc2000/fileops.c| 2 +-

[PATCH v2 5/9] staging: kpc2000: use atomic_t to assign card numbers.

2019-05-16 Thread Jeremy Sowden
Previously the next card number was assigned from a static int local variable, which was read and later incremented. This was not thread- safe, so now we use an atomic_t and atomic_fetch_add instead. Updated TODO. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/TODO | 1 -

[PATCH v2 2/9] staging: kpc2000: add separate show functions for kpc_uio_class device attributes and defined them as read-only.

2019-05-16 Thread Jeremy Sowden
Define separate simple show functions for each attribute instead of having a one big one containing a chain of conditionals. Replaced scnprintf calls with sprintf since all the outputs are short bounded strings or single integers. All of the device attributes are read-only, so use DEVICE_ATTR_RO

[PATCH v2 3/9] staging: kpc2000: declare all kpc_uio_class device attributes as static.

2019-05-16 Thread Jeremy Sowden
The definitions are only used to populate the kpc_uio_class_attrs attribute array, so declare them as static. Fixes the following sparse warnings: drivers/staging/kpc2000/kpc2000/cell_probe.c:220:1: warning: symbol 'dev_attr_offset' was not declared. Should it be static?

[PATCH v2 0/9] staging: kpc2000: another batch of fixes

2019-05-16 Thread Jeremy Sowden
These apply on top of the ones I sent earlier this week, which are currently in the staging-test branch. There's one white-space patch, a number relating to device attributes and one that fixes a race affecting the assignment of card numbers. Jeremy Sowden (9): staging: kpc2000: removed

[PATCH v2 7/9] staging: kpc2000: formatting fixes for kp device attributes.

2019-05-16 Thread Jeremy Sowden
Fixed indentation of cpld_reconfigure store call-back and definition of attribute list. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/kpc2000/core.c | 55 ++ 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/core.c

[PATCH v2 8/9] staging: kpc2000: add separate show functions for readable kp device attributes, and defined them as read-only.

2019-05-16 Thread Jeremy Sowden
Define separate simple show functions for each attribute instead of having a one big one containing a chain of conditionals. Replaced calls to scnprintf with sprintf since all the outputs are single integers. All the readable device attributes are read-only, so use DEVICE_ATTR_RO to define them.

[PATCH v2 9/9] staging: kpc2000: declare all kp device attributes as static.

2019-05-16 Thread Jeremy Sowden
The definitions are only used to populate the kp_attr_list attribute array, so declare them as static. Fixes the following sparse warnings: drivers/staging/kpc2000/kpc2000/core.c:152:1: warning: symbol 'dev_attr_ssid' was not declared. Should it be static?

[PATCH v2 4/9] staging: kpc2000: removed two kpc_uio_class device attributes.

2019-05-16 Thread Jeremy Sowden
The show functions of two attributes output nothing and they are unused. Removed them. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c

[PATCH v2 6/9] staging: kpc2000: simplified kp2000_device retrieval in device attributes call-backs.

2019-05-16 Thread Jeremy Sowden
The call-backs used the same recipe to get the pcard from dev: struct pci_dev *pdev = to_pci_dev(dev); struct kp2000_device *pcard; if (!pdev) return -ENXIO; pcard = pci_get_drvdata(pdev); if (!pcard) return -ENXIO; where to_pci_dev is a wrapper for container_of. However,

[PATCH v2] Staging: bcm2835-camera: Prefer kernel types

2019-05-16 Thread Madhumitha Prabakaran
Fix the warning issued by checkpatch Prefer kernel type 'u32' over 'uint32_t'. Along with that include a blank line after a declaration to maintain Linux kernel coding style. Signed-off-by: Madhumitha Prabakaran --- Changes in v2: - Modified subject line - Included one more change in control.c

Re: [PATCH 02/11] staging: kpc2000: add separate show functions for kpc_uio_class device attributes.

2019-05-16 Thread Jeremy Sowden
On 2019-05-16, at 22:45:33 +0200, Greg KH wrote: > On Thu, May 16, 2019 at 09:04:02PM +0100, Jeremy Sowden wrote: > > Define separate simple show functions for each attribute instead of > > having a one big one containing a chain of conditionals. > > There's nothing wrong with a change of

Re: [PATCH 02/11] staging: kpc2000: add separate show functions for kpc_uio_class device attributes.

2019-05-16 Thread Jeremy Sowden
On 2019-05-16, at 20:17:51 +, Matt Sickler wrote: > >-Original Message- > >From: devel On Behalf Of > >Define separate simple show functions for each attribute instead of having a > >one big one containing a chain of conditionals. > > > >+static ssize_t s2c_dma_ch_show(struct device

Re: [PATCH 02/11] staging: kpc2000: add separate show functions for kpc_uio_class device attributes.

2019-05-16 Thread Greg KH
On Thu, May 16, 2019 at 09:04:02PM +0100, Jeremy Sowden wrote: > Define separate simple show functions for each attribute instead of > having a one big one containing a chain of conditionals. There's nothing wrong with a change of contitionals, if you do it right :) > Signed-off-by: Jeremy

[PATCH 10/11] staging: kpc2000: define read-only kp device attributes as read-only.

2019-05-16 Thread Jeremy Sowden
Most of the device attributes are read-only, so use DEVICE_ATTR_RO to define them. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/kpc2000/core.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/core.c

[PATCH 11/11] staging: kpc2000: declare all kp device attributes as static.

2019-05-16 Thread Jeremy Sowden
The definitions are only used to populate the kp_attr_list attribute array, so declare them as static. Fixes the following sparse warnings: drivers/staging/kpc2000/kpc2000/core.c:152:1: warning: symbol 'dev_attr_ssid' was not declared. Should it be static?

[PATCH 05/11] staging: kpc2000: declare all kpc_uio_class device attributes as static.

2019-05-16 Thread Jeremy Sowden
The definitions are only used to populate the kpc_uio_class_attrs attribute array, so declare them as static. Fixes the following sparse warnings: drivers/staging/kpc2000/kpc2000/cell_probe.c:220:1: warning: symbol 'dev_attr_offset' was not declared. Should it be static?

[PATCH 01/11] staging: kpc2000: removed trailing white-space.

2019-05-16 Thread Jeremy Sowden
Removed trailing white-space from four files. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 62 ++--- drivers/staging/kpc2000/kpc2000/core.c | 98 ++-- drivers/staging/kpc2000/kpc2000/fileops.c| 2 +-

[PATCH 07/11] staging: kpc2000: simplified kp2000_device retrieval in device attributes call-backs.

2019-05-16 Thread Jeremy Sowden
The call-backs used the same recipe to get the pcard from dev: struct pci_dev *pdev = to_pci_dev(dev); struct kp2000_device *pcard; if (!pdev) return -ENXIO; pcard = pci_get_drvdata(pdev); if (!pcard) return -ENXIO; where to_pci_dev is a wrapper for container_of. However,

[PATCH 00/11] staging: kpc2000: another batch of fixes

2019-05-16 Thread Jeremy Sowden
These apply on top of the ones I sent earlier this week, which are currently in the staging-test branch. There's one white-space patch, a number relating to device attributes and one that fixes a race affecting the assignment of card numbers. Jeremy Sowden (11): staging: kpc2000: removed

[PATCH 02/11] staging: kpc2000: add separate show functions for kpc_uio_class device attributes.

2019-05-16 Thread Jeremy Sowden
Define separate simple show functions for each attribute instead of having a one big one containing a chain of conditionals. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 138 --- 1 file changed, 92 insertions(+), 46 deletions(-) diff --git

[PATCH 03/11] staging: kpc2000: define all kpc_uio_class device attributes as read-only.

2019-05-16 Thread Jeremy Sowden
All of the device attributes are read-only, so use DEVICE_ATTR_RO to define them. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c

[PATCH 04/11] staging: kpc2000: removed two kpc_uio_class device attributes.

2019-05-16 Thread Jeremy Sowden
The show functions of two attributes output nothing. Removed them. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c

[PATCH 09/11] staging: kpc2000: formatting fixes for kp device attributes.

2019-05-16 Thread Jeremy Sowden
Fixed indentation of cpld_reconfigure store call-back and definition of attribute list. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/kpc2000/core.c | 51 ++ 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/core.c

[PATCH 08/11] staging: kpc2000: add separate show functions for readable kp device attributes.

2019-05-16 Thread Jeremy Sowden
Define separate simple show functions for each attribute instead of having a one big one containing a chain of conditionals. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/kpc2000/core.c | 91 +++--- 1 file changed, 67 insertions(+), 24 deletions(-) diff --git

[PATCH 06/11] staging: kpc2000: use atomic_t to assign card numbers.

2019-05-16 Thread Jeremy Sowden
Previously the next card number was assigned from a static int local variable, which was read and later incremented. This was not thread- safe, so now we use an atomic_t and atomic_fetch_add instead. Updated TODO. Signed-off-by: Jeremy Sowden --- drivers/staging/kpc2000/TODO | 1 -

Re: [PATCH] staging: rtl8723bs: core: rtw_recv: fix warning Comparison to NULL

2019-05-16 Thread Hariprasad Kelam
On Thu, May 16, 2019 at 11:00:56AM +0300, Dan Carpenter wrote: > On Wed, May 15, 2019 at 11:15:36PM +0530, Hariprasad Kelam wrote: > > @@ -1042,7 +1042,7 @@ sint sta2ap_data_frame( > > } > > > > *psta = rtw_get_stainfo(pstapriv, pattrib->src); > > - if (*psta ==

[PATCH 4/5] iio: adc: ad7606: Add support for software mode for ad7616

2019-05-16 Thread Beniamin Bia
Support for ad7616 running in software was added. In order to activate the software mode, HW_RNGSEL pins must be pulled low. Oversampling and input ranges are now configured in corresponding registers. Ad7616 has multiple scale options when it is configured in software mode. Signed-off-by:

代 鐦 醥

2019-05-16 Thread yRb1
187口216口21564薇 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH 3/5] iio: adc: ad7606: Make SPI register calculation generic and add spi support

2019-05-16 Thread Beniamin Bia
In order to support AD7616 software mode, the spi register access must be added and the calculation of registers address must be generic. The length of address and bit which specifies the read/write operation is different for every device, that is why it was made generic. Signed-off-by: Beniamin

[PATCH 5/5] iio: adc: ad7606: Add debug mode for ad7616

2019-05-16 Thread Beniamin Bia
Support for register access was added for spi devices. Signed-off-by: Beniamin Bia --- drivers/iio/adc/ad7606.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/iio/adc/ad7606.c b/drivers/iio/adc/ad7606.c index f77df3efe43f..b03bdce4fd4e 100644 ---

[PATCH 1/5] iio: adc: ad7606: Move oversampling and scale options to chip info

2019-05-16 Thread Beniamin Bia
The device dependent options which are going to be different for devices which will be supported in the future by this driver, were moved in chip info for a more generic driver. This patch allows supporting more devices by the driver. Also, it is an intermediate step of adding support for ad7616

[PATCH 2/5] iio: adc: ad7606: Add software configuration

2019-05-16 Thread Beniamin Bia
Because this driver will support multiple configurations for software, the software configuration was made generic. Signed-off-by: Beniamin Bia --- drivers/iio/adc/ad7606.c | 40 +--- drivers/iio/adc/ad7606.h | 2 ++ 2 files changed, 39 insertions(+), 3

Re: [RFC] simple_lmk: Introduce Simple Low Memory Killer for Android

2019-05-16 Thread Oleg Nesterov
On 05/15, Sultan Alsawaf wrote: > > On Wed, May 15, 2019 at 04:58:32PM +0200, Oleg Nesterov wrote: > > Could you explain in detail what exactly did you do and what do you see in > > dmesg? > > > > Just in case, lockdep complains only once, print_circular_bug() does > > debug_locks_off() > > so

[PATCH v2] staging: vt6656: returns error code on vnt_int_start_interrupt fail

2019-05-16 Thread Quentin Deslandes
Returns error code from 'vnt_int_start_interrupt()' so the device's private buffers will be correctly freed and 'struct ieee80211_hw' start function will return an error code. Signed-off-by: Quentin Deslandes --- drivers/staging/vt6656/int.c | 4 +++- drivers/staging/vt6656/int.h |

[PATCH] staging: vt6656: returns error code on vnt_int_start_interrupt fail

2019-05-16 Thread Quentin Deslandes
Returns error code from 'vnt_int_start_interrupt()' so the device's private buffers will be correctly freed and 'struct ieee80211_hw' start function will return an error code. Signed-off-by: Quentin Deslandes --- v2: instead of removing status variable, returns its value to caller and handle

Re: [PATCH] staging: vt6656: remove unused variable

2019-05-16 Thread Quentin Deslandes
On Thu, May 16, 2019 at 11:39:51AM +0200, Greg Kroah-Hartman wrote: > On Thu, May 16, 2019 at 09:31:05AM +, Quentin Deslandes wrote: > > Fixed 'set but not used' warning message on a status variable. The > > called function returning the status code 'vnt_start_interrupt_urb()' > > clean up

Re: [PATCH] staging: vt6656: remove unused variable

2019-05-16 Thread Quentin Deslandes
On Thu, May 16, 2019 at 12:19:53PM +0200, Greg Kroah-Hartman wrote: > On Thu, May 16, 2019 at 09:50:38AM +, Quentin Deslandes wrote: > > On Thu, May 16, 2019 at 11:39:51AM +0200, Greg Kroah-Hartman wrote: > > > On Thu, May 16, 2019 at 09:31:05AM +, Quentin Deslandes wrote: > > > > Fixed

Re: [PATCH] staging: vt6656: remove unused variable

2019-05-16 Thread Greg Kroah-Hartman
On Thu, May 16, 2019 at 09:50:38AM +, Quentin Deslandes wrote: > On Thu, May 16, 2019 at 11:39:51AM +0200, Greg Kroah-Hartman wrote: > > On Thu, May 16, 2019 at 09:31:05AM +, Quentin Deslandes wrote: > > > Fixed 'set but not used' warning message on a status variable. The > > > called

Re: [PATCH] staging: vt6656: remove unused variable

2019-05-16 Thread Greg Kroah-Hartman
On Thu, May 16, 2019 at 09:31:05AM +, Quentin Deslandes wrote: > Fixed 'set but not used' warning message on a status variable. The > called function returning the status code 'vnt_start_interrupt_urb()' > clean up after itself and the caller function > 'vnt_int_start_interrupt()' does not

[PATCH] staging: vt6656: remove unused variable

2019-05-16 Thread Quentin Deslandes
Fixed 'set but not used' warning message on a status variable. The called function returning the status code 'vnt_start_interrupt_urb()' clean up after itself and the caller function 'vnt_int_start_interrupt()' does not returns any value. Signed-off-by: Quentin Deslandes ---

[PATCH] Staging: rtl8723bs: hal: Fix comparison to bool in if statements

2019-05-16 Thread Puranjay Mohan
Fix following warnings reported by coccicheck: WARNING: Comparison to bool by using !x in place of (x == false) and x in place of (x == true). Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c | 4 ++-- drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c | 2 +-

Re: [PATCH] staging: Add rtl8821ce PCIe WiFi driver

2019-05-16 Thread Joe Perches
On Wed, 2019-05-15 at 18:39 +0200, Greg KH wrote: > On Wed, May 15, 2019 at 09:06:44PM +0800, Kai-Heng Feng wrote: > > 296 files changed, 206166 insertions(+) > I'm not going to take another 200k lines for a simple wifi driver. Good. Realtek _really_ needs to improve the driver software.

Re: [PATCH] staging: rtl8723bs: core: rtw_recv: fix warning Comparison to NULL

2019-05-16 Thread Dan Carpenter
On Wed, May 15, 2019 at 11:15:36PM +0530, Hariprasad Kelam wrote: > @@ -1042,7 +1042,7 @@ sint sta2ap_data_frame( > } > > *psta = rtw_get_stainfo(pstapriv, pattrib->src); > - if (*psta == NULL) { > + if (!*psta == NULL) {