Re: [PATCH 06/14] staging: clocking-wizard: Swap CCF clock providers

2018-05-11 Thread Michal Simek
On 7.5.2018 03:20, James Kelly wrote: > Replace existing CCF clock providers with new clock provider that can > be enhanced to meet our needs. > > AXI clock prepare/enable/disable/unprepare is now managed by regmap APIs. > > Unregistering of clk instances now handled by devm APIs. > > Drop

Re: [PATCH 06/14] staging: clocking-wizard: Swap CCF clock providers

2018-05-11 Thread Michal Simek
On 7.5.2018 03:20, James Kelly wrote: > Replace existing CCF clock providers with new clock provider that can > be enhanced to meet our needs. > > AXI clock prepare/enable/disable/unprepare is now managed by regmap APIs. > > Unregistering of clk instances now handled by devm APIs. > > Drop

Re: [PATCH 01/28] staging: most: allocate only all requested memory

2018-05-11 Thread Christian Gromm
On 09.05.2018 17:29, Greg KH wrote: On Wed, May 09, 2018 at 05:18:47PM +0200, Christian Gromm wrote: On 09.05.2018 16:54, Dan Carpenter wrote: On Wed, May 09, 2018 at 04:09:21PM +0200, Christian Gromm wrote: On 09.05.2018 15:19, Dan Carpenter wrote: On Tue, May 08, 2018 at 11:44:49AM +0200,

[PATCH v2 18/30] staging: wilc1000: fix line over 80 chars in wilc_create_wiphy() declaration

2018-05-11 Thread Ajay Singh
Fix line over 80 characters issue found by checkpatch.pl script in function declaration. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v2 24/30] staging: wilc1000: fix line over 80 chars in wilc_sdio struct

2018-05-11 Thread Ajay Singh
Fix line over 80 chars issue found by checkpatch.pl script by placing the comment message above the macro preprocessor. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_sdio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v2 26/30] staging: wilc1000: remove 'flag' argument from wilc_mac_indicate()

2018-05-11 Thread Ajay Singh
Remove 'flag' function parameter in wilc_mac_indicate() as only one condition was handled using that parameter. Also removed unnecessary call to wilc_mac_indicate() as no operation was performed in that function call. After above changes below macros are not required anymore.

[PATCH v2 25/30] staging: wilc1000: added #define for setting radiotap header

2018-05-11 Thread Ajay Singh
Added new macro to resolve below checkpatch issues in linux_mon. "Lines should not end with a '('" Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/linux_mon.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git

[PATCH v2 21/30] staging: wilc1000: fix line over 80 chars issue in connect()

2018-05-11 Thread Ajay Singh
Fix line over 80 characters in connect() by using temporary variables. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 29 +-- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git

[PATCH v2 19/30] staging: wilc1000: fix line over 80 characters in add_key()

2018-05-11 Thread Ajay Singh
Fix line over 80 character issue found by checkpatch.pl script in add_key(). Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git

[PATCH v2 23/30] staging: wilc1000: refactor del_station() to avoid parenthesis misalignment

2018-05-11 Thread Ajay Singh
Refactor the code to fix open parenthesis alignment issue reported by checkpatch.pl script in del_station(). Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff

[PATCH v2 13/30] staging: wilc1000: fix line over 80 chars in add_network_to_shadow()

2018-05-11 Thread Ajay Singh
Fix line over 80 characters issue reported by checkpatch in add_network_to_shadow() by using temporary variable. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 52 +++ 1 file changed, 25 insertions(+), 27

[PATCH v2 11/30] staging: wilc1000: use kmalloc(sizeof(*mgmt_tx)...) in mgmt_tx()

2018-05-11 Thread Ajay Singh
Fix below checkpatch issue found in mgmt_tx() Prefer kmalloc(sizeof(*mgmt_tx)...) over kmalloc(sizeof(struct p2p_mgmt_data)...) Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 16/30] staging: wilc1000: fix line over 80 chars in wilc_wfi_cfg_tx_vendor_spec()

