Re: [PATCH v3 1/1] staging: dgnc: take lock when storing value in dgnc_po ll_tick

2015-09-22 Thread Sudip Mukherjee
On Wed, Sep 23, 2015 at 03:28:07AM +0100, Salah Triki wrote: > dgnc_poll_tick is declared global, so dgnc_driver_pollrate_store needs to > take the > lock dgnc_poll_lock before modifying this variable. dgnc_poll_lock is the > appropriate lock, since it is intended for poll scheduling and dgnc_poll

Re: [PATCH 13/13] Staging: rtl8712: Coding style warning fix for block comment

2015-09-22 Thread Sudip Mukherjee
On Wed, Sep 23, 2015 at 02:03:56AM +0530, Punit Vara wrote: > This patch is to rtl8712_gp_bitdef.h file that fixes up following > warning reported by checkpatch : > > -Block comments use a trailing */ on a separate line > > Signed-off-by: Punit Vara > --- I am getting confused. One of your previ

Re: [PATCH 3/3] staging: sm750fb: remove unused MB(x) and KB(x) macros

2015-09-22 Thread Sudip Mukherjee
On Tue, Sep 22, 2015 at 12:01:18PM +0300, Mike Rapoport wrote: > The MB(x) and KB(x) macros are not used and therefore they can be > removed > > Signed-off-by: Mike Rapoport > --- ohh.. discard my earlier mail. I have not seen that you have done that in this patch. Sorry for the noise. regards s

Re: [PATCH 2/3] staging: sm750fb: replace custom MB(x) macro with appropriate SZ_xM

2015-09-22 Thread Sudip Mukherjee
On Tue, Sep 22, 2015 at 12:01:17PM +0300, Mike Rapoport wrote: > Use SZ_xM defined in linux/sizes.h instead of custom MB(x) macro > > Signed-off-by: Mike Rapoport > --- If you are removing the use of MB(x) please also remove the #define MB(x) ((x)<<20) regards sudip _

Re: [PATCH v2 3/6] staging: fsl-mc: up-rev dpbp binary interface to v2.0

2015-09-22 Thread Greg KH
On Tue, Sep 22, 2015 at 06:08:56PM -0500, J. German Rivera wrote: > Add cmd_flags parameter to all dpbp APIs to comply > with the dpbp 2.0 MC interface. Updated MC version > major number. Pass irq args in struct instead of > separate args. > > Signed-off-by: J. German Rivera > --- > drivers/stag

[PATCH v3 1/1] staging: dgnc: take lock when storing value in dgnc_po ll_tick

2015-09-22 Thread Salah Triki
dgnc_poll_tick is declared global, so dgnc_driver_pollrate_store needs to take the lock dgnc_poll_lock before modifying this variable. dgnc_poll_lock is the appropriate lock, since it is intended for poll scheduling and dgnc_poll_tick contains the poll rate. dgnc_poll_lock needs to be declare not

[PATCH v3 0/1] staging: dgnc: take lock when storing value in dgnc_poll_tick

2015-09-22 Thread Salah Triki
The global variable dgnc_poll_tick is read in the function dgnc_poll_handler and modified in dgnc_driver_pollrate_store. The read access is protected by spin_lock_irqsave whereas the write is not. The protection of write access is needed, since it is possible to have multiple programs that try

Re: [PATCH v11 2/4] fpga manager: add sysfs interface document

2015-09-22 Thread Moritz Fischer
On Tue, Sep 22, 2015 at 8:21 AM, wrote: > From: Alan Tull > > Add documentation under drivers/staging for new fpga manager's > sysfs interface. > Reviewed-by: Moritz Fischer > Signed-off-by: Alan Tull > --- > v5 : (actually second version, but keeping version numbers > aligned with rest

Re: [PATCH v11 1/4] usage documentation for FPGA manager core

2015-09-22 Thread Moritz Fischer
Hi Alan, On Tue, Sep 22, 2015 at 8:21 AM, wrote: > From: Alan Tull > > Add a document on the new FPGA manager core. > Reviewed-by: Moritz Fischer > Signed-off-by: Alan Tull > --- > v9: initial version where this patch was added > > v10: requested cleanups to formatting and otherwise >

Re: [PATCH v11 3/4] add FPGA manager core

2015-09-22 Thread Josh Cartwright
On Tue, Sep 22, 2015 at 10:21:10AM -0500, at...@opensource.altera.com wrote: > From: Alan Tull > > API to support programming FPGA's. > > The following functions are exported as GPL: > * fpga_mgr_buf_load >Load fpga from image in buffer > > * fpga_mgr_firmware_load >Request firmware and

[PATCH v2 6/6] staging: fsl-mc: up-rev dprc binary interface to v4.0

