[PATCH 14/80] staging: wilc1000: rename strWILC_UsrConnReq of struct host_if_drv

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames strWILC_UsrConnReq of struct host_if_drv to usr_conn_req to avoid CamelCase naming convention. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 167 +++--- drivers/staging/wilc1000/host_inte

[PATCH 18/80] staging: wilc1000: rename au8AssociatedBSSID of struct host_if_drv

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames au8AssociatedBSSID of struct host_if_drv to assoc_bssid to avoid CamelCase naming convention. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 8 drivers/staging/wilc1000/host_interface.h | 2 +- 2 files c

[PATCH 16/80] staging: wilc1000: rename u8RemainOnChan_pendingreq of struct host_if_drv

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames u8RemainOnChan_pendingreq of struct host_if_drv to remain_on_ch_pending to avoid CamelCase naming convention. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 10 +- drivers/staging/wilc1000/host_interface.

[PATCH 15/80] staging: wilc1000: rename strHostIfRemainOnChan of struct host_if_drv

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames strHostIfRemainOnChan of struct host_if_drv to remain_on_ch to avoid CamelCase naming convention. And, remove the relation comment. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 24 driv

[PATCH 17/80] staging: wilc1000: rename enuHostIFstate of struct host_if_drv

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames enuHostIFstate of struct host_if_drv to hif_state to avoid CamelCase naming convention. And, some comments modification that has been included name 'enuHostIFstate'. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c |

[PATCH 10/80] staging: wilc1000: rename u32Mode of struct op_mode

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames u32Mode of struct op_mode to mode to avoid CamelCase naming convention. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 6 +++--- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 4 insertions(+),

[PATCH 05/80] staging: wilc1000: fixes please don't use multiple blank lines

2015-10-27 Thread Glen Lee
From: Leo Kim This patch fixes the checks reported by checkpatch.pl for Please don't use multiple blank lines. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 39 --- 1 file changed, 39 deletions(-) diff --git a/drive

[PATCH 12/80] staging: wilc1000: rename u8MacAddress of struct get_mac_addr

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames u8MacAddress of struct get_mac_addr to mac_addr to avoid CamelCase naming convention. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 in

[PATCH 09/80] staging: wilc1000: rename u32Address of struct drv_handler

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames u32Address of struct drv_handler to handler to avoid CamelCase naming convention. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 6 +++--- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 4 inse

[PATCH 04/80] staging: wilc1000: fixes missing a blank line after declarations

2015-10-27 Thread Glen Lee
From: Leo Kim This patch fixes the warnings reported by checkpatch.pl for Missing a blank line after declarations. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a

[PATCH 13/80] staging: wilc1000: rename strWILC_UsrScanReq of struct host_if_drv

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames strWILC_UsrScanReq of struct host_if_drv to usr_scan_req to avoid CamelCase naming convention. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 78 +++ drivers/staging/wilc1000/host_inte

[PATCH 11/80] staging: wilc1000: rename u8MacAddress of struct set_mac_addr

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames u8MacAddress of struct set_mac_addr to mac_addr to avoid CamelCase naming convention. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 in

[PATCH 06/80] staging: wilc1000: host_interface: removes unused functions

2015-10-27 Thread Glen Lee
From: Leo Kim This patch removes unused functions at host_interface files. - host_int_send_join_leave_info_to_host - host_int_send_network_info_to_host Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 11 -- drivers/staging/wilc1000/host

[PATCH 07/80] staging: wilc1000: rename au8StartTime of struct join_bss_param

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames au8StartTime of struct join_bss_param to start_time to avoid CamelCase naming convention. Signed-off-by: Leo Kim Signed-off-by: Tony Cho Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 10 -- 1 file changed, 4 insertions(+), 6

[PATCH 08/80] staging: wilc1000: rename variable strWID

2015-10-27 Thread Glen Lee
From: Leo Kim This patch renames variable strWID to wid to avoid CamelCase naming convention. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 595 +++--- 1 file changed, 297 insertions(+), 298 deletions(-) diff --git a/dr

[PATCH 01/80] staging: wilc1000: remove unnecessary parentheses around

2015-10-27 Thread Glen Lee
From: Leo Kim This patch removes the checks reported by checkpatch.pl for unnecessary parentheses around. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 48 +++ 1 file changed, 23 insertions(+), 25 deletions(-) diff

[PATCH 03/80] staging: wilc1000: fixes blank lines aren't necessary brace