2018-05-11 Thread Ajay Singh
Fix line over 80 characters issues reported by checkpatch.pl script in wilc_wfi_cfg_tx_vendor_spec() by using temporary variable. Simplified 'if else' condition with 'if'. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 14

[PATCH v2 15/30] staging: wilc1000: fix line over 80 charas in wilc_wfi_remain_on_channel_expired()

2018-05-11 Thread Ajay Singh
Refactor wilc_wfi_remain_on_channel_expired() to avoid line over 80 character issue reported by checkpatch.pl script. Also assigned value in the variable at the time of declaration. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 16

[PATCH v2 30/30] staging: wilc1000: refactor host_int_parse_assoc_resp_info() to remove unused code

2018-05-11 Thread Ajay Singh
Remove 'connect_resp_info' structure as most of its elements are not used. Modified wilc_parse_assoc_resp_info() to directly parse and fill value in connect_info structure variable. Remove use of 'assoc_resp_len' variable. get_assoc_resp_cap_info() & get_asoc_id() functions are remove as its not

[PATCH v2 28/30] staging: wilc1000: remove unused 'lock' varible in 'wilc_priv' structure

2018-05-11 Thread Ajay Singh
Cleanup patch to remove the unused variable from 'wilc_priv' structure. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h

[PATCH v2 12/30] staging: wilc1000: rename clear_duringIP() to avoid camelCase issue

2018-05-11 Thread Ajay Singh
Rename clear_duringIP() function to avoid camelCase issue reported by checkpatch.pl script. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 14/30] staging: wilc1000: use kmemdup instead of kmalloc in add_network_to_shadow()

2018-05-11 Thread Ajay Singh
Use kmemdup instead of kmalloc & memcpy in add_network_to_shadow(). Also added code to set 'ies_len' to zero in case of memory allocation failure. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 9 ++--- 1 file changed, 6

[PATCH v2 17/30] staging: wilc1000: fix line over 80 chars in get_station()

2018-05-11 Thread Ajay Singh
Fix line over 80 characters issue in get_station(). Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

[PATCH v2 10/30] staging: wilc1000: use sizeof(*wdev) to allocate memory in wilc_wfi_cfg_alloc()

2018-05-11 Thread Ajay Singh
Fix below reported checkpatch issues in wilc_wfi_cfg_alloc(). kzalloc(sizeof(*wdev)...) over kzalloc(sizeof(struct wireless_dev) Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 20/30] staging: wilc1000: fix line over 80 chars in scan()

2018-05-11 Thread Ajay Singh
Fix line over 80 characters issues found by checkpatch.pl script with the help of local variable. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 01/14] staging: clocking-wizard: Add principles of operation

2018-05-11 Thread Michal Simek
Hi, On 7.5.2018 03:20, James Kelly wrote: > Add a description for how the Xilinx Clocking Wizard IP works to guide > subsequent patches. > > Signed-off-by: James Kelly > --- > .../clocking-wizard/clk-xlnx-clock-wizard.c| 52 > ++ > 1 file

[PATCH] staging: wlan-ng: fix block comment alignment in p80211metastruct.h

2018-05-11 Thread Tim Collier
Fix checkpatch warning for misaligned * characters in the block comment at the start of p80211metastruct.h; with this change the file is checkpatch clean. Signed-off-by: Tim Collier --- drivers/staging/wlan-ng/p80211metastruct.h | 88 +++--- 1 file

Re: [PATCH] ANDROID: binder: remove 32-bit binder interface.

2018-05-11 Thread Martijn Coenen
On Fri, May 11, 2018 at 10:08 AM, Greg KH wrote: > I think using !CONFIG_M68K is a good start. We can blacklist any other > arch that doesn't support this, and that list should be small as I doubt > any new ones will be added without this support. Thanks, I will send

Re: [PATCH] ANDROID: binder: remove 32-bit binder interface.