2015-09-22 Thread J. German Rivera
Add cmd_flags parameter to all dprc APIs to comply with the dprc 4.0 MC interface. Updated MC version major number. Pass irq args in struct instead of separate args. dprc 4.0 uses MC-relative offsets to specify object regions, instead of physical addresses. So, translate_mc_addr() and struct fsl_

[PATCH v2 3/6] staging: fsl-mc: up-rev dpbp binary interface to v2.0

2015-09-22 Thread J. German Rivera
Add cmd_flags parameter to all dpbp APIs to comply with the dpbp 2.0 MC interface. Updated MC version major number. Pass irq args in struct instead of separate args. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/dpbp.c | 136 -- drivers/stagin

[PATCH v2 4/6] staging: fsl-mc: up-rev dpmcp binary interface to v2.0

2015-09-22 Thread J. German Rivera
Add cmd_flags parameter to all dpbp APIs to comply with the dpmcp 2.0 MC interface. Updated version major number. Pass irq args in struct instead of separate args. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/dpmcp-cmd.h| 2 +- drivers/staging/fsl-mc/bus/dpmcp.c|

[PATCH v2 2/6] staging: fsl-mc: uprev dpmng binary interface to v8.0

2015-09-22 Thread J. German Rivera
Add cmd_flags parameter to all dpmng APIs to comply with 8.0 MC firmware interface. Updated MC version major number. --- drivers/staging/fsl-mc/bus/dpmng.c | 14 ++ drivers/staging/fsl-mc/bus/mc-bus.c| 4 ++-- drivers/staging/fsl-mc/include/dpmng.h | 14 ++ 3 files

[PATCH v2 1/6] staging: fsl-mc: Add new flags field to MC command header

2015-09-22 Thread J. German Rivera
The Management Complex (MC) binary interface added a new "flags" field to the command header. Add the definitions for this field in preparation for adding the new cmd_flags parameter to all MC interface APIs. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/include/mc-cmd.h | 30 ++

[PATCH v2 0/6] staging: fsl-mc: up-rev version of MC interface code

2015-09-22 Thread J. German Rivera
The DPAA2 management complex has a versioned binary interface that has to be kept in sync with the DPAA2 drivers. This patch series uprevs the APIs that build MC commands and parse results. This uprev is needed to support object interrupts. MC binary interface changes -overall version from 6.0

[PATCH v2 5/6] staging: fsl-mc: up-rev dpcon binary interface to v2.0

2015-09-22 Thread J. German Rivera
dpcon object minor version number updated to match latest MC firmware. This change is needed because the dpcon object binds to the allocator and the current driver match logic uses object version numbers. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/include/dpcon-cmd.h | 2 +- 1 fi

Re: [PATCH v11 4/4] fpga manager: add driver for socfpga fpga manager

2015-09-22 Thread Josh Cartwright
On Tue, Sep 22, 2015 at 10:21:11AM -0500, at...@opensource.altera.com wrote: > From: Alan Tull > > Add driver to fpga manager framework to allow configuration > of FPGA in Altera SoCFPGA parts. > > Signed-off-by: Alan Tull > Acked-by: Michal Simek > Acked-by: Moritz Fischer [..] > +++ b/drive

[PATCH 3/3] staging: lustre: make non-exported functions static

2015-09-22 Thread Anton Gerasimov
Declare non-exported functions in pack_generic.c as static. Signed-off-by: Anton Gerasimov --- drivers/staging/lustre/lustre/ptlrpc/pack_generic.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c b/drivers/staging/lu

[PATCH 2/3] staging: lustre: include header with local ptlrpc declarations

2015-09-22 Thread Anton Gerasimov
Include the header with declaations of variables that are shared between several sources in ptlrpc module into the appropriate source files. Signed-off-by: Anton Gerasimov --- drivers/staging/lustre/lustre/ptlrpc/sec_null.c | 2 ++ drivers/staging/lustre/lustre/ptlrpc/wiretest.c | 2 ++ 2 files

[PATCH 1/3] staging: lustre: add shared variables to the header

2015-09-22 Thread Anton Gerasimov
This patch adds declarations for variables used in several files across the ptlrpc module to the local header. Signed-off-by: Anton Gerasimov --- drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/lustre/lustre/ptlrpc/

[PATCH 0/3] staging: lustre: fix (non-)static symbols issues

2015-09-22 Thread Anton Gerasimov
This series of patches eliminates some sparse warnings concerning static variables in lustre rtlrpc module where it seemed reasonable. Symbols that are really local to a source file are made static and declarations added to a header for symbols that are shared between source files. Anton Gerasimov

Re: [PATCH] storvsc: get rid of homegrown copy_{to,from}_bounce_buffer()

