Re: [PATCH] staging: rtl8188eu: os_dep: fix checkpatch issues

2016-10-19 Thread Greg Kroah-Hartman
On Tue, Oct 18, 2016 at 11:30:29PM +0200, Pierre-Yves Kerbrat wrote: > This patch fixes the following: > - fix 2 block comments > - add missing spaces around operators > - remove unnecessary kzalloc fail message > - fix line over 80 char > ... When you find yourself listing all of the different th

Re: [PATCH] Staging: media: bcm2048: Use octal permissions '0444'

2016-10-19 Thread Greg KH
On Wed, Oct 19, 2016 at 01:34:44AM +0530, Shyam Saini wrote: > On Tue, 2016-10-18 at 14:36 +0200, Greg KH wrote: > > On Tue, Oct 18, 2016 at 05:52:21PM +0530, Shyam Saini wrote: > > > > > > On Mon, 2016-10-17 at 21:37 +0200, Greg KH wrote: > > > > > > > > On Mon, Oct 17, 2016 at 10:10:08PM +0530,

Re: [PATCH] [staging/comedi] use kernel integer types

2016-10-19 Thread Greg Kroah-Hartman
On Tue, Oct 18, 2016 at 06:46:05PM +, Thomas Weißschuh wrote: > Signed-off-by: Thomas Weißschuh I can't take patches without any changelog text, sorry. And your subject doesn't make much sense either :( thanks, greg k-h ___ devel mailing list de.

Re: [PATCH] staging: slicoss.ko: slicoss.c: Fixed incorrect argument type

2016-10-19 Thread Dan Carpenter
On Tue, Oct 18, 2016 at 02:03:31PM -0400, Ryan Swan wrote: > sparse produced > warning: incorrect type in argument 2 (different address spaces) > expected void const volatile [noderef] *src > got struct slic_stats *stats > > casting argument 2 to what is expected by memcpy_fromio() fixed this > >

Re: [PATCH] tools: hv: clean up code, remove unnecessary header files and link flags

2016-10-19 Thread Dan Carpenter
On Wed, Oct 19, 2016 at 11:43:28AM +0800, Weibing Zhang wrote: > Remove unnecessary header files and netlink related code as the daemons > do not use netlink to communicate with the kernel now. > Fix a compile warning in snprintf. > Pthread is also not needed. > > Signed-off-by: Weibing Zhang Br

[PATCH 1/3] tools: hv: remove unnecessary link flag

2016-10-19 Thread Weibing Zhang
The link flag pthread is not needed. Signed-off-by: Weibing Zhang --- tools/hv/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/hv/Makefile b/tools/hv/Makefile index a8c4644..0d1e61b 100644 --- a/tools/hv/Makefile +++ b/tools/hv/Makefile @@ -1,9 +1,8 @@ # Mak

[PATCH 2/3] tools: hv: fix a compile warning in snprintf

2016-10-19 Thread Weibing Zhang
hv_kvp_daemon.c: In function ‘kvp_mac_to_if_name’: hv_kvp_daemon.c:705:2: warning: format not a string literal and no format arguments [-Wformat-security] snprintf(dev_id, sizeof(dev_id), kvp_net_dir); ^ hv_kvp_daemon.c:705:2: warning: format not a string literal and no format arguments [-Wfo

[PATCH 3/3] tools: hv: remove unnecessary header files and netlink related code

2016-10-19 Thread Weibing Zhang
Remove unnecessary header files and netlink related code as the daemons do not use netlink to communicate with the kernel now. Signed-off-by: Weibing Zhang --- tools/hv/hv_fcopy_daemon.c | 7 --- tools/hv/hv_kvp_daemon.c | 7 --- 2 files changed, 14 deletions(-) diff --git a/tools/hv/

[PATCH 7/7] iio: light: tsl2583: fix concurrency issue in taos_get_lux()

2016-10-19 Thread Brian Masney
taos_get_lux() calls mutex_trylock(). If the lock could not be acquired, then chip->als_cur_info.lux is returned. The issue is that this value is updated while the mutex is held and could cause a half written value to be returned to the caller. This patch changes the call to mutex_trylock() with mu

[PATCH 5/7] iio: light: tsl2583: check return values from taos_chip_{on, off}

2016-10-19 Thread Brian Masney
The return values from taos_chip_on() and taos_chip_off() was not checked in several places. This patch adds proper error checking to these function calls. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 25 ++--- 1 file changed, 18 insertions(+), 7 dele

[PATCH 6/7] iio: light: tsl2583: add locking to sysfs *_store() functions

2016-10-19 Thread Brian Masney
The sysfs attributes modifies variables that are accessed elsewhere when a mutex is locked. Add locking to the sysfs *_store() functions to avoid a possible race condition when measurements are taken. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 24 ++

[PATCH 2/7] iio: light: tsl2583: change functions to only have a single exit point

2016-10-19 Thread Brian Masney
Change the following functions to only have a single exit point: taos_i2c_read(), taos_als_calibrate(), taos_chip_on(), taos_gain_store(), taos_gain_available_show(), taos_luxtable_store() and taos_probe(). Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 96

[PATCH 3/7] iio: light: tsl2583: use DEVICE_ATTR_{RO, RW, WO} macros

2016-10-19 Thread Brian Masney
Use the DEVICE_ATTR_RO, IIO_DEVICE_ATTR_RW, and IIO_DEVICE_ATTR_WO macros to create the device attributes. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 117 ++-- 1 file changed, 57 insertions(+), 60 deletions(-) diff --git a/drivers/stagi

[PATCH 1/7] iio: light: tsl2583: return proper error code

2016-10-19 Thread Brian Masney
taos_gain_store() and taos_als_calibrate() both have a code path where -1 was returned. This patch changes the code so that a proper error code is returned to make the code consistent with the error paths that are present within those same functions. Signed-off-by: Brian Masney --- drivers/stagi

[PATCH 4/7] iio: light: tsl2583: return proper error code in sysfs store functions

2016-10-19 Thread Brian Masney
illuminance0_calibbias_store(), illuminance0_input_target_store(), and illuminance0_calibrate_store() did not return an error code when an invalid value was passed in. The input was checked to see if the input was valid, however the caller would not be notified that an invalid value was passed in.

Re: [PATCH 3/7] iio: light: tsl2583: use DEVICE_ATTR_{RO, RW, WO} macros

2016-10-19 Thread Peter Meerwald-Stadler
> Use the DEVICE_ATTR_RO, IIO_DEVICE_ATTR_RW, and IIO_DEVICE_ATTR_WO > macros to create the device attributes. great that you work on cleaning this up! the patch does a bit more than is claimed, it also renames stuff; eventually, a proper prefix ('tsl2583_') should be used... maybe you can un

Re: [PATCH 2/7] iio: light: tsl2583: change functions to only have a single exit point

2016-10-19 Thread Dan Carpenter
On Wed, Oct 19, 2016 at 06:32:05AM -0400, Brian Masney wrote: > Change the following functions to only have a single exit point: > taos_i2c_read(), taos_als_calibrate(), taos_chip_on(), > taos_gain_store(), taos_gain_available_show(), taos_luxtable_store() > and taos_probe(). > What's the point o

Re: [PATCH 5/7] iio: light: tsl2583: check return values from taos_chip_{on, off}

2016-10-19 Thread Dan Carpenter
On Wed, Oct 19, 2016 at 06:32:08AM -0400, Brian Masney wrote: > @@ -775,14 +778,20 @@ static ssize_t illuminance0_lux_table_store(struct > device *dev, > goto luxable_store_done; > } > > - if (chip->taos_chip_status == TSL258X_CHIP_WORKING) > - taos_chip_off(i

Re: [PATCH 3/7] iio: light: tsl2583: use DEVICE_ATTR_{RO, RW, WO} macros

2016-10-19 Thread Dan Carpenter
What does illuminance0_ mean? Can we remove that? regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH] staging: unisys: visorbus: visorchannel: Refactor locking code to be statically deterministic.

2016-10-19 Thread Cathal Mullaney
This patch makes locking in visorchannel_signalempty statically deterministic. As a result this patch fixes the sparse warning: Context imbalance in 'visorchannel_signalempty' - different lock contexts for basic block. The logic of the locking code doesn't change but the layout of the original c

Re: [PATCH 6/7] iio: light: tsl2583: add locking to sysfs *_store() functions

2016-10-19 Thread Dan Carpenter
On Wed, Oct 19, 2016 at 06:32:09AM -0400, Brian Masney wrote: > @@ -778,6 +796,8 @@ static ssize_t illuminance0_lux_table_store(struct device > *dev, > goto luxable_store_done; > } > > + mutex_lock(&chip->als_mutex); > + > if (chip->taos_chip_status == TSL258X_CHIP_

Re: [PATCH 6/7] iio: light: tsl2583: add locking to sysfs *_store() functions

2016-10-19 Thread Dan Carpenter
I appologize for laughing, but I am still secretly amused in my heart. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 2/7] iio: light: tsl2583: change functions to only have a single exit point

2016-10-19 Thread Brian Masney
On Wed, Oct 19, 2016 at 02:08:59PM +0300, Dan Carpenter wrote: > On Wed, Oct 19, 2016 at 06:32:05AM -0400, Brian Masney wrote: > > Change the following functions to only have a single exit point: > > taos_i2c_read(), taos_als_calibrate(), taos_chip_on(), > > taos_gain_store(), taos_gain_available_s

[PATCH] staging: greybus: es2: fix arpc request size

2016-10-19 Thread Rui Miguel Silva
Fix size field of arpc message request by using the header size and not the pointer size. Signed-off-by: Rui Miguel Silva --- drivers/staging/greybus/es2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c index 8eab

Re: [PATCH 5/7] iio: light: tsl2583: check return values from taos_chip_{on, off}

2016-10-19 Thread Brian Masney
On Wed, Oct 19, 2016 at 02:22:49PM +0300, Dan Carpenter wrote: > On Wed, Oct 19, 2016 at 06:32:08AM -0400, Brian Masney wrote: > > @@ -775,14 +778,20 @@ static ssize_t illuminance0_lux_table_store(struct > > device *dev, > > goto luxable_store_done; > > } > > > > - if (chip->ta

Re: [PATCH] staging: greybus: es2: fix arpc request size

2016-10-19 Thread Johan Hovold
On Wed, Oct 19, 2016 at 01:44:25PM +0100, Rui Miguel Silva wrote: > Fix size field of arpc message request by using the header size and not > the pointer size. > > Signed-off-by: Rui Miguel Silva Good catch, Rui. Guess the firmware is missing some sanity checks. Reviewed-by: Johan Hovold Than

Re: [PATCH 2/7] iio: light: tsl2583: change functions to only have a single exit point

2016-10-19 Thread Dan Carpenter
On Wed, Oct 19, 2016 at 08:38:16AM -0400, Brian Masney wrote: > On Wed, Oct 19, 2016 at 02:08:59PM +0300, Dan Carpenter wrote: > > On Wed, Oct 19, 2016 at 06:32:05AM -0400, Brian Masney wrote: > > > Change the following functions to only have a single exit point: > > > taos_i2c_read(), taos_als_cal

[PATCH v2 0/7] Tests for sync infrastructure

2016-10-19 Thread Emilio López
Hello everyone, This is a series of tests to exercise the sync kernel infrastructure. It is meant to be a test suite for the work Gustavo has been doing to destage it. These tests were originally part of a battery of tests shipping with Android's libsync that were rewritten to use the new userspa

[PATCH v2 1/7] selftest: sync: basic tests for sw_sync framework

2016-10-19 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit lays the ground for future tests, as well as includes tests for a variety of basic allocation commands. Signed-off-by: Emilio López --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/sync/.gitig

[PATCH v2 2/7] selftest: sync: fence tests for sw_sync framework

2016-10-19 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for basic fence creation. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + tools/testing/selftests/sync/sync_fence.c | 132 ++ tools/testing/self

[PATCH v2 3/7] selftest: sync: merge tests for sw_sync framework

2016-10-19 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for basic merge operations. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + tools/testing/selftests/sync/sync_merge.c | 60 +++ tools/testing/sel

[PATCH v2 5/7] selftest: sync: stress test for parallelism

2016-10-19 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a stress test that invokes operations in parallel. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + .../selftests/sync/sync_stress_parallelism.c | 111

[PATCH v2 4/7] selftest: sync: wait tests for sw_sync framework

2016-10-19 Thread Emilio López
These tests are based on the libsync test suite from Android. This commit includes tests for waiting on fences. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile| 1 + tools/testing/selftests/sync/sync_test.c | 1 + tools/testing/selftests/sync/sync_wait.c | 91

Re: [PATCH 5/7] iio: light: tsl2583: check return values from taos_chip_{on, off}

2016-10-19 Thread Dan Carpenter
On Wed, Oct 19, 2016 at 08:48:32AM -0400, Brian Masney wrote: > Ok, I'll rework my patch series to stick with the direct returns. I > personally prefer that approach. I was using the gotos since I thought > that was standard convention in the kernel. > It *should* but "goto unlock;" When you can

[PATCH v2 6/7] selftest: sync: stress consumer/producer test

2016-10-19 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a stress test that replicates a consumer/producer pattern. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile | 1 + .../testing/selftests/sync/sync_stress_consumer.c | 185

[PATCH v2 7/7] selftest: sync: stress test for merges

2016-10-19 Thread Emilio López
This test is based on the libsync test suite from Android. This commit includes a test to stress merge operations. Signed-off-by: Emilio López --- tools/testing/selftests/sync/Makefile| 1 + tools/testing/selftests/sync/sync_stress_merge.c | 115 +++ tools/testi

Re: [PATCH 5/7] iio: light: tsl2583: check return values from taos_chip_{on, off}

2016-10-19 Thread Dan Carpenter
On Wed, Oct 19, 2016 at 03:54:23PM +0300, Dan Carpenter wrote: > On Wed, Oct 19, 2016 at 08:48:32AM -0400, Brian Masney wrote: > > Ok, I'll rework my patch series to stick with the direct returns. I > > personally prefer that approach. I was using the gotos since I thought > > that was standard con

Re: [PATCH 3/7] iio: light: tsl2583: use DEVICE_ATTR_{RO, RW, WO} macros

2016-10-19 Thread Brian Masney
On Wed, Oct 19, 2016 at 12:47:13PM +0200, Peter Meerwald-Stadler wrote: > > > Use the DEVICE_ATTR_RO, IIO_DEVICE_ATTR_RW, and IIO_DEVICE_ATTR_WO > > macros to create the device attributes. > > great that you work on cleaning this up! > > the patch does a bit more than is claimed, it also renames

Re: [PATCH 3/7] iio: light: tsl2583: use DEVICE_ATTR_{RO, RW, WO} macros

2016-10-19 Thread Brian Masney
On Wed, Oct 19, 2016 at 02:26:27PM +0300, Dan Carpenter wrote: > What does illuminance0_ mean? Can we remove that? I left the names of the existing sysfs attributes intact to not break any existing users of the driver. I'm not sure why the original author named it that way. Brian __

Re: [PATCH 3/7] iio: light: tsl2583: use DEVICE_ATTR_{RO, RW, WO} macros

2016-10-19 Thread Dan Carpenter
On Wed, Oct 19, 2016 at 09:08:30AM -0400, Brian Masney wrote: > On Wed, Oct 19, 2016 at 02:26:27PM +0300, Dan Carpenter wrote: > > What does illuminance0_ mean? Can we remove that? > > I left the names of the existing sysfs attributes intact to not break > any existing users of the driver. I'm no

[PATCH -next] greybus: es2: fix error return code in ap_probe()

2016-10-19 Thread Wei Yongjun
From: Wei Yongjun Fix to return a negative error code from the es2_arpc_in_enable() error handling case instead of 0, as done elsewhere in this function. Fixes: 9d9d3777a9db ("greybus: es2: Add a new bulk in endpoint for APBridgeA RPC") Signed-off-by: Wei Yongjun --- drivers/staging/greybus/es

Re: [PATCH -next] greybus: es2: fix error return code in ap_probe()

2016-10-19 Thread Johan Hovold
On Wed, Oct 19, 2016 at 01:17:53PM +, Wei Yongjun wrote: > From: Wei Yongjun > > Fix to return a negative error code from the es2_arpc_in_enable() error > handling case instead of 0, as done elsewhere in this function. > > Fixes: 9d9d3777a9db ("greybus: es2: Add a new bulk in endpoint for >

Re: [PATCH] staging: greybus: es2: fix arpc request size

2016-10-19 Thread Viresh Kumar
On 19-10-16, 13:44, Rui Miguel Silva wrote: > Fix size field of arpc message request by using the header size and not > the pointer size. > > Signed-off-by: Rui Miguel Silva > --- > drivers/staging/greybus/es2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/st

[PATCH net-next] hv_netvsc: fix a race between netvsc_send() and netvsc_init_buf()

2016-10-19 Thread Vitaly Kuznetsov
Fix in commit 880988348270 ("hv_netvsc: set nvdev link after populating chn_table") turns out to be incomplete. A crash in netvsc_get_next_send_section() is observed on mtu change when the device is under load. The race I identified is: if we get to netvsc_send() after we set net_device_ctx->nvdev

Re: [PATCH -next] greybus: es2: fix error return code in ap_probe()

2016-10-19 Thread Viresh Kumar
On Wed, Oct 19, 2016 at 6:47 PM, Wei Yongjun wrote: > From: Wei Yongjun > > Fix to return a negative error code from the es2_arpc_in_enable() error > handling case instead of 0, as done elsewhere in this function. > > Fixes: 9d9d3777a9db ("greybus: es2: Add a new bulk in endpoint for > APBridgeA

RE: [PATCH] tools: hv: clean up code, remove unnecessary header files and link flags

2016-10-19 Thread KY Srinivasan
> -Original Message- > From: Weibing Zhang [mailto:atheism.zh...@gmail.com] > Sent: Tuesday, October 18, 2016 8:43 PM > To: KY Srinivasan ; Haiyang Zhang > > Cc: de...@linuxdriverproject.org; linux-ker...@vger.kernel.org; Weibing > Zhang > Subject: [PATCH] tools: hv: clean up code, remo

[PATCH 01/37] staging:r8188eu: remove get_rxmem function

2016-10-19 Thread Ivan Safonov
This simple one-line function used only once, and precvframe always not NULL. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_recv.c| 2 +- drivers/staging/rtl8188eu/include/rtw_recv.h | 8 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/stag

[PATCH 32/37] staging:r8188eu: remove SET_EARLYMODE_* definitions

2016-10-19 Thread Ivan Safonov
These definitions does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtl8188e_xmit.h | 16 1 file changed, 16 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtl8188e_xmit.h b/drivers/staging/rtl8188eu/include/rtl8188e_xmit.h index 662

[PATCH 26/37] staging:r8188eu: remove recvframe_pull function

2016-10-19 Thread Ivan Safonov
skb_pull used instead. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_recv.c| 8 drivers/staging/rtl8188eu/include/rtw_recv.h | 17 - 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_recv.c b/dri

[PATCH 10/37] staging:r8188eu: remove type cast for first argument of memset

2016-10-19 Thread Ivan Safonov
Typecasting here is unnecessary. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ap.c| 2 +- drivers/staging/rtl8188eu/core/rtw_efuse.c | 2 +- drivers/staging/rtl8188eu/core/rtw_mlme.c | 10 +- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 4 ++-

[PATCH 23/37] staging:r8188eu: update rx_tail and pkt->tail synchronously

2016-10-19 Thread Ivan Safonov
To replace rx_tail with pkt->tail. Now pkt->tail is equal to rx_tail and pkt->len is equal to len. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8188eu/inc

[PATCH 24/37] staging:r8188eu: remove rx_tail member of recv_frame structure

2016-10-19 Thread Ivan Safonov
rx_end replaced with pkt->tail. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_recv.c| 2 +- drivers/staging/rtl8188eu/include/rtw_recv.h | 3 --- drivers/staging/rtl8188eu/os_dep/recv_linux.c| 2 +- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 1 - 4 fi

[PATCH 03/37] staging:r8188eu: remove skb cloning after netdev_alloc_skb fail

2016-10-19 Thread Ivan Safonov
In accordance with the KISS principle. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c b/drivers/staging/rtl8188eu/os_dep/us

[PATCH 33/37] staging:r8188eu: remove rtw_calculate_wlan_pkt_size_by_attribue function

2016-10-19 Thread Ivan Safonov
This function does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_xmit.c| 18 -- drivers/staging/rtl8188eu/include/rtw_xmit.h | 1 - 2 files changed, 19 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/staging/rtl8

[PATCH 13/37] staging:r8188eu: remove debug messages after memory allocation failed

2016-10-19 Thread Ivan Safonov
These messages are redundant. Also break rtw_usb_if1_init function if HalData allocation failed. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 4 +--- drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c | 4 +--- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c

[PATCH 05/37] staging:r8188eu: remove mp_mode member of odm_dm_struct and odm_dm_struct structures

2016-10-19 Thread Ivan Safonov
Value of this variable always is 0. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_pwrctrl.c | 8 +--- drivers/staging/rtl8188eu/hal/odm.c| 3 +-- drivers/staging/rtl8188eu/hal/odm_RTL8188E.c | 19 --- drivers/staging/rtl8188eu/hal/phy.c

[PATCH 16/37] staging:r8188eu: change recvframe_pull last argument type

2016-10-19 Thread Ivan Safonov
uint instead of int used. This function always called with positive sz argument. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl818

[PATCH 14/37] staging:r8188eu: remove ieee80211_is_empty_essid function

2016-10-19 Thread Ivan Safonov
This function is unused. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 17 - drivers/staging/rtl8188eu/include/ieee80211.h | 3 --- 2 files changed, 20 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/stagin

[PATCH 22/37] staging:r8188eu: change recvframe_pull_tail type to void

2016-10-19 Thread Ivan Safonov
Return value of this function does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl8188eu/include/rtw_recv.h index

[PATCH 25/37] staging:r8188eu: remove len member of recv_frame structure

2016-10-19 Thread Ivan Safonov
len replaced with pkt->len. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c| 14 +++--- drivers/staging/rtl8188eu/core/rtw_recv.c| 23 +-- drivers/staging/rtl8188eu/core/rtw_security.c| 6 +++--- drivers/staging/rtl8188eu

[PATCH 04/37] staging:r8188eu: remove WIFI_MP_* definitions and all corresponding code

2016-10-19 Thread Ivan Safonov
fw_state member of mlme_priv never obtain WIFI_MP_STATE value. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 4 --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 5 --- drivers/staging/rtl8188eu/core/rtw_recv.c | 42 +- drivers

[PATCH 36/37] staging:r8188eu: remove unused structures from include/rtw_mlme.h

2016-10-19 Thread Ivan Safonov
Also SCAN_RESULT_TYPE enum removed. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_mlme.h | 188 --- 1 file changed, 188 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_mlme.h b/drivers/staging/rtl8188eu/include/rtw_mlme.h index d2

[PATCH 18/37] staging:r8188eu: remove rx_data member of recv_frame structure

2016-10-19 Thread Ivan Safonov
rx_data replaced with pkt->data. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c| 38 - drivers/staging/rtl8188eu/core/rtw_recv.c| 54 drivers/staging/rtl8188eu/core/rtw_security.c| 6 +-- drivers/staging/rtl

[PATCH 17/37] staging:r8188eu: update pkt->data synchronously with rx_data

2016-10-19 Thread Ivan Safonov
To replace rx_data with pkt->data. Now pkt->data is equal to rx_data. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl8188eu/include/rtw_recv.h inde

[PATCH 20/37] staging:r8188eu: change recvframe_put last argument type

2016-10-19 Thread Ivan Safonov
uint instead of int used. This function always called with positive sz argument. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl818

[PATCH 35/37] staging:r8188eu: remove clr_fwstate* functions

2016-10-19 Thread Ivan Safonov
These functions are unused. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_mlme.h | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_mlme.h b/drivers/staging/rtl8188eu/include/rtw_mlme.h index 47a3f2d..d27b2ad 100

[PATCH 28/37] staging:r8188eu: remove recvframe_pull_tail function

2016-10-19 Thread Ivan Safonov
skb_trim used instead. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_recv.c| 8 +--- drivers/staging/rtl8188eu/include/rtw_recv.h | 16 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_recv.c b/driv

[PATCH 15/37] staging:r8188eu: remove rx_head member of recv_frame structure

2016-10-19 Thread Ivan Safonov
Value of rx_head used only to produce debug output. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 1 - drivers/staging/rtl8188eu/os_dep/recv_linux.c| 4 ++-- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 1 - 3 files changed, 2 insertions(+), 4 delet

[PATCH 07/37] staging:r8188eu: remove is2t argument if the phy_iq_calibrate function

2016-10-19 Thread Ivan Safonov
is2t argument of this function is constant. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/hal/phy.c | 101 +++- 1 file changed, 6 insertions(+), 95 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/phy.c b/drivers/staging/rtl8188eu/hal/phy.c in

[PATCH 34/37] staging:r8188eu: remove update_bcn member of mlme_priv structure

2016-10-19 Thread Ivan Safonov
Value of this member does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ap.c | 7 --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 1 - drivers/staging/rtl8188eu/include/rtw_mlme.h | 1 - 3 files changed, 9 deletions(-) diff --git a/drivers/staging/r

[PATCH 08/37] staging:r8188eu: refactor path_adda_on function

2016-10-19 Thread Ivan Safonov
Remove is_path_a_on and is2t arguments. These argument always are constant. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/hal/phy.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/phy.c b/drivers/staging/rtl8188eu/hal

[PATCH 09/37] staging:r8188eu: remove is2t argument of phy_lc_calibrate function

2016-10-19 Thread Ivan Safonov
is2t is constant. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/hal/phy.c | 21 +++-- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/phy.c b/drivers/staging/rtl8188eu/hal/phy.c index 6b70d09..93dbb395 100644 --- a/drivers

[PATCH 19/37] staging:r8188eu: remove rx_end member of recv_frame structure

2016-10-19 Thread Ivan Safonov
rx_end replaced with pkt->end. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 3 +-- drivers/staging/rtl8188eu/os_dep/recv_linux.c| 4 ++-- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH 12/37] staging:r8188eu: remove ieee80211_get_hdrlen function

2016-10-19 Thread Ivan Safonov
This function does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 27 -- drivers/staging/rtl8188eu/include/ieee80211.h | 1 - 2 files changed, 28 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/dri

[PATCH 29/37] staging:r8188eu: take out stripping of iv and icv space from wlanhdr_to_ethhdr function

2016-10-19 Thread Ivan Safonov
Prepare to replacing wlanhdr_to_ethhdr by ieee80211_data_to_8023. This stripping procedure placed into new strip_iv_icv function. Also strip_iv_icv used inside unprotect_frame. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_recv.c| 27 +++ drivers/

[PATCH 21/37] staging:r8188eu: change recvframe_pull_tail last argument type

2016-10-19 Thread Ivan Safonov
uint instead of int used. This function always called with positive sz argument. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl818

[PATCH 37/37] staging:r8188eu: remove P2P_* enumerations.

2016-10-19 Thread Ivan Safonov
Driver does not use this definitions. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/wifi.h | 73 1 file changed, 73 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/wifi.h b/drivers/staging/rtl8188eu/include/wifi.h index 9e08e68..

[PATCH 02/37] staging:r8188eu: remove device assignment after netdev_alloc_skb call

2016-10-19 Thread Ivan Safonov
netdev_alloc_skb function already set dev member of pkt_copy. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c b/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c i

[PATCH 06/37] staging:r8188eu: refactor rtl88eu_phy_iq_calibrate function

2016-10-19 Thread Ivan Safonov
is2t local variable always is false. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/hal/phy.c | 57 + 1 file changed, 1 insertion(+), 56 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/phy.c b/drivers/staging/rtl8188eu/hal/phy.c index 8462

[PATCH 27/37] staging:r8188eu: remove recvframe_put function

2016-10-19 Thread Ivan Safonov
skb_put used instead. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_recv.c| 2 +- drivers/staging/rtl8188eu/include/rtw_recv.h | 17 - drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 2 +- 3 files changed, 2 insertions(+), 19 deletions(-) di

[PATCH 30/37] staging:r8188eu: remove eth_type member of rx_pkt_attrib structure

2016-10-19 Thread Ivan Safonov
Prepare to replacing wlanhdr_to_ethhdr by ieee80211_data_to_8023. Calculate it locally. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_recv.c| 26 -- drivers/staging/rtl8188eu/include/rtw_recv.h | 2 -- 2 files changed, 20 insertions(+), 8 deletio

[PATCH 11/37] staging:r8188eu: remove is_(multicast|broadcast)_mac_addr

2016-10-19 Thread Ivan Safonov
is_multicast_ether_addr used instead. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_recv.c | 3 +-- drivers/staging/rtl8188eu/include/ieee80211.h | 11 --- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_recv.c

[PATCH 31/37] staging:r8188eu: remove pscanned member of mlme_priv structure

2016-10-19 Thread Ivan Safonov
This member used only as local variable. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 2 -- drivers/staging/rtl8188eu/core/rtw_mlme.c | 11 +-- drivers/staging/rtl8188eu/include/rtw_mlme.h | 1 - drivers/staging/rtl8188eu/os_dep/ioctl_linux.c

[PATCH 1/5] staging: wlan-ng: Replace data type declaration with variable of same type in cfg80211.c

2016-10-19 Thread Sergio Paracuellos
sizeof(var) instead of sizeof(struct XXX) is preferred. Fix it in cfg80211.c file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.

[PATCH 01/12] staging: wlan-ng: avoid CamelCase: HFA384x_RID_CNFAPBCNint

2016-10-19 Thread Sergio Paracuellos
Replace CamelCase define to comply with the standard kernel coding style. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h| 2 +- drivers/staging/wlan-ng/prism2mgmt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x

[PATCH 02/12] staging: wlan-ng: avoid CamelCase: hfa384x_HostScanRequest_data

2016-10-19 Thread Sergio Paracuellos
Replace CamelCase struct name and fields with underscores to comply with the standard kernel coding style. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h| 6 +++--- drivers/staging/wlan-ng/prism2mgmt.c | 8 2 files changed, 7 insertions(+), 7 deletions(-)

[PATCH 2/5] staging: wlan-ng: Replace data type declaration with variable of same type in hfa384x_usb.c

2016-10-19 Thread Sergio Paracuellos
sizeof(var) instead of sizeof(struct XXX) is preferred. Fix it in hfa384x_usb.c file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/h

[PATCH 06/12] staging: wlan-ng: avoid CamelCase: hfa384x_ChInfoResult

2016-10-19 Thread Sergio Paracuellos
Replace CamelCase struct name with underscores to comply with the standard kernel coding style. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/

[PATCH 05/12] staging: wlan-ng: avoid CamelCase: hfa384x_CommTallies16

2016-10-19 Thread Sergio Paracuellos
Replace CamelCase struct name with underscores to comply with the standard kernel coding style. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wl

[PATCH 09/12] staging: wlan-ng: avoid CamelCase: hfa384x_LinkStatus

2016-10-19 Thread Sergio Paracuellos
Replace CamelCase struct name with underscores to comply with the standard kernel coding style. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wl

[PATCH 12/12] staging: wlan-ng: avoid CamelCase: hfa384x_KeyIDChanged

2016-10-19 Thread Sergio Paracuellos
Replace CamelCase struct name with underscores to comply with the standard kernel coding style. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wl

[PATCH 11/12] staging: wlan-ng: avoid CamelCase: hfa384x_PSUserCount

2016-10-19 Thread Sergio Paracuellos
Replace CamelCase struct name with underscores to comply with the standard kernel coding style. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wl

[PATCH] staging: wlan-ng: Replace data type declaration with variable of same type in prism2mgmt.c

2016-10-19 Thread Sergio Paracuellos
sizeof(var) instead of sizeof(struct XXX) is preferred. It also fix the following checkpatch.pl script warning: WARNING: line over 80 characters Fix this two in prism2mgmt.c file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/prism2mgmt.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH 00/12] Avoid CamelCases in hfa384x.h

2016-10-19 Thread Sergio Paracuellos
This patchset fix CamelCases in hfa384x.h header file. This file is free of CamelCases now. Sergio Paracuellos (12): staging: wlan-ng: avoid CamelCase: HFA384x_RID_CNFAPBCNint staging: wlan-ng: avoid CamelCase: hfa384x_HostScanRequest_data staging: wlan-ng: avoid CamelCase: hfa384x_WPAData

[PATCH RESEND 00/12] Avoid CamelCases in hfa384x.h

2016-10-19 Thread Sergio Paracuellos
This patchset fix CamelCases in hfa384x.h header file. This file is free of CamelCases now. This patch series are resent because an mix error in the previous sent. Sergio Paracuellos (12): staging: wlan-ng: avoid CamelCase: HFA384x_RID_CNFAPBCNint staging: wlan-ng: avoid CamelCase: hfa384x_H

[PATCH RESEND 02/12] staging: wlan-ng: avoid CamelCase: hfa384x_HostScanRequest_data

2016-10-19 Thread Sergio Paracuellos
Replace CamelCase struct name and fields with underscores to comply with the standard kernel coding style. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h| 6 +++--- drivers/staging/wlan-ng/prism2mgmt.c | 8 2 files changed, 7 insertions(+), 7 deletions(-)

[PATCH 08/12] staging: wlan-ng: avoid CamelCase: hfa384x_HScanResult

2016-10-19 Thread Sergio Paracuellos
Replace CamelCase struct name with underscores to comply with the standard kernel coding style. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wl

[PATCH 4/5] staging: wlan-ng: Replace data type declaration with variable of same type in p80211netdev.c

2016-10-19 Thread Sergio Paracuellos
sizeof(var) instead of sizeof(struct XXX) is preferred. Fix them in p80211netdev.c Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/p80211netdev.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/stag

[PATCH 04/12] staging: wlan-ng: avoid CamelCase in fields of struct hfa384x_dbmcommsquality

2016-10-19 Thread Sergio Paracuellos
Replace CamelCase fields of struct with underscores to comply with the standard kernel coding style Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/stag

[PATCH 3/5] staging: wlan-ng: Replace data type declaration with variable of same type in p80211conv.c

2016-10-19 Thread Sergio Paracuellos
sizeof(*var) instead of sizeof(struct XXX) is preferred. Fix it in p80211conv.c file. Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/p80211conv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/p80211conv.c b/drivers/staging/wlan-ng/p8

  1   2   >