[PATCH v3] staging: iio: cdc: ad7746: add additional config defines

2016-10-28 Thread Eva Rachel Retuya
Introduce defines for shifting and mask under the config register for better readability. Also, introduce helper variables for index calculation. Signed-off-by: Eva Rachel Retuya --- This patch might cause a conflict with this patch: staging: iio: cdc/ad7746: fix missing return value https://marc

[PATCH 01/10] staging: iio: tsl2583: add of_match table for device tree support

2016-10-28 Thread Brian Masney
Add device tree support for the tsl2583 IIO driver with no custom properties. Signed-off-by: Brian Masney --- .../devicetree/bindings/iio/light/tsl2583.txt | 26 ++ drivers/staging/iio/light/tsl2583.c| 13 +++ 2 files changed, 39 insertions(+) cr

[PATCH 02/10] staging: iio: tsl2583: check for error code from i2c_smbus_read_byte()

2016-10-28 Thread Brian Masney
taos_i2c_read() and taos_als_calibrate() does not check to see if the value returned by i2c_smbus_read_byte() was an error code. This patch adds the appropriate error handling. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 22 +- 1 file changed, 21 ins

[PATCH 03/10] staging: iio: tsl2583: return proper error code instead of -1

2016-10-28 Thread Brian Masney
taos_als_calibrate() has a code path where -1 is returned. This patch changes the code so that a proper error code is returned. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/light/tsl258

[PATCH 07/10] staging: iio: tsl2583: convert illuminance0_calibscale sysfs attr to use iio_chan_spec

2016-10-28 Thread Brian Masney
The illuminance0_calibscale sysfs attribute is not currently created by the IIO core. This patch adds the appropriate mask to iio_chan_spec, along with the appropriate data handling in the read_raw() and write_raw() functions, so that the sysfs attribute is created by the IIO core. With this change

[PATCH 05/10] staging: iio: tsl2583: check return values from taos_chip_{on, off}

2016-10-28 Thread Brian Masney
The return value from taos_chip_on() and taos_chip_off() was not checked in taos_luxtable_store() and taos_probe(). This patch adds proper error checking to these function calls. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 26 ++ 1 file changed,

[PATCH 04/10] staging: iio: tsl2583: remove redundant power_state sysfs attribute

2016-10-28 Thread Brian Masney
IIO devices have a /sys/bus/iio/devices/iio:deviceX/power/ directory that allows viewing and controling various power parameters. The tsl2583 driver also has an additional custom sysfs attribute named power_state that is not needed. This patch removes the redundant power_state sysfs attribute. Sig

[PATCH 06/10] staging: iio: tsl2583: convert to use iio_chan_spec and {read, write}_raw

2016-10-28 Thread Brian Masney
The tsl2583 driver directly creates sysfs attributes that should instead be created by the IIO core on behalf of the driver. This patch adds the iio_chan_spec array, the relevant info_mask elements and the read_raw() and write_raw() functions to take advantage of features provided by the IIO core.

[PATCH 00/10] staging: iio: tsl2583: staging cleanups

2016-10-28 Thread Brian Masney
This patch set begins cleaning up some of the major items that is keeping the tsl2583 driver out of mainline. Highlights include device tree support, converts the driver over to use the iio_chan_spec, improved error handling, and fixes for some concurrency issues. There is more work required to get

[PATCH 09/10] staging: iio: tsl2583: add error code to sysfs store functions

2016-10-28 Thread Brian Masney
in_illuminance_input_target_store() and in_illuminance_calibrate_store() validated the data from userspace, however it would not return an error code to userspace if an invalid value was passed in. This patch changes these functions so that they return -EINVAL if invalid data is passed in. Signed-

[PATCH 10/10] staging: iio: tsl2583: add locking to sysfs attributes

2016-10-28 Thread Brian Masney
in_illuminance_input_target_show(), in_illuminance_input_target_store(), in_illuminance_calibrate_store(), and in_illuminance_lux_table_store() accesses data from the tsl2583_chip struct. Some of these fields can be modified by other parts of the driver concurrently. This patch adds the mutex locki