2015-09-22 Thread Christoph Hellwig
On Tue, Sep 22, 2015 at 06:27:50PM +0200, Vitaly Kuznetsov wrote: > Storvsc driver needs to ensure there are no 'holes' in the presented > sg list (all segments in the middle of the list need to be of PAGE_SIZE). I think it should instead set a virt_boundary. That's what we added for the NVMe dri

[PATCH 3/4] staging: rtl8188eu: don't cast when calling rtw_set_fixed_ie()

2015-09-22 Thread Luca Ceresoli
The 'pbuf' and 'source' arguments to rtw_set_fixed_ie() are (void *), the explicit typecasts are not needed. They just make code less readable. Also fix checkpatch issues in the lines touched: ERROR: space prohibited before that ',' (ctx:WxW) WARNING: line over 80 characters CHECK: Unnecessa

[PATCH 4/4] staging: rtl8188eu: issue_action_BA(): extract ADDBA_req pointer

2015-09-22 Thread Luca Ceresoli
pmlmeinfo->ADDBA_req is accessed three times in this function, but it contributes to generating lines above 80 characters that are not easy to split in a nice way. Extract a pointer to it to make code slightly more concise and fix some lines over 80 characters. Signed-off-by: Luca Ceresoli Cc: L

[PATCH 2/4] staging: rtl8188eu: rtw_set_fixed_ie(): accept void* parameters

2015-09-22 Thread Luca Ceresoli
rtw_set_ie() is a memcpy-like function, taking addresses of memory buffers among its parameters. Similarly to memcpy, change the parameters to be void*. This will allow to get rid of typecasts whenever it is called. Signed-off-by: Luca Ceresoli Cc: Larry Finger Cc: Greg Kroah-Hartman --- drive

[PATCH 1/4] staging: rtl8188eu: remove useless comment

2015-09-22 Thread Luca Ceresoli
This comment gives pretty much the same information as the name of the function that it immediately precedes. Signed-off-by: Luca Ceresoli Cc: Larry Finger Cc: Greg Kroah-Hartman --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/stagin

[PATCH] Staging: rtl8712: rtl8712_recv.c: Fix typo error "cacluated"

2015-09-22 Thread Punit Vara
This patch is to the rtl8712_rercv.c that fixes up typo error in word "calculated" Signed-off-by: Punit Vara --- drivers/staging/rtl8712/rtl8712_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_re

[PATCH 3/3] staging: lustre: make non-exported functions static

2015-09-22 Thread Anton Gerasimov
Declare non-exported functions in pack_generic.c as static. Signed-off-by: Anton Gerasimov --- drivers/staging/lustre/lustre/ptlrpc/pack_generic.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c b/drivers/staging/lu

[PATCH 2/3] staging: lustre: include header with local ptlrpc declarations

2015-09-22 Thread Anton Gerasimov
Include the header with declaations of variables that are shared between several sources in ptlrpc module into the appropriate source files. Signed-off-by: Anton Gerasimov --- drivers/staging/lustre/lustre/ptlrpc/sec_null.c | 2 ++ drivers/staging/lustre/lustre/ptlrpc/wiretest.c | 2 ++ 2 files

[PATCH 1/3] staging: lustre: add shared variables to the header

2015-09-22 Thread Anton Gerasimov
This patch adds declarations for variables used in several files across the ptlrpc module to the local header. Signed-off-by: Anton Gerasimov --- drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/lustre/lustre/ptlrpc/

[PATCH 0/3] staging: lustre: fix (non-)static symbols issues

2015-09-22 Thread Anton Gerasimov
This series of patches eliminates some sparse warnings concerning static variables in lustre rtlrpc module where it seemed reasonable. Symbols that are really local to a source file are made static and declarations added to a header for symbols that are shared between source files. Anton Gerasimov

Re: [PATCH] staging: rtl8723au: Mark type casts to __le32 as intentional

2015-09-22 Thread Larry Finger
On 09/22/2015 02:24 AM, Lars Svensson wrote: Fixing Sparse warnings about intentional type casts in rtw_security.c as below. CHECK drivers/staging/rtl8723au/core/rtw_security.c drivers/staging/rtl8723au/core/rtw_security.c:248:22: \ warning: cast to restricted __le32 drivers/staging/rtl8723

[PATCH] Staging: rtl8712: rtl8712_recv.c: Coding Style warnings fix for block comments