2018-05-11 Thread Martijn Coenen
On Sat, May 5, 2018 at 2:10 PM, kbuild test robot wrote: >drivers/android/binder.o: In function `binder_thread_write': >>> binder.c:(.text+0x6a16): undefined reference to `__get_user_bad' Looks like m68k doesn't support 64-bit get_user(). I could just have binder depend on

[PATCH v2 08/30] staging: wilc1000: replace kmalloc with kmemdup() in handle_connect_timeout()

2018-05-11 Thread Ajay Singh
Instead of kmalloc and memcpy use kmemdup in handle_connect_timeout(). Also return -ENOMEM incase of failure to allocate the memory. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-)

[PATCH v2 03/30] staging: wilc1000: fix line over 80 chars in handle_key()

2018-05-11 Thread Ajay Singh
Fix checkpatch reported issue of line over 80 char in handle_key(). Introduced new functions by spliting existing function to address the checkpatch issue. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 59 +++ 1

[PATCH v2 05/30] staging: wilc1000: fix line over 80 chars issue in host_int_handle_disconnect()

2018-05-11 Thread Ajay Singh
Fix line over 80 char issue in host_int_handle_disconnect() by using temp variable to hold the 'wilc_connect_result' function pointer. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[PATCH v2 09/30] staging: wilc1000: fix line over 80 chars in linux_mon

2018-05-11 Thread Ajay Singh
Fix line over 80 char issue reported by checkpatch.pl script. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/linux_mon.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/wilc1000/linux_mon.c

[PATCH v2 07/30] staging: wilc1000: fix line over 80 chars in host_int_parse_assoc_resp_info()

2018-05-11 Thread Ajay Singh
Fix line over 80 characters issue in host_int_parse_assoc_resp_info() by using shorter name for the local variable. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 01/14] staging: clocking-wizard: Add principles of operation

2018-05-11 Thread Michal Simek
Hi James, On 11.5.2018 09:31, James Kelly wrote: > Hi Michal, > > On 11 May 2018 at 16:04, Michal Simek wrote: > >> Hi, >> >> On 7.5.2018 03:20, James Kelly wrote: >>> Add a description for how the Xilinx Clocking Wizard IP works to guide >>> subsequent patches. >>>

[PATCH v2 06/30] staging: wilc1000: fix line over 80 characters in host_int_parse_join_bss_param()

2018-05-11 Thread Ajay Singh
Split host_int_parse_join_bss_param() to avoid the line over 80 character issue reported by checkpatch.pl script. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 247 -- 1 file changed, 131 insertions(+), 116

[PATCH v2 02/30] staging: wilc1000: remove 'ret' variable in handle_key()

2018-05-11 Thread Ajay Singh
Remove the use of unnecessary 'ret' variable and use existing 'result' variable to hold the status. Also changed type of 'result' from s32 to int to confirm with the function return type. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 17

[PATCH v2 04/30] staging: wilc1000: fix line over 80 characters issue in handle_connect()

2018-05-11 Thread Ajay Singh
Fix line over 80 character issue found by checkpatch.pl script by aligning the input argument in function call. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCH v2 01/30] staging: wilc1000: added complete() call for error scenario in handle_key()

2018-05-11 Thread Ajay Singh
During memory allocation failure in handle_key() the complete() was not called for comp_test_key_block event. So now added the code to call complete() for event during error scenario. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 19

[PATCH v2 00/30] staging: wilc1000: checkpatch fixes and code cleanup

2018-05-11 Thread Ajay Singh
This patch series contains modification to remove checkpatch related issues, mainly related to 'line over 80 chars'. Also code cleanup related change to follow as per linux coding style are included in this patch series. changes from v1: - Dropped patch#5 and add a new patch #30 to address its

Re: [PATCH 10/14] staging: clocking-wizard: Support clk_round_rate