[PATCH 08/10] staging: iio: tsl2583: use IIO_*_ATTR* macros to create sysfs entries

2016-10-28 Thread Brian Masney
Use the IIO_CONST_ATTR, IIO_DEVICE_ATTR_RW, and IIO_DEVICE_ATTR_WO macros for creating the in_illuminance_calibscale_available, in_illuminance_integration_time_available, in_illuminance_input_target, in_illuminance_calibrate, and in_illuminance_lux_table sysfs entries. Previously these sysfs entrie

[PATCH] staging: most: hdm-usb: add comment

2016-10-28 Thread Christian Gromm
This patch adds a comment to function hdm_configure_channel() to clarify its execution paths as requested by Dan Carpenter. Signed-off-by: Christian Gromm --- drivers/staging/most/hdm-usb/hdm_usb.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/staging/most/hdm-usb/h

Re: [PATCH] staging: most: hdm-usb: add comment

2016-10-28 Thread Greg KH
On Fri, Oct 28, 2016 at 01:11:15PM +0200, Christian Gromm wrote: > This patch adds a comment to function hdm_configure_channel() to clarify > its execution paths as requested by Dan Carpenter. > > Signed-off-by: Christian Gromm "reported-by:" tag please? thanks, greg k-h __

[PATCH v2] staging: most: hdm-usb: add comment

2016-10-28 Thread Christian Gromm
This patch adds a comment to function hdm_configure_channel() to clarify its execution paths. Signed-off-by: Christian Gromm Reported-by: Dan Carpenter --- v2: added Reported-by tag drivers/staging/most/hdm-usb/hdm_usb.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drive

[PATCH] staging: vc04_services: tie up loose ends with dma_map_sg conversion

2016-10-28 Thread Michael Zoran
The conversion to dma_map_sg left a few loose ends. This change ties up those loose ends. 1. Settings the DMA mask is mandatory on 64 bit even though it is optional on 32 bit. Set the mask so that DMA space is always in the lower 32 bit range of data on both platforms. 2. The scatterlist was no

Re: [PATCH] staging: vc04_services: tie up loose ends with dma_map_sg conversion

2016-10-28 Thread Greg KH
On Fri, Oct 28, 2016 at 08:16:51AM -0700, Michael Zoran wrote: > The conversion to dma_map_sg left a few loose ends. This change > ties up those loose ends. > > 1. Settings the DMA mask is mandatory on 64 bit even though it > is optional on 32 bit. Set the mask so that DMA space is always > in t

Re: [PATCH] staging: vc04_services: tie up loose ends with dma_map_sg conversion

2016-10-28 Thread Michael Zoran
On Fri, 2016-10-28 at 11:31 -0400, Greg KH wrote: > On Fri, Oct 28, 2016 at 08:16:51AM -0700, Michael Zoran wrote: > > The conversion to dma_map_sg left a few loose ends.  This change > > ties up those loose ends. > > > > 1. Settings the DMA mask is mandatory on 64 bit even though it > > is option

Re: [PATCH] staging: vc04_services: tie up loose ends with dma_map_sg conversion

2016-10-28 Thread Greg KH
On Fri, Oct 28, 2016 at 08:36:34AM -0700, Michael Zoran wrote: > On Fri, 2016-10-28 at 11:31 -0400, Greg KH wrote: > > On Fri, Oct 28, 2016 at 08:16:51AM -0700, Michael Zoran wrote: > > > The conversion to dma_map_sg left a few loose ends.  This change > > > ties up those loose ends. > > > > > > 1

Re: [PATCH] staging: vc04_services: tie up loose ends with dma_map_sg conversion

2016-10-28 Thread Michael Zoran
On Fri, 2016-10-28 at 11:42 -0400, Greg KH wrote: > On Fri, Oct 28, 2016 at 08:36:34AM -0700, Michael Zoran wrote: > > On Fri, 2016-10-28 at 11:31 -0400, Greg KH wrote: > > > On Fri, Oct 28, 2016 at 08:16:51AM -0700, Michael Zoran wrote: > > > > The conversion to dma_map_sg left a few loose ends.  