2015-09-22 Thread Punit Vara
This patch is to the rtl8712_recv.c file that fixes up following warning reported by checkpatch.pl : -Block comments use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/rtl8712_recv.c | 111 ++--- 1 file changed, 74 insertions(+

[PATCH] Staging: rtl8712: rtl8712_led.c: Coding style warnings fix for block comments

2015-09-22 Thread Punit Vara
This is patch to the rtl8712_led.c that fixes up following warnings reported by checkpatch.pl : -Block comments use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/rtl8712_led.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[PATCH] Staging: rtl8712: Coding style warning fix for block comment

2015-09-22 Thread Punit Vara
This is the patch to rtl8712_cmdctrl_bitdef.h file that fixes up following warning reported by checkpatch.pl : -Block comments use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/rtl8712_cmdctrl_bitdef.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH] Staging: rtl8712: rtl8712_hal.h: Coding style warnings fix for block comments

2015-09-22 Thread Punit Vara
This is the patch to rtl8712_hal.h file that fixes up following warning reported by checkpatch.pl : -Block comments use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/rtl8712_hal.h | 24 1 file changed, 16 insertions(+), 8 deletio

[PATCH 13/13] Staging: rtl8712: Coding style warning fix for block comment

2015-09-22 Thread Punit Vara
This patch is to rtl8712_gp_bitdef.h file that fixes up following warning reported by checkpatch : -Block comments use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/rtl8712_gp_bitdef.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --g

[PATCH] Staging: rtl8712: Coding style warning fix for block comment

2015-09-22 Thread Punit Vara
This is the patch to recv_linux.c file that fixes up following warning reported by checkpatch.pl : -Block comments use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/rtl8712_cmdctrl_bitdef.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --

[PATCH] Staging: rtl8712: rtl8712_cmd.c: Coding style warnings fix for block comments

2015-09-22 Thread Punit Vara
This patch is to the rtl8712_cmd.c file that fixes up warnings reported by checkpatch.pl : -Block comments use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/rtl8712_cmd.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) di

[PATCH] Staging: rtl8712: recv_linux.c: Coding style warning fix for block comment

2015-09-22 Thread Punit Vara
This is the patch to recv_linux.c file that fixes up following warning reported by checkpatch.pl : -Block comments use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/recv_linux.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dr

[PATCH] Staging: rtl8712: os_intfs.c: Coding style warning fix for block comment

2015-09-22 Thread Punit Vara
This patch is to the os_intfs.c that fixes up warning reported by checkpatch.pl : -Block commens use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/os_intfs.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl871

Re: [PATCHv3 3/3] drm: bridge: anx78xx: Add anx78xx driver support by analogix.

2015-09-22 Thread Dan Carpenter
On Thu, Sep 10, 2015 at 06:35:52PM +0200, Enric Balletbo i Serra wrote: > diff --git a/drivers/gpu/drm/bridge/anx78xx/anx78xx.h > b/drivers/gpu/drm/bridge/anx78xx/anx78xx.h > new file mode 100644 > index 000..4f6dd1d > --- /dev/null > +++ b/drivers/gpu/drm/bridge/anx78xx/anx78xx.h > @@ -0,0 +1

[PATCH] Staging: rtl8712: ieee80211.h: Coding style warnings fix for block comments

2015-09-22 Thread Punit Vara
This patch is to the ieee80211.h that fixes up following warnings reported by checkpatch.pl : -Block comments use * on subsequent lines -Block comments use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/ieee80211.h | 59 +--

[PATCH] Staging: rtl8712: ieee80211.c Coding style warnings fix for block comment

2015-09-22 Thread Punit Vara
This patch is to the ieee80211.c that fixes up following warnings reported by checkpatch.pl : -Block comments use * on subsequent lines -Block comments use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/ieee80211.c | 7 --- 1 file changed, 4 insertions

[PATCH] Staging: rtl8712: Coding style warnings fix for block comment

2015-09-22 Thread Punit Vara
This patch is to the drv_types.h that fixes up following warnings reported by checkpatch.pl : -Block comments use a trailing */ on a separate line -Block comments use * on subsequent lines Signed-off-by: Punit Vara --- drivers/staging/rtl8712/drv_types.h | 11 ++- 1 file changed, 6 ins

[PATCH] Staging: rtl8712: Coding style warnings fix for block comments

2015-09-22 Thread Punit Vara
This patch is to the hal_init.c that fixes up following warning reported by checkpatch.pl : -Block comments use * subsequent lines -Block comments use a trailing */ on a separate line Signed-off-by: Punit Vara --- drivers/staging/rtl8712/hal_init.c | 24 1 file changed,

[PATCH 5/6] Staging: rtl8712: Coding style warnings fix for block comment

2015-09-22 Thread Punit Vara
This patch is to the drv_types.h that fixes up following warnings reported by checkpatch.pl : -Block comments use a trailing */ on a separate line -Block comments use * on subsequent lines Signed-off-by: Punit Vara --- drivers/staging/rtl8712/drv_types.h | 11 ++- 1 file changed, 6 ins

Re: [PATCH 2/2] staging: dgap: remove unused variable

