Re: [PATCH 1/6] staging: kpc2000: make kconfig symbol 'KPC2000' select dependencies

2019-05-22 Thread Greg Kroah-Hartman
On Thu, May 23, 2019 at 01:35:02AM +, Geordan Neukum wrote: > On Wed, May 22, 2019 at 12:27 PM Greg Kroah-Hartman > wrote: > > depends on is better than select. There's a change to depend on UIO for > > this code already in my -linus branch which will show up in Linus's tree > > in a week or

Re: staging: mt7621-pci: factor out 'mt7621_pcie_enable_port' function

2019-05-22 Thread Sergio Paracuellos
Hi Greg, On Thu, May 23, 2019 at 4:11 AM Greg Ungerer wrote: > > Hi Sergio, > > On 22/5/19 4:27 pm, Sergio Paracuellos wrote: > [snip] > > There are some big changes between 4.20 and 5.x. One is the use of PERST_N > > instead of using gpio. This PERT_N stuff is used now on enable ports > >

[Patch v2] staging: rtl8723bs: core: rtw_recv: fix warning Comparison to NULL

2019-05-22 Thread Hariprasad Kelam
fix below warning reported by checkpatch CHECK: Comparison to NULL could be written "!precvpriv->pallocated_frame_buf" CHECK: Comparison to NULL could be written "padapter" Signed-off-by: Hariprasad Kelam - changes in v2: Corected few erorrs like (!*psta == NULL) pointed in

Re: staging: mt7621-pci: factor out 'mt7621_pcie_enable_port' function

2019-05-22 Thread Greg Ungerer
Hi Sergio, On 22/5/19 4:27 pm, Sergio Paracuellos wrote: [snip] There are some big changes between 4.20 and 5.x. One is the use of PERST_N instead of using gpio. This PERT_N stuff is used now on enable ports assuming the link of PCI is properly detected after enabling the phy. And it seems it

Your Response Please....

2019-05-22 Thread Klen Tindle
Hello Dear, I am Klen Tindle by name, from America and working with the USA military still on a mission in Afghanistan. I really need your assistance that is the reason why I contacted you, I want to go into a cordial relationship and business partnership with you, as I don't know how long we

Re: [PATCH 1/6] staging: kpc2000: make kconfig symbol 'KPC2000' select dependencies

2019-05-22 Thread Geordan Neukum
On Wed, May 22, 2019 at 12:27 PM Greg Kroah-Hartman wrote: > depends on is better than select. There's a change to depend on UIO for > this code already in my -linus branch which will show up in Linus's tree > in a week or so. Noted on both accounts. Thanks for the feedback and sorry for the

[PATCH] staging: pi433: cleanup to adhere with linux coding style

2019-05-22 Thread Shobhit Kukreti
The linux coding style emphasizes on a limit of 80 characters per line. Cleaned up several over 80 character warnings in following files: pi433_if.c pi433_if.h rf69.c Signed-off-by: Shobhit Kukreti --- drivers/staging/pi433/pi433_if.c | 15 --- drivers/staging/pi433/pi433_if.h | 25

[PATCH 5/6] staging: kpc2000: add space after comma in cell_probe.c

2019-05-22 Thread Simon Sandström
Fixes checkpatch.pl error "space required after that ','". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c