[PATCH] staging: dgnc: Fix lines longer than 80 chars.

2016-10-28 Thread Fernando Apesteguia
Done by either unindenting some comments or converting them to multi line comments. This fixes some checkpatch warnings. Signed-off-by: Fernando Apesteguia --- drivers/staging/dgnc/dgnc_neo.h | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/

[PATCH] staging: dgnc: Fix multi-line comment alignment

2016-10-28 Thread Fernando Apesteguia
This fixes a checkpatch warning. Also, change the line above so it is aligned to the others in the same block. Signed-off-by: Fernando Apesteguia --- drivers/staging/dgnc/digi.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/dgnc/digi.h b/drivers/

[PATCH] staging: vc04_services: setup DMA and coherent mask

2016-10-28 Thread Michael Zoran
Setting the DMA mask is optional on 32 bit but is mandatory on 64 bit. Set the DMA mask and coherent to force all DMA to be in the 32 bit address space. This is considered a "good practice" and most drivers already do this. Signed-off-by: Michael Zoran --- .../staging/vc04_services/interface/v

[PATCH] staging: vc04_services: call sg_init_table to init scatterlist

2016-10-28 Thread Michael Zoran
Call the sg_init_table function to correctly initialze the DMA scatterlist. This function is required to completely initialize the list and is mandatory if DMA debugging is enabled in the build configuration. One of the purposes of sg_init_table is to set the magic "cookie" on each list element a

RE: [PATCH] Tools: hv: recover after hv_vss_daemon freeze times out

2016-10-28 Thread KY Srinivasan
> -Original Message- > From: Michael Gissing [mailto:m...@faulpeltz.net] > Sent: Thursday, October 13, 2016 2:27 PM > To: Alex Ng (LIS) > Cc: KY Srinivasan ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > vkuzn...@redhat.com; gre...@li

Re: [PATCH] Staging: ks7010: ks7010_stio: Fixed several coding style issues

2016-10-28 Thread Greg KH
On Sat, Oct 29, 2016 at 03:48:17AM +0530, Manoj Sawai wrote: > Fixed all the "errors" reported by checkpath.pl in ks7010_stio.c "all"? Please break this up into one-patch-per-thing series of patches. And no, as my patchbot told you earlier today, "all coding style issues" is not one thing. thank

[PATCH] Staging: ks7010: ks7010_stio: Fixed several coding style issues

2016-10-28 Thread Manoj Sawai
Fixed all the "errors" reported by checkpath.pl in ks7010_stio.c The "TODO" file ask to take the 80 character limit lightly, so the file still has some warnings about character limit. All the errors have been removed. Signed-off-by: Manoj Sawai --- drivers/staging/ks7010/ks7010_sdio.c | 60 +

[PATCH 1/3] staging: rtl8192e: Standardize test for NULL.

2016-10-28 Thread Elise Lennion
The test for NULL of the return variable of functions was changed from (ret == NULL) to !ret to match the standard. Coccinelle was used with semantic patch: @@ expression e; identifier id, f; statement S; @@ f(...) { <+... id = \(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap \|usb_alloc_urb

[PATCH 2/3] staging: rtl8192u: Standardize test for NULL.

2016-10-28 Thread Elise Lennion
The test for NULL of the return variable of functions was changed from (ret == NULL) to !ret to match the standard. Coccinelle was used with semantic patch: @@ expression e; identifier id, f; statement S; @@ f(...) { <+... id = \(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap \|usb_alloc_urb

[PATCH 3/3] staging: rtl8188eu: Standardize test for NULL.

2016-10-28 Thread Elise Lennion
The test for NULL of the return variable of functions was changed from (ret == NULL) to !ret to match the standard. Coccinelle was used with semantic patch: @@ expression e; identifier id, f; statement S; @@ f(...) { <+... id = \(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap \|usb_alloc_urb