2015-09-22 Thread Dan Carpenter
On Thu, Sep 10, 2015 at 05:24:59PM +0530, Sudip Mukherjee wrote: > Removed them but kept one call to ioread8() as it might affect the > hardware. Just leave the extra variable until someone has the hardware and can verify the right fix. Static checker warnings are good, don't silence them just to

Re: [PATCH] MAINTAINERS: Remove myself as nvec co-maintainer

2015-09-22 Thread Julian Andres Klode
On Sun, Sep 13, 2015 at 05:23:27PM +0200, Julian Andres Klode wrote: > My device broke a long time ago, so I do not have any > chance of testing things or any reason to continue > maintaining it. > > Signed-off-by: Julian Andres Klode > Cc: Marc Dietrich > --- > MAINTAINERS | 1 - > 1 file chan

RE: [PATCH 0/2] staging: comedi: comedi_buf.c: Documentation changes

2015-09-22 Thread Hartley Sweeten
On Tuesday, September 22, 2015 10:03 AM, Ian Abbott wrote: > 1) staging: comedi: comedi_buf.c: tweak existing kernel-doc > 2) staging: comedi: comedi_buf.c: document remaining exported functions > > drivers/staging/comedi/comedi_buf.c | 106 > ++-- > 1 file changed

RE: [PATCH 00/11] staging: comedi: comedidev.h: Documentation changes

2015-09-22 Thread Hartley Sweeten
On Monday, September 21, 2015 10:53 AM, Ian Abbott wrote: > This series fixes an incorrectly formatted block comment, adds more > kernel-doc documenation and tweaks the existing documentation for > consistency and to document return values of inline functions. > > 01) staging: comedi: comedidev.h:

[PATCH 2/2] staging: comedi: comedi_buf.c: document remaining exported functions

2015-09-22 Thread Ian Abbott
Add kernel-doc headers to the remaining functions marked for export. Signed-off-by: Ian Abbott --- drivers/staging/comedi/comedi_buf.c | 69 ++--- 1 file changed, 65 insertions(+), 4 deletions(-) diff --git a/drivers/staging/comedi/comedi_buf.c b/drivers/staging

[PATCH 0/2] staging: comedi: comedi_buf.c: Documentation changes

2015-09-22 Thread Ian Abbott
1) staging: comedi: comedi_buf.c: tweak existing kernel-doc 2) staging: comedi: comedi_buf.c: document remaining exported functions drivers/staging/comedi/comedi_buf.c | 106 ++-- 1 file changed, 88 insertions(+), 18 deletions(-) ___

[PATCH 1/2] staging: comedi: comedi_buf.c: tweak existing kernel-doc

2015-09-22 Thread Ian Abbott
Expand the kernel-doc descriptions of those exported functions that already have kernel-doc comments. Signed-off-by: Ian Abbott --- drivers/staging/comedi/comedi_buf.c | 37 +++-- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/drivers/staging/come

[PATCH] storvsc: get rid of homegrown copy_{to,from}_bounce_buffer()

2015-09-22 Thread Vitaly Kuznetsov
Storvsc driver needs to ensure there are no 'holes' in the presented sg list (all segments in the middle of the list need to be of PAGE_SIZE). When a hole is detected storvsc driver creates a 'bounce sgl' without holes and copies data over with its own copy_{to,from}_bounce_buffer() functions. Scsi

[PATCH v11 2/4] fpga manager: add sysfs interface document

2015-09-22 Thread atull
From: Alan Tull Add documentation under drivers/staging for new fpga manager's sysfs interface. Signed-off-by: Alan Tull --- v5 : (actually second version, but keeping version numbers aligned with rest of patch series) Move document to drivers/staging/fpga/Documentation/ABI v6 :

[PATCH v11 4/4] fpga manager: add driver for socfpga fpga manager

2015-09-22 Thread atull
From: Alan Tull Add driver to fpga manager framework to allow configuration of FPGA in Altera SoCFPGA parts. Signed-off-by: Alan Tull Acked-by: Michal Simek Acked-by: Moritz Fischer --- v2: fpga_manager struct now contains struct device fpga_manager_register parameters now take device v3

[PATCH v11 1/4] usage documentation for FPGA manager core

2015-09-22 Thread atull
From: Alan Tull Add a document on the new FPGA manager core. Signed-off-by: Alan Tull --- v9: initial version where this patch was added v10: requested cleanups to formatting and otherwise s/fpga/FPGA/g rewrite implementation section to not reference socfpga.c by name other rew

[PATCH v11 0/4] FPGA Manager Framework

2015-09-22 Thread atull
From: Alan Tull This patch set adds the FPGA manager core which exports API functions that write an image to a FPGA I'm holding off on the DT overlay support a little for now. The core's API is minimal to start with: only 6 functions. This gives a manufacturer-agnostic interface for programmin