[PATCH 2/6] staging: kpc2000: add space between ) and { in cell_probe.c

2019-05-22 Thread Simon Sandström
Fixes checkpatch.pl error "space required before the open brace '{'". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c

[PATCH 0/6] Fix coding style issues in drivers/staging/kpc2000

2019-05-22 Thread Simon Sandström
These patches fixes a bunch of minor coding style issues in kpc2000/cell_probe.c. - Simon Simon Sandström (6): staging: kpc2000: fix indent in cell_probe.c staging: kpc2000: add space between ) and { in cell_probe.c staging: kpc2000: fix invalid linebreaks in cell_probe.c staging:

[PATCH 6/6] staging: kpc2000: remove invalid spaces in cell_probe.c

2019-05-22 Thread Simon Sandström
Fixes checkpatch.pl error "space prohibited before/after that parenthesis". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c

[PATCH 3/6] staging: kpc2000: fix invalid linebreaks in cell_probe.c

2019-05-22 Thread Simon Sandström
Fixes checkpatch.pl error "else should follow close brace '}'" and "trailing statements should be on next line". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git

[PATCH 1/6] staging: kpc2000: fix indent in cell_probe.c

2019-05-22 Thread Simon Sandström
Use tabs instead of spaces for indentation. Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 574 +-- 1 file changed, 287 insertions(+), 287 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c

[PATCH 4/6] staging: kpc2000: add spaces around operators in cell_probe.c

2019-05-22 Thread Simon Sandström
Fixes checkpatch.pl warning "spaces preferred around that ". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c

Re: [PATCH] staging: rtl8192u: Remove an unnecessary NULL check

2019-05-22 Thread Nathan Chancellor
On Wed, May 22, 2019 at 10:04:18AM +0300, Dan Carpenter wrote: > On Tue, May 21, 2019 at 10:42:21AM -0700, Nathan Chancellor wrote: > > Clang warns: > > > > drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:2663:47: warning: > > address of array 'param->u.wpa_ie.data' will always evaluate to

[PATCH] staging: kpc2000: kpc_i2c: fix platform_no_drv_owner.cocci warnings

2019-05-22 Thread kbuild test robot
From: kbuild test robot drivers/staging/kpc2000/kpc2000_i2c.c:652:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Fixes: 43ad38191816 ("staging: kpc2000:

[staging:staging-next 106/106] drivers/staging/kpc2000/kpc2000_i2c.c:652:3-8: No need to set .owner here. The core will do it.

2019-05-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next head: 43ad38191816a6b77cc4bd8222353320a71a1d2d commit: 43ad38191816a6b77cc4bd8222353320a71a1d2d [106/106] staging: kpc2000: kpc_i2c: add static qual to local symbols in kpc_i2c.c If you fix the issue,

[PATCH v2] staging: rtl8723bs: core: rtw_mlme_ext: fix warning Unneeded variable: "ret"

2019-05-22 Thread Hariprasad Kelam
This patch fixes below warnings reported by coccicheck drivers/staging/rtl8723bs/core/rtw_mlme_ext.c:1888:14-17: Unneeded variable: "ret". Return "_FAIL" on line 1920 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c:466:5-8: Unneeded variable: "res". Return "_SUCCESS" on line 494 Signed-off-by:

[PATCH v3] staging: rtl8723bs: core: rtw_ap: fix Unneeded variable: "ret". Return "0

2019-05-22 Thread Hariprasad Kelam
Function "rtw_sta_flush" always returns 0 value. So change return type of rtw_sta_flush from int to void. Same thing applies for rtw_hostapd_sta_flush Signed-off-by: Hariprasad Kelam -- Changes v2 - change return type of rtw_sta_flush -- Changes v3 - fix indentaion issue

[PATCH] staging: unisys: visornic: Replace GFP_ATOMIC with GFP_KERNEL

2019-05-22 Thread Hariprasad Kelam
As per below information GFP_KERNEL FLAG This is a normal allocation and might block. This is the flag to use in process context code when it is safe to sleep. GFP_ATOMIC FLAG The allocation is high-priority and does not sleep. This is the flag to use in interrupt handlers, bottom halves and

[Patch v3] staging: rtl8723bs: core: rtw_ap: fix Unneeded variable: "ret". Return "0

2019-05-22 Thread Hariprasad Kelam
Function "rtw_sta_flush" always returns 0 value. So change return type of rtw_sta_flush from int to void. Same thing applies for rtw_hostapd_sta_flush Signed-off-by: Hariprasad Kelam -- Changes v2 - change return type of rtw_sta_flush -- Changes v3 - fix indentaion issue

Re: [PATCH] Staging: rtl8723bs: os_dep: Remove functions that don't perform any task

2019-05-22 Thread Greg KH
On Wed, May 22, 2019 at 09:30:56PM +0530, Puranjay Mohan wrote: > Remove functions which return 0 without performing any task. > Fix following warnings issued by coccicheck: > Unneeded variable: "err". Return "0" on line 4484 > and similar other warnings. > > Signed-off-by: Puranjay Mohan > ---

[PATCH] Staging: rtl8723bs: os_dep: Remove functions that don't perform any task

2019-05-22 Thread Puranjay Mohan
Remove functions which return 0 without performing any task. Fix following warnings issued by coccicheck: Unneeded variable: "err". Return "0" on line 4484 and similar other warnings. Signed-off-by: Puranjay Mohan --- .../staging/rtl8723bs/os_dep/ioctl_linux.c| 41 --- 1

Re: [PATCH v6 0/6] staging: kpc2000: another batch of fixes

2019-05-22 Thread Jeremy Sowden
On 2019-05-22, at 14:45:51 +0200, Greg KH wrote: > On Tue, May 21, 2019 at 11:35:18AM +0100, Jeremy Sowden wrote: > > There are a number relating to device attributes, one formatting > > patch, and another that changes how card numbers are assigned. > > > > Greg reckoned that the changes to the

Re: [PATCH 3/6] staging: kpc2000: kpc_i2c: newline fixups to meet linux style guide

2019-05-22 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 12:13:59PM +, Geordan Neukum wrote: > The linux coding style document states: > > 1) That braces should not be used where a single single statement > will do. Therefore all instances of single block statements > wrapped in braces that do not meet the

Re: [PATCH v6 0/6] staging: kpc2000: another batch of fixes

2019-05-22 Thread Greg KH
On Tue, May 21, 2019 at 11:35:18AM +0100, Jeremy Sowden wrote: > There are a number relating to device attributes, one formatting patch, > and another that changes how card numbers are assigned. > > Greg reckoned that the changes to the code in the attribute call-backs > that gets the struct

Re: [Patch v2] staging: rtl8723bs: core: rtw_ap: fix Unneeded variable: "ret". Return "0

2019-05-22 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 12:30:33AM +0530, Hariprasad Kelam wrote: > Function "rtw_sta_flush" always returns 0 value. > So change return type of rtw_sta_flush from int to void. > > Same thing applies for rtw_hostapd_sta_flush > > Signed-off-by: Hariprasad Kelam > -- > Changes v2 - >

Re: [PATCH v3 3/6] staging: kpc2000: simplified kp2000_device retrieval in device attributes call-backs.

2019-05-22 Thread Greg KH
On Tue, May 21, 2019 at 02:23:13PM +0300, Dan Carpenter wrote: > On Fri, May 17, 2019 at 01:54:51PM +0200, Greg KH wrote: > > On Fri, May 17, 2019 at 12:03:12PM +0100, Jeremy Sowden wrote: > > > static ssize_t show_attr(struct device *dev, struct device_attribute > > > *attr, char *buf) > > >

Re: [PATCH 0/6] Minor updates to kpc_i2c driver and kpc2000 core

2019-05-22 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 12:13:56PM +, Geordan Neukum wrote: > Attached are an assortment of minor updates to the kpc_i2c driver as > well as a build fix for all of those who will need the KPC2000 core. Nit, please put "staging" in your 0/6 patch to make it easier for scripts to pick this up

Re: [PATCH 1/6] staging: kpc2000: make kconfig symbol 'KPC2000' select dependencies

2019-05-22 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 12:13:57PM +, Geordan Neukum wrote: > The kpc2000 core makes calls against functions which are conditionally > exported upon the kconfig symbols 'MFD_CORE' and 'UIO' being selected > Therefore, in order to guarantee correct compilation, the 'KPC2000' > kconfig symbol

[PATCH 2/6] staging: kpc2000: kpc_i2c: remove unused module param disable_features

2019-05-22 Thread Geordan Neukum
The module parameter 'disable_features' is currently unused. Therefore, it should be removed. Signed-off-by: Geordan Neukum --- drivers/staging/kpc2000/kpc2000_i2c.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_i2c.c

[PATCH 0/6] Minor updates to kpc_i2c driver and kpc2000 core

2019-05-22 Thread Geordan Neukum
Attached are an assortment of minor updates to the kpc_i2c driver as well as a build fix for all of those who will need the KPC2000 core. Thanks, Geordan Geordan Neukum (6): staging: kpc2000: make kconfig symbol 'KPC2000' select dependencies staging: kpc2000: kpc_i2c: remove unused module

[PATCH 5/6] staging: kpc2000: kpc_i2c: Remove unnecessary function tracing prints

2019-05-22 Thread Geordan Neukum
Many of the functions in kpc_i2c log debug-level messages to the kernel log message buffer upon invocation. This is unnecessary, as debugging tools like kgdb, kdb, etc. or the tracing tool ftrace should be able to provide this same information. Therefore, remove these print statements.

[PATCH 4/6] staging: kpc2000: kpc_i2c: use instead of

2019-05-22 Thread Geordan Neukum
Rather than include asm/io.h, include linux/io.h. Issue reported by the script checkpatch.pl. Signed-off-by: Geordan Neukum --- drivers/staging/kpc2000/kpc2000_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000_i2c.c

[PATCH 6/6] staging: kpc2000: kpc_i2c: add static qual to local symbols in kpc_i2c.c

2019-05-22 Thread Geordan Neukum
kpc_i2c.c declares: - two functions - pi2c_probe() - pi2c_remove() - one struct - i2c_plat_driver_i which are local to the file, yet missing the static qualifier. Add the static qualifier to these symbols. Signed-off-by: Geordan Neukum --- drivers/staging/kpc2000/kpc2000_i2c.c |

[PATCH 3/6] staging: kpc2000: kpc_i2c: newline fixups to meet linux style guide

2019-05-22 Thread Geordan Neukum
The linux coding style document states: 1) That braces should not be used where a single single statement will do. Therefore all instances of single block statements wrapped in braces that do not meet the qualifications of any of the exceptions to the rule should be fixed up.

