Re: [PATCH v2] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Dilger, Andreas
On Nov 3, 2016, at 16:49, Andrew Kanner wrote: > > Removed redundant declaration of variable 'tx' in local scope > Fixed: sparse warning: > socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one > socklnd_cb.c:2435:25: originally declared here > >

[PATCH v2] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Andrew Kanner
Removed redundant declaration of variable 'tx' in local scope Fixed: sparse warning: socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one socklnd_cb.c:2435:25: originally declared here Signed-off-by: Andrew Kanner ---

Re: [PATCH] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Andrew Kanner
2016-11-04 1:12 GMT+03:00 Dilger, Andreas : > On Nov 3, 2016, at 15:54, Andrew Kanner wrote: >> >> Changed variable 'tx' name in local scope >> Fixed: sparse warning: >> socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one >>

Re: [PATCH] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Dilger, Andreas
On Nov 3, 2016, at 15:54, Andrew Kanner wrote: > > Changed variable 'tx' name in local scope > Fixed: sparse warning: > socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one > socklnd_cb.c:2435:25: originally declared here Looking at this more closely (or

[PATCH] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Andrew Kanner
Changed variable 'tx' name in local scope Fixed: sparse warning: socklnd_cb.c:2476:41: warning: symbol 'tx' shadows an earlier one socklnd_cb.c:2435:25: originally declared here Signed-off-by: Andrew Kanner --- drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 4

Re: Greybus Future

2016-11-03 Thread Greg KH
On Wed, Nov 02, 2016 at 11:27:54AM -0600, Karim Yaghmour wrote: > > On 11/02/2016 11:24 AM, Alex Elder wrote: > > Yes. I just created a test repository there. If you find > > you have trouble let me know and I'll create one for you. > > Do we actually want do that though? I mean, who owns

[PATCH 02/15] staging: unisys: visorbus: convert client_bus_info sysfs to debugfs

2016-11-03 Thread David Kershner
From: Tim Sell Previously, the sysfs entry (assuming traditional sysfs mountpoint): /sys/bus/visorbus/devices/visorbus/client_bus_info violated kernel conventions by printing more than one item. This along with the fact that the data emitted was diagnostic data

[PATCH 11/15] staging: unisys: visorbus: my_device_changestate: add error response

2016-11-03 Thread David Kershner
The function my_device_changestate was not sending a response if there was an error with the CONTROLVM message. Signed-off-by: David Kershner Reported-by: Greg Kroah-Hartman Reviewed-by: Tim Sell ---

[PATCH 14/15] staging: unisys: visorbus: Adjust formatting of variable assignment

2016-11-03 Thread David Kershner
From: David Binder Adjusts the formatting of a variable assignment to use fewer line breaks, making it follow the convention used elsewhere in the s-Par driver set. Signed-off-by: David Binder Signed-off-by: David Kershner

[PATCH 06/15] staging: unisys: visorbus: bus_destroy do not call bus_epilog

2016-11-03 Thread David Kershner
Have bus_destroy call chipset_bus_destroy directly instead of going through bus_epilog. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 37 +++--- 1 file changed, 33

[PATCH 05/15] staging: unisys: visorbus: bus_create no longer calls bus_epilog

2016-11-03 Thread David Kershner
Have bus_create call chipset_bus_create directly instead of going through the function bus_epilog. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 33 ++ 1 file

[PATCH 13/15] staging: unisys: visorbus: in my_device_destroy don't call device_epilog

2016-11-03 Thread David Kershner
The function my_device_destroy should call chipset_device_destroy directly instead of calling device_epilog. Since this was the last function to use device_epilog that function was removed as well. Signed-off-by: David Kershner Reviewed-by: Tim Sell

[PATCH 04/15] staging: unisys: visorbus: fix double response

2016-11-03 Thread David Kershner
This patch addresses the problem that we were sending double responses back to the s-Par Firmware when processing CONTROLVM Messages. Every message responds individually and the epilog functions would send a response as well. Since a message could delay the response, it was decided to remove the

[PATCH 07/15] staging: unisys: visorbus: bus_destroy add error handling

2016-11-03 Thread David Kershner
Do proper error handling and return error codes instead of just ignoring them. Signed-off-by: David Kershner Reported-by: Greg Kroah-Hartman Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c

[PATCH 15/15] staging: unisys: visorinput: Add default conditions to case statements

2016-11-03 Thread David Kershner
From: David Binder This commit adds a default condition to those case statements that do not already have one. This is done to provide both a logical covering of all conditions, as well as to maintain uniformity with the rest of the Unisys driver set. Signed-off-by:

[PATCH 12/15] staging: unisys: visorbus: my_device_changestate: no longer call device_epilog

2016-11-03 Thread David Kershner
Function my_device_changestate should call chipset_device_changestate directly instead of calling device_epilog. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 36

[PATCH 08/15] staging: unisys: visorbus: bus_create fix error handling

2016-11-03 Thread David Kershner
Add error handling to bus_create function. Signed-off-by: David Kershner Reported-by: Greg Kroah-Hartman Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 60 +- 1

[PATCH 09/15] staging: unisys: visorbus: remove bus_epilog

2016-11-03 Thread David Kershner
Remove the function bus_epilog since no one is calling it. Signed-off-by: David Kershner Reported-by: Greg Kroah-Hartman Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 54

[PATCH 10/15] staging: unisys: visorbus: my_device_create does not call device_epilog

2016-11-03 Thread David Kershner
Don't have my_device_create call device_epilog, have it call chipset_device_create directly instead. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 28 -- 1

[PATCH 00/15] staging: unisys: Remove bus_epilog and device_epilog

2016-11-03 Thread David Kershner
The series addresses several different issues: 1. Fixes several issues discovered by Greg KH's code review: * Converts client_bus_info into a debugfs structure instead of using sysfs. * Refactors the code in the functions processing controlvm messages to avoid calling bus_epilog and

[PATCH 03/15] staging: unisys: visorbus: remove unused initializations

2016-11-03 Thread David Kershner
From: Sameer Wadgaonkar Removed intializations from visorchipset_open(), visorchipset_init() and moved the memset in initialize_controlvm_payload_info() down in case of early returns from the function. Signed-off-by: Sameer Wadgaonkar

[PATCH 01/15] staging: unisys: visorbus: move DEVICE_ATTR_RO defs as-per conventions

2016-11-03 Thread David Kershner
From: Tim Sell The kernel convention is for DEVICE_ATTR_RO() definitions to occur immediately after the functions that implement the attribute behaviors. DEVICE_ATTR_RO definitions in visorbus_main.c have been moved to comply with this convention. Signed-off-by: Tim

[PATCH 9/9] staging: iio: tsl2583: remove redundant write to the control register in taos_probe()

2016-11-03 Thread Brian Masney
taos_probe() calls i2c_smbus_write_byte() to select the control register, however there is no subsequent calls to i2c_smbus_read_byte(). The write call is unnecessary and is removed by this patch. Verified that the driver still functions correctly using a TSL2581 hooked up to a Raspberry Pi 2.

[PATCH 7/9] staging: iio: tsl2583: fix issue with changes to calibscale and int_time not being set on the chip

2016-11-03 Thread Brian Masney
When updating the in_illuminance_calibscale and in_illuminance_integration_time sysfs attributes, these values were not actually written to the chip. The chip would continue to use the old parameters. Extracted out tsl2583_set_als_gain() and tsl2583_set_als_time() functions that are now called

[PATCH 0/9] staging: iio: tsl2583: i2c cleanups

2016-11-03 Thread Brian Masney
This is my next round of staging cleanups to the tsl2581 light driver in IIO staging. It mostly contains cleanups to the i2c code. I verified that the driver still functions correctly using a TSL2581 hooked up to a Raspberry Pi 2. This patch set lays the foundation for moving to the regmap API.

[PATCH 5/9] staging: iio: tsl2583: don't shutdown chip when updating the lux table

2016-11-03 Thread Brian Masney
in_illuminance_lux_table_store() shuts down the chip, updates the contents of the lux table, and then turns the chip back on. The values in lux table are not used by the chip and are only used internally by the driver. It is not necessary to change the power state on the chip. This patch removes

[PATCH 2/9] staging: iio: tsl2583: removed unused code from device probing

2016-11-03 Thread Brian Masney
taos_probe() queries the all of the sensor's registers and loads all of the values into a buffer stored on the stack. Only the chip ID register was actually used. Change the probe function to just query the chip ID register on the device. Verified that the driver still functions correctly using a

[PATCH 6/9] staging: iio: tsl2583: remove redudant i2c call in taos_als_calibrate()

2016-11-03 Thread Brian Masney
taos_als_calibrate() queries the control register to determine if the unit is powered on and has the ADC enabled. It then queries the same register a second time to determine if the ADC reading is valid. This patch removes the redundant i2c_smbus_read_byte_data() call. Verified that the driver

[PATCH 1/9] staging: iio: tsl2583: i2c_smbus_write_byte() / i2c_smbus_read_byte() migration

2016-11-03 Thread Brian Masney
There were several places where the driver would first call i2c_smbus_write_byte() to select the register on the device, and then call i2c_smbus_read_byte() to get the contents of that register. The code would look roughly like: /* Select register */ i2c_smbus_write_byte(client, REGISTER); /*

[PATCH 3/9] staging: iio: tsl2583: fixed ordering of comments

2016-11-03 Thread Brian Masney
in taos_defaults() The comments in taos_defaults() appear after the line of code that they apply to. This patch moves the comments so that they appear before the code. Some of the comments were updated to be more informative. Signed-off-by: Brian Masney ---

[PATCH 4/9] staging: iio: tsl2583: remove redundant power off sequence in taos_chip_on()

2016-11-03 Thread Brian Masney
taos_chip_on() explicitly turns the sensor power on and then writes the 8 registers that are stored in taos_config. The first register in taos_config is the CONTROL register and the configuration is set to turn the power off. The existing state sequence in taos_chip_on() is: - Turn device power

[PATCH 8/9] staging: iio: tsl2583: check if chip is suspended in in_illuminance_calibrate_store

2016-11-03 Thread Brian Masney
in_illuminance_calibrate_store() did not check to see if the chip is suspended. This patch adds the proper check. The return value from taos_als_calibrate() was also not checked in this function, so the proper check was also added while changes are being made here. Signed-off-by: Brian Masney

[PATCH] Staging: rtl8188eu: fix brace coding style issue in rtw_recv.c

2016-11-03 Thread bits4me
Patch to the rtw_recv. file to fix up 2 brace warnings (unnecessary braces) found by the checkpath.pl tool Signed-off-by: Florian Winter --- drivers/staging/rtl8188eu/core/rtw_recv.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

Re: [PATCH] staging: greybus: arche-platform: fix device reference leak

2016-11-03 Thread Vaibhav Hiremath
\ On Tue, Nov 1, 2016 at 4:25 PM, Johan Hovold wrote: > > Make sure to drop the device reference taken by of_find_device_by_node() > before returning from arche_platform_change_state(). > > Note that this code is expected to be removed, but let's fix up the leak > nonetheless.