[PATCH v11 3/4] add FPGA manager core

2015-09-22 Thread atull
From: Alan Tull API to support programming FPGA's. The following functions are exported as GPL: * fpga_mgr_buf_load Load fpga from image in buffer * fpga_mgr_firmware_load Request firmware and load it to the FPGA. * fpga_mgr_register * fpga_mgr_unregister FPGA device drivers can be ad

[PATCH] staging: wicl1000: remove duplicated operand in OR operation

2015-09-22 Thread Javier Martinez Canillas
The IEEE80211_STYPE_PROBE_REQ flag appears twice in the expression and coccicheck complains with: wilc_wfi_cfgoperations.h:80:3-38: duplicated argument to & or | Signed-off-by: Javier Martinez Canillas --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.h | 1 - 1 file changed, 1 deletion(-)

Re: [PATCH v3] staging: dgnc: take lock when storing value in dgnc_poll_tick

2015-09-22 Thread Greg KH
On Tue, Sep 22, 2015 at 11:48:05AM +0100, Salah Triki wrote: > >On Wed, 2 Sep 2015 18:15:29 -0700, Greg KH wrote: > >>On Tue, Aug 25, 2015 at 08:09:47PM +0100, Salah Triki wrote: > >> poll_tick is declared global, so dgnc_driver_pollrate_store needs to > >> take > >> the lock dgnc_poll_lock before

[PATCH] staging: rtl8723au: Mark type casts to __le32 as intentional

2015-09-22 Thread Lars Svensson
Fixing Sparse warnings about intentional type casts in rtw_security.c as below. CHECK drivers/staging/rtl8723au/core/rtw_security.c drivers/staging/rtl8723au/core/rtw_security.c:248:22: \ warning: cast to restricted __le32 drivers/staging/rtl8723au/core/rtw_security.c:249:24: \ warning: cast t

[PATCH v2] x86: hyperv: fix build in !CONFIG_KEXEC_CORE case

2015-09-22 Thread Vitaly Kuznetsov
Recent changes in Hyper-V driver ("Drivers: hv: vmbus: add special crash handler") broke the build when CONFIG_KEXEC_CORE is not set: arch/x86/built-in.o: In function `hv_machine_crash_shutdown': arch/x86/kernel/cpu/mshyperv.c:112: undefined reference to `native_machine_crash_shutdown' Decorate

[PATCH 8/9] staging: wilc1000: rename ParseNetworkInfo

2015-09-22 Thread Chaehyun Lim
This patch replaces ParseNetworkInfo with parse_network_info to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 2 +- 3 files changed, 3 insertio

[PATCH 3/9] staging: wilc1000: replace kmalloc with kzalloc

2015-09-22 Thread Chaehyun Lim
This patch replaces kmalloc with kzalloc because it is initialized by 0 immediately after allcating memory. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigu

[PATCH 9/9] staging: wilc1000: parse_network_info: remove s32Error

2015-09-22 Thread Chaehyun Lim
s32Error is defined, but not used anywhere in this function. Then just delete it and return 0 at the end of this function. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/co

[PATCH 1/9] staging: wilc1000: remove CoreConfiguratorDeInit

2015-09-22 Thread Chaehyun Lim
This patch removes CoreConfiguratorDeInit function, which is not doing anything else except printing a PRINT_D message and returning a s32Error. It is also removed the codes that is calling this function. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 20 --

[PATCH 2/9] staging: wilc1000: rename SendConfigPkt

2015-09-22 Thread Chaehyun Lim
This patch replaces SendConfigPkt with send_config_pkt to aovid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 4 +- drivers/staging/wilc1000/coreconfigurator.h | 4 +- drivers/staging/wilc1000/host_interface.c | 204 ++-- 3

[PATCH 4/9] staging: wilc1000: replace kmalloc/memcpy with kmemdup

2015-09-22 Thread Chaehyun Lim
This patch replaces kmalloc followed by memset and memcpy with kmemdup. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc

[PATCH 5/9] staging: wilc1000: replace kmalloc_array/memset with kcalloc

2015-09-22 Thread Chaehyun Lim
This patch replaces kmalloc_array followed by memset with kcalloc. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/corecon

[PATCH 6/9] staging: wilc1000: remove useless comment

2015-09-22 Thread Chaehyun Lim
This patch removes useless comment in coreconfigurator.c Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 38 - drivers/staging/wilc1000/coreconfigurator.h | 29 ++ 2 files changed, 8 insertions(+), 59 deletions(-) dif

[PATCH 7/9] staging: wilc1000: remove extern declaration

2015-09-22 Thread Chaehyun Lim
This patch removes extern declaration of *gpstrWlanOps in coreconfigurator.c file. It is defined extern declaration in wilc_wlan_if.h file and then is included in coreconfigurator.c file. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000