[PATCH 1/6] staging: kpc2000: make kconfig symbol 'KPC2000' select dependencies

2019-05-22 Thread Geordan Neukum
The kpc2000 core makes calls against functions which are conditionally exported upon the kconfig symbols 'MFD_CORE' and 'UIO' being selected Therefore, in order to guarantee correct compilation, the 'KPC2000' kconfig symbol (which brings in that code) must explicitly select its hard dependencies.

Re: [PATCH] staging: rtl8723bs: Add missing blank lines

2019-05-22 Thread Dan Carpenter
On Tue, May 21, 2019 at 09:46:55PM -0300, Fabio Lima wrote: > This patch resolves the following warning from checkpatch.pl > WARNING: Missing a blank line after declarations > > Signed-off-by: Fabio Lima > --- > drivers/staging/rtl8723bs/core/rtw_debug.c | 2 ++ > 1 file changed, 2

Re: [PATCH] staging: rtl8192u: Remove an unnecessary NULL check

2019-05-22 Thread Dan Carpenter
On Tue, May 21, 2019 at 03:57:46PM -0700, Nick Desaulniers wrote: > > > - if (param->u.wpa_ie.len > MAX_WPA_IE_LEN || > > > - (param->u.wpa_ie.len && !param->u.wpa_ie.data)) > > > > Right so, the types in this expression: > > > > param: struct ieee_param* > > param->u: *anonymous