2018-05-11 Thread Michal Simek
On 7.5.2018 03:20, James Kelly wrote: > Add support for the clk_round_rate API to our CCF clock provider. > > Signed-off-by: James Kelly > --- > .../clocking-wizard/clk-xlnx-clock-wizard.c| 107 > + > 1 file changed, 107 insertions(+) > >

Re: [PATCH 11/14] staging: clocking-wizard: Support clk_set_rate

2018-05-11 Thread Michal Simek
On 7.5.2018 03:20, James Kelly wrote: > Provide initial support for CCF clk_set_rate API on all clock components. > > Clock consumers that want to set the first divider or PLL clock will need > to use clk_get_parent on one of the output clocks as there is no support > for CLK_SET_RATE_PARENT yet.

Re: [PATCH] ANDROID: binder: remove 32-bit binder interface.

2018-05-11 Thread Greg KH
On Fri, May 11, 2018 at 09:57:52AM +0200, Martijn Coenen wrote: > On Sat, May 5, 2018 at 2:10 PM, kbuild test robot wrote: > >drivers/android/binder.o: In function `binder_thread_write': > >>> binder.c:(.text+0x6a16): undefined reference to `__get_user_bad' > > Looks like

Re: [PATCH 09/14] staging: clocking-wizard: Provide more information in debugfs

2018-05-11 Thread Michal Simek
On 7.5.2018 03:20, James Kelly wrote: > Publish clock divider/multiplier ratios and flags specific to our > clock provider implementation as these are not available via the > debugfs entries provided by the common clock framework. > > Signed-off-by: James Kelly > --- >

Re: [PATCH 05/14] staging: clocking-wizard: Implement CCF clock provider

2018-05-11 Thread Michal Simek
On 11.5.2018 09:58, James Kelly wrote: > Hi Michal > > On 11 May 2018 at 16:06, Michal Simek wrote: > >> On 7.5.2018 03:20, James Kelly wrote: >>> The CCF clock providers that are currently used by the driver are not >>> capable of supporting the Clocking Wizard IP

[PATCH v2] ANDROID: binder: remove 32-bit binder interface.

2018-05-11 Thread Martijn Coenen
From: Martijn Coenen New devices launching with Android P need to use the 64-bit binder interface, even on 32-bit SoCs [0]. This change removes the Kconfig option to select the 32-bit binder interface. We don't think this will affect existing userspace for the following

[PATCH v2 22/30] staging: wilc1000: rename u8security to avoid datatype in variable name

2018-05-11 Thread Ajay Singh
Cleanup patch to avoid use of datatype in variable name to follow as per linux coding style. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git

[PATCH v2 27/30] staging: wilc1000: added comments for mutex and spinlock_t

2018-05-11 Thread Ajay Singh
Added comments for mutex and spinlock_t to avoid checkpatch.pl script. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.h | 2 +- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff

[PATCH v2 29/30] staging: wilc1000: remove s8idxarray to avoid datatype in variable name

2018-05-11 Thread Ajay Singh
Cleanup patch to have variable names as per linux coding style. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c

Re: [PATCH v2] staging: lustre: o2iblnd: Fix crash in kiblnd_handle_early_rxs()

2018-05-11 Thread Greg Kroah-Hartman
On Thu, May 10, 2018 at 11:07:01AM -0700, Doug Oucharek wrote: > Under upstream staging commit 5a2ca43fa54f561c252c2, the list handling > code in kiblnd_handle_early_rxs() got changed to list_for_each_safe(). > That protects against the current thread from deleting the current entry > it is

Re: [PATCH] staging: bcm2835-camera: Add TODO for removing overlay support

2018-05-11 Thread Dave Stevenson
On 11 May 2018 at 00:12, Stefan Schake wrote: > The overlay code is non-functional since it relies on firmware control > of the HVS. > > Signed-off-by: Stefan Schake > --- > Dave, does this match your understanding? Yes, the overlay only works if you are

[PATCH 3/3] media: staging: atomisp: Fix usage of 'media_entity_cleanup()'