2015-10-27 Thread Glen Lee
From: Leo Kim This patch fixes the checks reported by checkpatch.pl for Blank lines aren't necessary after an open brace '{' and Blank lines aren't necessary before a close brace '}'. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 33 ---

[PATCH 02/80] staging: wilc1000: fixes braces {} are not necessary for single statement blocks

2015-10-27 Thread Glen Lee
From: Leo Kim This patch fixes the warnings reported by checkpatch.pl for braces {} are not necessary for single statement blocks Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 34 +++ 1 file changed, 16 insertions(+)

Re: [RESEND PATCH v2 4/5] staging: lustre: selftest.h: replace IS_PO2 by is_power_of_2

2015-10-27 Thread Sudip Mukherjee
On Tue, Oct 27, 2015 at 07:45:22PM +0200, Aya Mahfouz wrote: > Replaces IS_PO2 by is_power_of_2. It is more accurate to use > is_power_of_2 since it returns 1 for numbers that are powers > of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are > powers of 2. > > Signed-off-by: Aya Mahfouz

Re: [RESEND PATCH v2 2/5] staging: lustre: hash.c: Replace IS_PO2 by is_power_of_2

2015-10-27 Thread Sudip Mukherjee
On Tue, Oct 27, 2015 at 07:43:34PM +0200, Aya Mahfouz wrote: > Replaces IS_PO2 by is_power_of_2. It is more accurate to use > is_power_of_2 since it returns 1 for numbers that are powers > of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are > powers of 2. > > Reviewed-by: Andreas Dilger

Re: [PATCH v2 13/20] staging: rtl8188eu: operator = replaced by += in loop increment

2015-10-27 Thread Sudip Mukherjee
On Tue, Oct 27, 2015 at 10:26:00PM +0700, Ivan Safonov wrote: > x = x + a and x += a equivalen, but second preferably. equivalent? regards sudip ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo

[PATCH V5] staging: wilc1000: wilc_msgqueue.c : remove goto statement

2015-10-27 Thread Glen Lee
From: Leo Kim This patch removes goto statement and moves the spin lock position. If a memory allocation fails, directly returns an error. The spin lock actually protects the pHandle. Therefore, call spin lock just before pHandle is used. Signed-off-by: Leo Kim Signed-off-by: Tony Cho Signed-o

Re: [PATCH v2 05/20] staging: rtl8188eu: ternary operator (?:) replaced by min_t kernel macro

2015-10-27 Thread Sudip Mukherjee
On Tue, Oct 27, 2015 at 10:19:50PM +0700, Ivan Safonov wrote: > min_t macro better conveys the meaning of the code. > > Signed-off-by: Ivan Safonov > --- > Changes in v2: > - min replaced by mit_t. > > drivers/staging/rtl8188eu/core/rtw_efuse.c | 2 +- > drivers/staging/rtl8188eu/core/rtw

Re: [PATCH v2 04/20] staging: rtl8188eu: ternary operator (?:) replaced by min_t kernel macro

2015-10-27 Thread Sudip Mukherjee
On Tue, Oct 27, 2015 at 10:18:10PM +0700, Ivan Safonov wrote: > min_t macro better conveys the meaning of the code. > > Signed-off-by: Ivan Safonov > --- > diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c > b/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c > index 2d88c5a..5808763 100644

Re: [PATCH v2] Staging: android: uapi: fixed comment block coding style error in ion.h

2015-10-27 Thread Sudip Mukherjee
On Tue, Oct 27, 2015 at 02:04:54PM +0200, Dzonatans Melgalvis wrote: > Fixed checkpatch.pl warning about comment block coding style. > > Signed-off-by: Dzonatans Melgalvis '. This change has already been done by: 7e4161747bc6 ("staging: android: Fix checkpatch block comments warnings") which tre

Re: [PATCH] staging: wilc1000: fix build error on SPI

2015-10-27 Thread Sudip Mukherjee
On Tue, Oct 27, 2015 at 06:20:14PM +0900, Glen Lee wrote: > wilc_netdev_init function has parameters to pass but no argument is passed > when bus type SPI is selected. Which causes build error. > This patch passes argument &wilc to the function wilc_netdev_init. > > Signed-off-by: Glen Lee Fixes:

Re: [PATCH V4] staging: wilc1000: wilc_msgqueue.c : remove goto statement

2015-10-27 Thread Sudip Mukherjee
On Tue, Oct 27, 2015 at 05:33:37PM +0900, Glen Lee wrote: > From: Leo Kim > > This patch removes goto statement and moves the spin lock position. > If a memory allocation fails, directly returns an error. > The spin lock actually protects the pHandle. Therefore, call spin lock just > before pHand

Re: [PATCH v3 7/7] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2015-10-27 Thread Jiang Liu
On 2015/10/28 4:38, Jake Oshins wrote: >> -Original Message- >> From: Jiang Liu [mailto:jiang@linux.intel.com] >> Sent: Tuesday, October 27, 2015 12:11 AM >> To: Jake Oshins ; gre...@linuxfoundation.org; KY >> Srinivasan ; linux-ker...@vger.kernel.org; >> de...@linuxdriverproject.org; o

Re: [PATCH v2 2/2] staging: rtl8188eu: ternary operator (?:) replaced by min kernel macro

2015-10-27 Thread kbuild test robot
Hi Ivan, [auto build test WARNING on staging/staging-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Ivan-Safonov/staging-rtl8188eu-integer-type-replaced-by-size_t-in-length-variables/201

[PATCH 10/10] staging: wilc1000: fix line over 80 characters

2015-10-27 Thread Chaehyun Lim
This patch fixes line over 80 characters found by checkpatch. WARNING: line over 80 characters FILE: drivers/staging/wilc1000/host_interface.h:424: Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dr

[PATCH 09/10] staging: wilc1000: replace kmalloc/memcpy with kmemdup

2015-10-27 Thread Chaehyun Lim
This patch replaces kmalloc followed by memcpy with kmemdup. It is also added error checking to return -ENOMEM when kmemdup is failed. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/stagi

[PATCH 06/10] staging: wilc1000: rename u8Keyidx in host_int_add_wep_key_bss_ap

2015-10-27 Thread Chaehyun Lim
This patch changes u8Keyidx to index that is fourth argument of this function to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/d

[PATCH 07/10] staging: wilc1000: rename u8mode in host_int_add_wep_key_bss_ap

2015-10-27 Thread Chaehyun Lim
This patch changes u8mode to mode that is fifth argument of this function to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH 08/10] staging: wilc1000: rename tenuAuth_type in host_int_add_wep_key_bss_ap

2015-10-27 Thread Chaehyun Lim
This patch changes tenuAuth_type to auth_type that is sixth argument of this function to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff -

[PATCH 05/10] staging: wilc1000: rename u8WepKeylen in host_int_add_wep_key_bss_ap

2015-10-27 Thread Chaehyun Lim
This patch changes u8WepKeylen to len that is third argument of this function to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 10 +- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff -

[PATCH 02/10] staging: wilc1000: fix parameter name of function declaration

2015-10-27 Thread Chaehyun Lim
This patch changes struct host_if_drv of host_int_add_wep_key_bss_ap function declaration from hWFIDrv to hif_drv. With this change, first parameter name of this function declaration and definition has same name as hif_drv. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.

[PATCH 04/10] staging: wilc1000: rename pu8WepKey in host_int_add_wep_key_bss_ap

2015-10-27 Thread Chaehyun Lim
This patch changes pu8WepKey to key that is second argument of this function to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 6 +++--- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/

[PATCH 01/10] staging: wilc1000: fix return type of host_int_add_wep_key_bss_ap

2015-10-27 Thread Chaehyun Lim
This patch changes return type of host_int_add_wep_key_bss_ap from s32 to int. The result variable gets return value from wilc_mq_send that has return type of int. It should be changed return type of this function as well as data type of result variable. Signed-off-by: Chaehyun Lim --- drivers/s

[PATCH 03/10] staging: wilc1000: replace u8 with int.

2015-10-27 Thread Chaehyun Lim
This patch changes data type of variable i from u8 to int. It is used as index of an array to print its content. It's better to use as data type of int. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

Re: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event

2015-10-27 Thread Richard Weinberger
On Mon, Jun 23, 2014 at 10:10 PM, David Miller wrote: > From: Haiyang Zhang > Date: Mon, 23 Jun 2014 16:09:59 + > >> So, what's the equivalent or similar command to "network restart" on SLES12? >> Could >> you update the command line for the usermodehelper when porting this patch >> to SLES

Re: [PATCH v3 23/23] staging/rdma/hfi1: Update driver version string to 0.9-294

2015-10-27 Thread Greg KH
On Tue, Oct 27, 2015 at 05:00:22PM -0400, ira.weiny wrote: > On Tue, Oct 27, 2015 at 05:46:41PM +0900, Greg KH wrote: > > On Mon, Oct 26, 2015 at 10:28:49AM -0400, ira.we...@intel.com wrote: > > > From: Jubin John > > > > > > Signed-off-by: Jubin John > > > Signed-off-by: Ira Weiny > > > --- >

Re: [PATCH v3 12/23] staging/rdma/hfi1: Macro code clean up

2015-10-27 Thread Greg KH
On Tue, Oct 27, 2015 at 04:51:15PM -0400, ira.weiny wrote: > On Tue, Oct 27, 2015 at 05:19:10PM +0900, Greg KH wrote: > > On Mon, Oct 26, 2015 at 10:28:38AM -0400, ira.we...@intel.com wrote: > > > From: Mitko Haralanov > > > > > > Clean up the context and sdma macros and move them to a more logic

Re: [PATCH v3 23/23] staging/rdma/hfi1: Update driver version string to 0.9-294

2015-10-27 Thread ira.weiny
On Tue, Oct 27, 2015 at 05:46:41PM +0900, Greg KH wrote: > On Mon, Oct 26, 2015 at 10:28:49AM -0400, ira.we...@intel.com wrote: > > From: Jubin John > > > > Signed-off-by: Jubin John > > Signed-off-by: Ira Weiny > > --- > > drivers/staging/rdma/hfi1/common.h | 2 +- > > 1 file changed, 1 inser

Re: [PATCH v3 12/23] staging/rdma/hfi1: Macro code clean up

2015-10-27 Thread ira.weiny
On Tue, Oct 27, 2015 at 05:19:10PM +0900, Greg KH wrote: > On Mon, Oct 26, 2015 at 10:28:38AM -0400, ira.we...@intel.com wrote: > > From: Mitko Haralanov > > > > Clean up the context and sdma macros and move them to a more logical place > > in > > hfi.h > > > > Signed-off-by: Mitko Haralanov >

RE: [PATCH v3 7/7] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2015-10-27 Thread Jake Oshins
> -Original Message- > From: Jiang Liu [mailto:jiang@linux.intel.com] > Sent: Tuesday, October 27, 2015 12:11 AM > To: Jake Oshins ; gre...@linuxfoundation.org; KY > Srinivasan ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > vkuzn...

Re: [PATCH v2] Staging: wilc1000: Prefer eth_broadcast_addr over memset()

2015-10-27 Thread Greg KH
On Tue, Oct 27, 2015 at 10:51:39PM +0530, Punit Vara wrote: > This patch is to the host_interface.c that fixes up following > warning by checkpatch: > > -prefer eth_broadcast_addr() over memset() > > Signed-off-by: Punit Vara > --- > drivers/staging/wilc1000/host_interface.c | 2 +- > 1 file ch

Re: [PATCH v2 01/20] staging: rtl8188eu: sizeof/sizeof replaced by ARRAY_SIZE kernel macro

2015-10-27 Thread Greg KH
On Tue, Oct 27, 2015 at 03:32:45PM -0200, Albino B Neto wrote: > 2015-10-27 15:33 GMT-02:00 Ivan Safonov : > > Not tested. Is this transformation can to break the code? > > Send email to mailing. > > Read: https://www.kernel.org/doc/Documentation/SubmittingPatches What? What was done wrong here

Re: [PATCH v2 01/20] staging: rtl8188eu: sizeof/sizeof replaced by ARRAY_SIZE kernel macro

2015-10-27 Thread Dan Carpenter
On Tue, Oct 27, 2015 at 03:05:44PM -0200, Albino B Neto wrote: > 2015-10-27 13:13 GMT-02:00 Ivan Safonov : > > ARRAY_SIZE shorter and more difficult to create bugs. > > > > Signed-off-by: Ivan Safonov > > You tested ? > Probably most changes on this list have not been tested... It's fine since

Re: [PATCH v2 01/20] staging: rtl8188eu: sizeof/sizeof replaced by ARRAY_SIZE kernel macro

2015-10-27 Thread Albino B Neto
2015-10-27 15:33 GMT-02:00 Ivan Safonov : > Not tested. Is this transformation can to break the code? Send email to mailing. Read: https://www.kernel.org/doc/Documentation/SubmittingPatches Albino ___ devel mailing list de...@linuxdriverproject.org

[RESEND PATCH v2 5/5] staging: lustre: libcfs.h: remove IS_PO2 and __is_po2

2015-10-27 Thread Aya Mahfouz
Removes IS_PO2 and __is_po2 since the uses of IS_PO2 have been replaced by is_power_of_2 Signed-off-by: Aya Mahfouz --- v2: -became patch number 5 in the series drivers/staging/lustre/include/linux/libcfs/libcfs.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging

[RESEND PATCH v2 4/5] staging: lustre: selftest.h: replace IS_PO2 by is_power_of_2

2015-10-27 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Signed-off-by: Aya Mahfouz --- v2: -added new patch in patch set for selftest.h drivers/st

[RESEND PATCH v2 3/5] staging: lustre: workitem.c: replace IS_PO2 by is_power_of_2

2015-10-27 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Reviewed-by: Andreas Dilger Signed-off-by: Aya Mahfouz --- v2: -changed commit message

[RESEND PATCH v2 2/5] staging: lustre: hash.c: Replace IS_PO2 by is_power_of_2

2015-10-27 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Reviewed-by: Andreas Dilger Signed-off-by: Aya Mahfouz --- v2: -changed commit message

[RESEND PATCH v2 1/5] staging: lustre: ldlm_extent.c: replace IS_PO2 by is_power_of_2

2015-10-27 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Signed-off-by: Aya Mahfouz --- v2: -changed commit message drivers/staging/lustre/lustre/l

[RESEND PATCH v2 0/5] Remove uses and definition of IS_PO2

2015-10-27 Thread Aya Mahfouz
Concerned with the removal of IS_PO2 by replacing its uses with is_power_of_2 and then removing the definition. This is the second version of the patch set. The commit messages were changed and a new patch was added for a use of IS_PO2 indicated by kbuild test robot. Aya Mahfouz (5): staging: l

Re: [PATCH v2 01/20] staging: rtl8188eu: sizeof/sizeof replaced by ARRAY_SIZE kernel macro

2015-10-27 Thread Ivan Safonov
On 10/28/2015 12:05 AM, Albino B Neto wrote: 2015-10-27 13:13 GMT-02:00 Ivan Safonov : ARRAY_SIZE shorter and more difficult to create bugs. Signed-off-by: Ivan Safonov You tested ? Albino Not tested. Is this transformation can to break the code? ___

Re: [PATCH v2 01/20] staging: rtl8188eu: sizeof/sizeof replaced by ARRAY_SIZE kernel macro

2015-10-27 Thread Albino B Neto
2015-10-27 13:13 GMT-02:00 Ivan Safonov : > ARRAY_SIZE shorter and more difficult to create bugs. > > Signed-off-by: Ivan Safonov You tested ? Albino ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman

Re: [PATCH v2 01/20] staging: rtl8188eu: sizeof/sizeof replaced by ARRAY_SIZE kernel macro

2015-10-27 Thread Ivan Safonov
On 10/28/2015 12:05 AM, Albino B Neto wrote: 2015-10-27 13:13 GMT-02:00 Ivan Safonov : ARRAY_SIZE shorter and more difficult to create bugs. Signed-off-by: Ivan Safonov You tested ? Albino Not tested. Is this transformation can to break the code? ___

[PATCH v2] Staging: wilc1000: Prefer eth_broadcast_addr over memset()

2015-10-27 Thread Punit Vara
This patch is to the host_interface.c that fixes up following warning by checkpatch: -prefer eth_broadcast_addr() over memset() Signed-off-by: Punit Vara --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/ho

RE: [PATCH v3 4/7] PCI: Record an fwnode associated with root PCI buses, optionally

2015-10-27 Thread Jake Oshins
> -Original Message- > From: Jiang Liu [mailto:jiang@linux.intel.com] > Sent: Tuesday, October 27, 2015 12:10 AM > To: Jake Oshins ; gre...@linuxfoundation.org; KY > Srinivasan ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > vkuzn...

[PATCH 15/16] staging: comedi: comedi_test: rename waveform_ai_interrupt()

2015-10-27 Thread Ian Abbott
`waveform_ai_interrupt()` is a timer expiry function used to generate fake waveform data for an analog input subdevice. Rename it to `waveform_ai_timer()`. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/comedi_test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[PATCH 14/16] staging: comedi: comedi_test: handle partial scans in timer routine

2015-10-27 Thread Ian Abbott
For asynchronous command handling on the analog input subdevice, a kernel timer routine is used to generate the fake waveform data. A "scan" consists of a number of conversions separated in time by a conversion period. Successive scans are separated in time by a scan period, which is at least the

[PATCH 11/16] staging: comedi: comedi_test: make timer rate similar to scan rate

2015-10-27 Thread Ian Abbott
The asynchronous command handling for the analog input subdevice uses a kernel timer which expires approximately `HZ` times a second. However, it only needs to do anything after each scan period. Set the timer to expire just after the next scan period. Although the timer expiry function `wavefor

[PATCH 08/16] staging: comedi: comedi_test: simplify time since last AI scan

2015-10-27 Thread Ian Abbott
The private data structure `struct waveform_private` currently uses member `last` to remember the time of the last timer interrupt, and the member `usec_remainder` to keep track of how far into a simulated scan the interrupt occurred. Replace these with a single new member `ai_last_scan_time` that

[PATCH 09/16] staging: comedi: comedi_test: rename members for AI commands

2015-10-27 Thread Ian Abbott
Rename the members of `struct waveform_private` that are used to handle AI commands, apart from those members used to control fake waveform generation. The renames are `timer` --> `ai_timer`, `scan_period` --> `ai_scan_period`, and `convert_period` --> `ai_convert_period`. Signed-off-by: Ian Abbo

[PATCH 03/16] staging: comedi: comedi_test: remove nano_per_micro

2015-10-27 Thread Ian Abbott
The `static const int nano_per_micro` variable is set to 1000, the number of nanoseconds in a microsecond. Remove it and use the `NSEC_PER_USEC` macro from instead. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/comedi_test.c | 17 +++-- 1 file changed, 7 insertions(+

[PATCH 06/16] staging: comedi: comedi_test: move modulo operations for waveform

2015-10-27 Thread Ian Abbott
The fake waveform generator functions, `fake_sawtooth()` and `fake_squarewave()`, called from `fake_waveform()`, have a `current_time` parameter which is the time since the start of a waveform period. The parameter value may be greater than the waveform period so they do a modulo operation to brin

[PATCH 16/16] staging: comedi: comedi_test: implement commands on AO subdevice

2015-10-27 Thread Ian Abbott
Implement COMEDI asynchronous commands on the fake analog output subdevice. This is useful for testing asynchronous commands in the "write" direction when no real hardware is available. A normal kernel timer is used to drive the command. The new timer expiry function `waveform_ao_timer()` handle

[PATCH 12/16] staging: comedi: comedi_test: use unsigned short for loopback values

2015-10-27 Thread Ian Abbott
The last sample values written to the AO subdevice channels by its "insn_write" handler `waveform_ao_insn_write()` are stored in the member array `ao_loopbacks[]` in the device private data `struct waveform_private`. They can be read back via the "insn_read" handler of the AI subdevice `waveform_a

[PATCH 07/16] staging: comedi: comedi_test: use unsigned int for waveform timing

2015-10-27 Thread Ian Abbott
Use `unsigned int` instead of `unsigned long` to hold the period of the fake waveform generator and the current time within each waveform. The waveform period will be no more than `INT_MAX` and the current time within the waveform (prior to the modulo operation to bring it actually within the wave

[PATCH 10/16] staging: comedi: comedi_test: rename waveform members

2015-10-27 Thread Ian Abbott
Rename the members `struct waveform_private` associated with fake waveform generation. The affected members are `uvolt_amplitude` --> `wf_amplitude` (the amplitude of the waveform), `usec_period` --> `wf_period` (the period of the waveform), and `usec_current` --> `wf_current` (the current time wi

[PATCH 13/16] staging: comedi: comedi_test: allow read-back of AO channels

2015-10-27 Thread Ian Abbott
COMEDI drivers often allow the last value written to a channel on an analog output subdevice to be read back via the "insn_read" handler. The "comedi_test" driver does not currently support that. It is a bit special because it loops back the last values written to the channel on the analog output

[PATCH 00/16] staging: comedi: comedi_test: enhancements

2015-10-27 Thread Ian Abbott
The "comedi_test" module is a driver for a dummy COMEDI device. It has an analog input subdevice and an analog output subdevice. The analog input subdevice supports COMEDI asynchronous acquisition commands using waveform generators to generate the input data for each channel. A kernel timer is u

[PATCH 05/16] staging: comedi: comedi_test: support scan_begin_src == TRIG_FOLLOW

2015-10-27 Thread Ian Abbott
It is quite common for COMEDI subdevices that support commands to support setting `scan_begin_src` to `TRIG_FOLLOW`. This means the next scan begins once all conversions in the current scan are complete. Support the following timing combinations for the AI subdevice: scan_begin_src == TRIG_TIME

[PATCH 04/16] staging: comedi: comedi_test: limit maximum convert_arg

2015-10-27 Thread Ian Abbott
When testing the parameters for setting up an asynchronous command on the AI subdevice, limit the maximum conversion period (`cmd->convert_arg`) so that the number of conversions in a scan (`cmd->scan_end_arg`, same as `cmd->chanlist_len`) multiplied by the conversion period fits within an `unsigne

[PATCH 01/16] staging: comedi: comedi_test: reformat multi-line comments

2015-10-27 Thread Ian Abbott
Use the preferred style for multi-line comments. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/comedi_test.c | 94 ++-- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/drivers/staging/comedi/drivers/comedi_test.c b/drivers/staging/comedi/dr

[PATCH 02/16] staging: comedi: comedi_test: saturate fake waveform values

2015-10-27 Thread Ian Abbott
While an asynchronous command is running on the analog input subdevice, fake waveform generators are connected to each channel to provide the input voltages that are converted to sample value. Channel 0 is connected to a sawtooth generator, channel 1 is connected to a squarewave generator, and the

[PATCH v2 12/20] staging: rtl8188eu: occurrence of the 5 GHz code marked

2015-10-27 Thread Ivan Safonov
Channel numbers greater than 14 are used here, which are possible only for the 5 GHz frequency. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/rtl8188eu/hal/rtl81

[PATCH v2 19/20] staging: rtl8188eu: new variable for hal_data->MCSTxPowerLevelOriginalOffset[pwrGrpCnt] in store_pwrindex_offset function

2015-10-27 Thread Ivan Safonov
hal_data->MCSTxPowerLevelOriginalOffset[pwrGrpCnt] frequent in this function, so it replaced by the power_level_offset new variable. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/hal/bb_cfg.c | 34 ++ 1 file changed, 18 ins

[PATCH v2 07/20] staging: rtl8188eu: unused SUCCESS and FAIL macros removed

2015-10-27 Thread Ivan Safonov
This patch removes unused SUCCESS and FAIL macros in include/basic_types.h. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/include/basic_types.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/basic_types.h b/drivers

[PATCH v2 11/20] staging: rtl8188eu: increment placed into for loop header

2015-10-27 Thread Ivan Safonov
The increment at the end of the cycle, and it can be placed in the loop header. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_

[PATCH v2 20/20] staging: rtl8188eu: pwrGrpCnt variable removed in store_pwrindex_offset function

2015-10-27 Thread Ivan Safonov
This variable used only once in the beginning of the function, it can be removed. Signed-off-by: Ivan Safonov --- Changes in v2: - subject corrected. drivers/staging/rtl8188eu/hal/bb_cfg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/bb_c

[PATCH v2 13/20] staging: rtl8188eu: operator = replaced by += in loop increment

2015-10-27 Thread Ivan Safonov
x = x + a and x += a equivalen, but second preferably. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/core/rtw_recv.c | 6 +++--- drivers/staging/rtl8188eu/hal/mac_cfg.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/stagin

[PATCH v2 14/20] staging: rtl8188eu: checkpatch fixes: spaces preferred around that '|' in hal/bb_cfg.c

2015-10-27 Thread Ivan Safonov
This is checkpatch fixes for hal/bb_cfg.c file: spaces preferred around that '|'. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/hal/bb_cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/hal/bb_cfg.c b/drive

[PATCH v2 06/20] staging: rtl8188eu: abs kernel macro used in simularity_compare function

2015-10-27 Thread Ivan Safonov
abs macro is useful for determining the difference between the two integers. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/hal/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/hal/phy.c b/drivers/staging/

[PATCH v2 15/20] staging: rtl8188eu: checkpatch fixes: unnecessary parentheses removed in hal/bb_cfg.c

2015-10-27 Thread Ivan Safonov
This is checkpatch fixes for hal/bb_cfg.c file: unnecessary parentheses around . Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/hal/bb_cfg.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/bb_cfg.c

[PATCH v2 01/20] staging: rtl8188eu: sizeof/sizeof replaced by ARRAY_SIZE kernel macro

2015-10-27 Thread Ivan Safonov
ARRAY_SIZE shorter and more difficult to create bugs. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/hal/mac_cfg.c| 2 +- drivers/staging/rtl8188eu/hal/rf_cfg.c | 2 +- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 +- 3 files changed,

[PATCH v2 00/20] staging: rtl8188eu: code cleanups

2015-10-27 Thread Ivan Safonov
Kernel macros used, unnecessary macro removed, some checkpatch fixes performed and other changes added. --- Changes in v2: - patch 21 subject corrected. - patch 15 (staging: rtl8188eu: BITn macro replaced by BIT(n) in hal/bb_cfg.c) removed. It is no longer relevant. - min replaced by mit_

[PATCH v2 04/20] staging: rtl8188eu: ternary operator (?:) replaced by min_t kernel macro

2015-10-27 Thread Ivan Safonov
min_t macro better conveys the meaning of the code. Signed-off-by: Ivan Safonov --- Changes in v2: - min replaced by mit_t. drivers/staging/rtl8188eu/core/rtw_ap.c| 2 +- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 2 +- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 4 ++--

[PATCH v2 16/20] staging: rtl8188eu: checkpatch fixes: alignment should match open parenthesis

2015-10-27 Thread Ivan Safonov
This is checkpatch fixes for hal/bb_cfg.c file: alignment should match open parenthesis. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/hal/bb_cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/hal/bb_cfg.c

[PATCH v2 09/20] staging: rtl8188eu: unused MIN macro removed

2015-10-27 Thread Ivan Safonov
This patch removes unused MIN macro from include/rtw_security.h. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/include/rtw_security.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_security.h b/drivers/staging/

[PATCH v2 03/20] staging: rtl8188eu: ternary operator (?:) replaced by min/max kernel macro

2015-10-27 Thread Ivan Safonov
min (or max) kernel macro better conveys the meaning of the code. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/hal/odm_RTL8188E.c | 6 ++ drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 4 ++-- drivers/staging/rtl8188eu/os_dep/xmit_linux.c | 2 +-

[PATCH v2 18/20] staging: rtl8188eu: checkpatch fixes: 'Avoid CamelCase' in hal/bb_cfg.c

2015-10-27 Thread Ivan Safonov
This is checkpatch fixes for hal/bb_cfg.c file: Avoid CamelCase. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/hal/bb_cfg.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/bb_cfg.c b/drivers/s

[PATCH v2 02/20] staging: rtl8188eu: clamp kernel macro used in proc_get_rx_signal

2015-10-27 Thread Ivan Safonov
To limit the range of integers there is clamp macro. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/core/rtw_debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_debug.c b/drivers/staging/rtl8188e

[PATCH v2 10/20] staging: rtl8188eu: while loop replaced by for loop in rtw_restruct_wmm_ie

2015-10-27 Thread Ivan Safonov
This patch replaces while loop with for loop, because the initial condition and the increment clearly and briefly defined for this loop. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/core/rtw_mlme.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(

[PATCH v2 17/20] staging: rtl8188eu: checkpatch fixes: line over 80 characters splited into two parts

2015-10-27 Thread Ivan Safonov
This is checkpatch fixes for hal/bb_cfg.c file: line over 80 characters. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/hal/bb_cfg.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/bb_cfg.c b/d

[PATCH v2 05/20] staging: rtl8188eu: ternary operator (?:) replaced by min_t kernel macro

2015-10-27 Thread Ivan Safonov
min_t macro better conveys the meaning of the code. Signed-off-by: Ivan Safonov --- Changes in v2: - min replaced by mit_t. drivers/staging/rtl8188eu/core/rtw_efuse.c | 2 +- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 +- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 +- 3 fi

[PATCH v2 08/20] staging: rtl8188eu: unused MEM_ALIGNMENT_OFFSET and MEM_ALIGNMENT_PADDING macros removed

2015-10-27 Thread Ivan Safonov
This patch removes unused MEM_ALIGNMENT_OFFSET and MEM_ALIGNMENT_PADDING macros from include/basic_types.h. Signed-off-by: Ivan Safonov --- Changes in v2: no changes. drivers/staging/rtl8188eu/include/basic_types.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/

Re: [PATCH] staging: board: Set PM domain before probe

2015-10-27 Thread Geert Uytterhoeven
On Tue, Oct 27, 2015 at 3:27 PM, Tomeu Vizoso wrote: > PM domains shouldn't be modified after a device is probed, so set it > before device registration to be sure of that. > > In the future the PM domain pointer will be set through a setter that > will WARN if the device has been probed already.

[PATCH] staging: board: Set PM domain before probe

2015-10-27 Thread Tomeu Vizoso
PM domains shouldn't be modified after a device is probed, so set it before device registration to be sure of that. In the future the PM domain pointer will be set through a setter that will WARN if the device has been probed already. Signed-off-by: Tomeu Vizoso Cc: Geert Uytterhoeven --- driv

  1   2   >