Re: [PATCH] staging: rtl8723bs: Add missing blank lines

2019-05-22 Thread Jeremy Sowden
On 2019-05-21, at 21:46:55 -0300, Fabio Lima wrote: > This patch resolves the following warning from checkpatch.pl > WARNING: Missing a blank line after declarations > > Signed-off-by: Fabio Lima > --- > drivers/staging/rtl8723bs/core/rtw_debug.c | 2 ++ > 1 file changed, 2 insertions(+) > >

Re: [PATCH] staging: rtl8192u: Remove an unnecessary NULL check

2019-05-22 Thread Dan Carpenter
On Tue, May 21, 2019 at 10:42:21AM -0700, Nathan Chancellor wrote: > Clang warns: > > drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:2663:47: warning: > address of array 'param->u.wpa_ie.data' will always evaluate to 'true' > [-Wpointer-bool-conversion] > (param->u.wpa_ie.len

Re: staging: mt7621-pci: factor out 'mt7621_pcie_enable_port' function

2019-05-22 Thread Sergio Paracuellos
Hi Greg, On Wed, May 22, 2019 at 2:20 AM Greg Ungerer wrote: > > Hi Sergio, > > Thanks for the quick response. > > On 21/5/19 6:14 pm, Sergio Paracuellos wrote: > > On Tue, May 21, 2019 at 8:44 AM Greg Ungerer wrote: > >> I am working on a couple of different MedaiTek MT7621 based platforms >