2018-05-11 Thread Christophe JAILLET
According to the doc, 'media_entity_cleanup()' must be called after unregistering the entity. All places I've check do it that way. So, move the call after 'v4l2_device_unregister_subdev()' as done elsewhere. Actually, this is not an issue, because 'media_entity_cleanup()' does nothing, but it is

Re: [PATCH 2/3] media: staging: atomisp: Fix an error handling path in 'lm3554_probe()'

2018-05-11 Thread Julia Lawall
On Fri, 11 May 2018, Christophe JAILLET wrote: > The use of 'fail1' and 'fail2' is not correct. Reorder these calls to > branch at the right place of the error handling path. Maybe it would be good to improve the names at the same time? julia > > Signed-off-by: Christophe JAILLET

[PATCH 1/3] media: staging: atomisp: Return an error code in case of error in 'lm3554_probe()'

2018-05-11 Thread Christophe JAILLET
If 'v4l2_ctrl_handler_init()' fails, we go to the error handling path, do some clean-up and return err, which is known to be 0 (i.e. success). Axe the 'ret' variable and use 'err' directly in order to return the error code instead. Also remove the initialization of 'err' which was hiding this

[PATCH 2/3] media: staging: atomisp: Fix an error handling path in 'lm3554_probe()'

2018-05-11 Thread Christophe JAILLET
The use of 'fail1' and 'fail2' is not correct. Reorder these calls to branch at the right place of the error handling path. Signed-off-by: Christophe JAILLET --- drivers/staging/media/atomisp/i2c/atomisp-lm3554.c | 5 ++--- 1 file changed, 2 insertions(+), 3

Re: [PATCH 2/3] media: staging: atomisp: Fix an error handling path in 'lm3554_probe()'

2018-05-11 Thread Alan Cox
On Fri, 2018-05-11 at 17:09 +0200, Julia Lawall wrote: > > On Fri, 11 May 2018, Christophe JAILLET wrote: > > > The use of 'fail1' and 'fail2' is not correct. Reorder these calls > > to > > branch at the right place of the error handling path. > > Maybe it would be good to improve the names at

[PATCH 0/3] media: staging: atomisp:

2018-05-11 Thread Christophe JAILLET
These 3 patches fixes (at least I hope) some issues found in or around 'lm3554_probe()'. Please review them carefully. I've only compile tested the changes and I propose them because they sound logical to me. The first one, return an error code instead of 0 if the call to an initialisation

[PATCH] staging: lustre: fix spelling mistake: "req_ulinked" -> "req_unlinked"

2018-05-11 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in DEBUG_REQ message text Signed-off-by: Colin Ian King --- drivers/staging/lustre/lustre/ptlrpc/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 05/14] staging: clocking-wizard: Implement CCF clock provider

2018-05-11 Thread Michal Simek
On 7.5.2018 03:20, James Kelly wrote: > The CCF clock providers that are currently used by the driver are not > capable of supporting the Clocking Wizard IP register interface for > fractional ratios, nor are they able to enforce constraints require to > ensure the PLL will always lock. > > None

[PATCH v2] staging: bcm2835-camera: Replace open-coded idr with a struct idr.

2018-05-11 Thread Eric Anholt
We just need some integer handles that can map back to our message struct when we're handling a reply, which struct idr is perfect for. v2: Fix error check to look at the right variable. Signed-off-by: Eric Anholt --- .../vc04_services/bcm2835-camera/mmal-vchiq.c | 135

Re: [lustre-devel] [PATCH] staging: lustre: fix spelling mistake: "req_ulinked" -> "req_unlinked"

2018-05-11 Thread Dilger, Andreas
On May 11, 2018, at 07:38, Colin King wrote: > > From: Colin Ian King > > Trivial fix to spelling mistake in DEBUG_REQ message text > > Signed-off-by: Colin Ian King Reviewed-by: Andreas Dilger