[PATCH v2] staging: wicl1000: fix dereference after free in wilc_wlan_cleanup()

2015-09-22 Thread Javier Martinez Canillas
The wilc_wlan_cleanup() function iterates over the list of transmission buffers freeing all of them and then iterates over the receive buffers list to free all of them as well. But on the receive loop a pointer to struct txq_entry_t is dereferenced instead of the pointer to a struct rxq_entry_t. T

Re: [PATCH] staging: most: Use NULL instead of 0 in assignment of pointer

2015-09-22 Thread Dan Carpenter
On Sat, Sep 05, 2015 at 09:21:58PM +0200, Anders Fridlund wrote: > I resent it since no one responded to it for 10 days. From what I came > to understand that is the common practice. If that is not the case I'm > sorry (and please let me know so I don't do it again). > 10 days is too short. Espe

Re: [PATCH] staging: wicl1000: fix dereference after free in wilc_wlan_cleanup()

2015-09-22 Thread Javier Martinez Canillas
Hello Sudip, Thanks a lot for your feedback. On 09/22/2015 02:16 PM, Sudip Mukherjee wrote: > On Tue, Sep 22, 2015 at 12:24:50PM +0200, Javier Martinez Canillas wrote: >> The wilc_wlan_cleanup() function iterates over the list of transmission >> buffers freeing all of them and then iterates over

Re: [PATCH RESEND 04/16] staging: rtl8188eu: remove unused macro GEN_DRV_CMD_HANDLER

2015-09-22 Thread Dan Carpenter
On Tue, Sep 01, 2015 at 12:46:43AM +0200, Luca Ceresoli wrote: > But I don't see what added value this brings to the commit title. > I really would like to understand why this is a good practice. Can you > point me to an explanation (links are welcome)? One thing is that when you look at online em

Re: [PATCH 1/2] staging: dgnc: take lock when accessing to dgnc_poll_tick

2015-09-22 Thread Sudip Mukherjee
On Tue, Sep 22, 2015 at 12:55:02PM +0100, Salah Triki wrote: > On Mon, Sep 21, 2015 at 07:17:08PM +0300, Dan Carpenter wrote: > > On Sun, Sep 06, 2015 at 08:00:10PM -0700, Greg KH wrote: > > > On Sat, Sep 05, 2015 at 01:12:01PM +0100, Salah Triki wrote: > So please ignore this patch and consider i

Re: [PATCH] staging: wicl1000: fix dereference after free in wilc_wlan_cleanup()

2015-09-22 Thread Sudip Mukherjee
On Tue, Sep 22, 2015 at 12:24:50PM +0200, Javier Martinez Canillas wrote: > The wilc_wlan_cleanup() function iterates over the list of transmission > buffers freeing all of them and then iterates over the receive buffers > list to free all of them as well. > > But on the receive loop a pointer to

Re: [PATCH 1/2] staging: dgnc: take lock when accessing to dgnc_poll_tick

2015-09-22 Thread Salah Triki
On Mon, Sep 21, 2015 at 07:17:08PM +0300, Dan Carpenter wrote: > On Sun, Sep 06, 2015 at 08:00:10PM -0700, Greg KH wrote: > > On Sat, Sep 05, 2015 at 01:12:01PM +0100, Salah Triki wrote: > > > poll_tick is declared global, so dgnc_driver_pollrate_* need to > > > take the lock dgnc_poll_lock before

Re: [PATCH 1/2] staging: dgnc: take lock when accessing to dgnc_poll_tick

2015-09-22 Thread Salah Triki
>On Sun, 6 Sep 2015 20:00:10 -0700, Greg KH wrote: >>On Sat, Sep 05, 2015 at 01:12:01PM +0100, Salah Triki wrote: >> poll_tick is declared global, so dgnc_driver_pollrate_* need to >> take the lock dgnc_poll_lock before accessing to this variable. > >Really? The scope of a variable doesn't matter

Re: [PATCH v3] staging: dgnc: take lock when storing value in dgnc_poll_tick

2015-09-22 Thread Salah Triki
>On Wed, 2 Sep 2015 18:15:29 -0700, Greg KH wrote: >>On Tue, Aug 25, 2015 at 08:09:47PM +0100, Salah Triki wrote: >> poll_tick is declared global, so dgnc_driver_pollrate_store needs to >> take >> the lock dgnc_poll_lock before modifying this variable. dgnc_poll_lock >> the >> appropriate lock, sin

[PATCH] staging: wicl1000: fix dereference after free in wilc_wlan_cleanup()

2015-09-22 Thread Javier Martinez Canillas
The wilc_wlan_cleanup() function iterates over the list of transmission buffers freeing all of them and then iterates over the receive buffers list to free all of them as well. But on the receive loop a pointer to struct txq_entry_t is dereferenced instead of the pointer to a struct rxq_entry_t. T

Re: [PATCH 1/2] staging: dgnc: take lock when accessing to dgnc_poll_tick

2015-09-22 Thread Dan Carpenter
On Tue, Sep 22, 2015 at 10:25:09AM +0100, Salah Triki wrote: > I'm sorry for wasting your time. > The patch was correct. Just respond to reply to review comments so that people can follow what's going on. regards, dan carpenter ___ devel mailing list

Re: [PATCH 00/38] Fixes related to incorrect usage of unsigned types

2015-09-22 Thread Jacek Anaszewski
On 09/22/2015 11:13 AM, Andrzej Hajda wrote: On 09/21/2015 03:42 PM, David Howells wrote: Andrzej Hajda wrote: Semantic patch finds comparisons of types: unsigned < 0 unsigned >= 0 The former is always false, the latter is always true. Such comparisons are useless, so theoretically

[PATCH V2 15/16] staging: wilc1000: host_int_init: remove blank line before a close brace.

2015-09-22 Thread Chaehyun Lim
This patch removes blank line before a close brace. CHECK: Blank lines aren't necessary before a close brace '}' Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/host_interface.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/wilc100

[PATCH V2 12/16] staging: wilc1000: host_int_init: remove multiple blank lines

2015-09-22 Thread Chaehyun Lim
This patch removes multiple blank lines in host_int_init function. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/host_interface.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/

[PATCH V2 16/16] staging: wilc1000: host_int_init: remove unnecessary parentheses

2015-09-22 Thread Chaehyun Lim
This patch removes unnecessary parentheses found by checkpatch.pl Unnecessary parentheses around pstrWFIDrv->hSemTestKeyBlock Unnecessary parentheses around pstrWFIDrv->hSemTestDisconnectBlock Unnecessary parentheses around pstrWFIDrv->hSemGetRSSI Unnecessary parentheses around pstrWFIDrv->hSemGet

[PATCH V2 07/16] staging: wilc1000: make add_virtual_intf static

2015-09-22 Thread Chaehyun Lim
This patch makes add_virtual_intf static. This function is used only at wilc_wfi_cfgoperation.c file. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[PATCH V2 13/16] staging: wilc1000: host_int_init: remove commented code

2015-09-22 Thread Chaehyun Lim
This patch removes commented code in host_int_init function. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/host_interface.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_

[PATCH V2 14/16] staging: wilc1000: host_int_init: replace s32Error with result

2015-09-22 Thread Chaehyun Lim
This patch replaces s32Error with result in host_int_init function to avoid camelcase. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/host_interface.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging

[PATCH V2 10/16] staging: wilc1000: host_int_init: replace kmalloc with kzalloc

2015-09-22 Thread Chaehyun Lim
This patch replaces kmalloc with kzalloc in host_int_init. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/host_interface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/stagi

[PATCH V2 11/16] staging: wilc1000: host_int_init: fix kzalloc error check

2015-09-22 Thread Chaehyun Lim
This patch fixes error check when kzalloc is failed. NULL comparison style is changed to use ! operator and PRINT_ER is also removed. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/host_interface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(

[PATCH V2 02/16] staging: wilc1000: remove useless comment

2015-09-22 Thread Chaehyun Lim
This patch removes useless comment. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/d

[PATCH V2 04/16] staging: wilc1000: make del_virtual_intf static

2015-09-22 Thread Chaehyun Lim
This patch makes del_virtual_intf static. This function is used only at wilc_wfi_cfgoperation.c file. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s

[PATCH V2 08/16] staging: wilc1000: remove CoreConfiguratorInit

2015-09-22 Thread Chaehyun Lim
This patch removes CoreConfiguratorInit function, which is not doing anything else except printing a PRINT_D message and returing a s32Error. It is also removed the code that is calling this function. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing and remove declaration of func

[PATCH V2 06/16] staging: wilc1000: make mgmt_tx static

2015-09-22 Thread Chaehyun Lim
This patch makes mgmt_tx static. This function is used only at wilc_wfi_cfgoperation.c file. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/st

[PATCH V2 03/16] staging: wilc1000: rename WILC_WFI_set_cqm_rssi_config

2015-09-22 Thread Chaehyun Lim
This patch replaces WILC_WFI_set_cqm_rssi_config with set_cqm_rssi_config to avoid CamelCase. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/s

[PATCH V2 09/16] staging: wilc1000: host_int_init: remove meaningless comment

2015-09-22 Thread Chaehyun Lim
This patch removes meaningless comment in host_int_init function. Signed-off-by: Chaehyun Lim --- v2: rebase latest staging-testing drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wil

  1   2   >