Re: [PATCH v10 00/15] staging: mt7621-pci: avoid custom pci config read and writes

2018-08-05 Thread Sergio Paracuellos
On Mon, Aug 6, 2018 at 2:21 AM, NeilBrown wrote: > On Fri, Aug 03 2018, Sergio Paracuellos wrote: > >> This patch series include an attempt to avoid the use of custom >> read and writes in driver code and use PCI subsystem common ones. >> >> In order to do this 'map_bus' callback is implemented

[PATCH] staging/vc04_services: Fix alignment of function arguments

2018-08-05 Thread Greg Gallagher
Fix warning generated by checkpatch.pl for alignment should match open parenthesis. This is a coding style change only. Signed-off-by: Greg Gallagher --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] staging: erofs: remove an extra semicolon in z_erofs_vle_unzip_all

2018-08-05 Thread Gao Xiang
There is an extra semicolon in z_erofs_vle_unzip_all, remove it. Reported-by: Julia Lawall Signed-off-by: zhong jiang Reviewed-by: Chao Yu Signed-off-by: Gao Xiang --- zhongjiang also submitted a patch yesterday titled "drivers/staging: Remove some unneeded semicolon" Since it was

Re: [PATCH] staging:mt29f_spinand: MT29F2G failing as only 16-bit arguments and variables used for addressing.

2018-08-05 Thread Jheng-Jhong Wu
So should I change this into a revert patch, or you will revert commit 6efb21d6d0e7 ("staging:mt29f_spinand: MT29F2G failing as only 16 bits used for addressing.") by yourself? Thanks. Best Regards, Jheng-Jhong Wu (Victor Wu) ___ devel mailing list

Re: [PATCH] staging: erofs: fix if assignment style issue

2018-08-05 Thread Chao Yu
On 2018/8/5 23:21, Kristaps Čivkulis wrote: > Fix coding style issue "do not use assignment in if condition" > detected by checkpatch.pl. > > Signed-off-by: Kristaps Čivkulis Reviewed-by: Chao Yu Thanks, ___ devel mailing list

Re: [PATCH v10 00/15] staging: mt7621-pci: avoid custom pci config read and writes

2018-08-05 Thread NeilBrown
On Fri, Aug 03 2018, Sergio Paracuellos wrote: > This patch series include an attempt to avoid the use of custom > read and writes in driver code and use PCI subsystem common ones. > > In order to do this 'map_bus' callback is implemented and also > data structures for driver are included. The

Re: [PATCH 2/2] staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames

2018-08-05 Thread Michael Straube
On 08/05/18 16:07, Greg Kroah-Hartman wrote: On Thu, Aug 02, 2018 at 06:35:05PM +0200, Michael Straube wrote: On 07/16/18 15:30, Michael Straube wrote: On 07/14/18 19:54, Ivan Safonov wrote: Put data to skb, decrypt with lib80211_crypt_ccmp, and place back to tx buffer. Signed-off-by: Ivan

[PATCH] Revert "staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames"

2018-08-05 Thread Michael Straube
On a Raven Ridge system with a r8188eu usb wifi device commit 515ce733e86e ("staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames") is causing two bugs and a warning in dmesg: [ 22.618465] BUG: scheduling while atomic: NetworkManager/489/0x0202 [ 22.618466] Modules linked in: amdkfd

Re: [PATCH 2/2] staging: fix unneeded_variables warnings

2018-08-05 Thread Larry Finger
On 08/05/2018 02:35 PM, Umang Parmar wrote: Directly return value and remove unneeded variables. Signed-off-by: Umang Parmar This patch also has the same problem with the subject. Otherwise it is OK. Larry ___ devel mailing list

Re: [PATCH 1/2] staging: fix possible_condition_with_no_effect warnings

2018-08-05 Thread Larry Finger
On 08/05/2018 02:35 PM, Umang Parmar wrote: Remove unnecessary conditions where if and else block had same code. Signed-off-by: Umang Parmar The subject should be "staging: rtlwifi: ...". If someone wants to search for fixes to the modules in drivers/staging/rtlwifi/, your subject would not

[PATCH 10/15] staging: gasket: apex: fold device add/remove logic inline

2018-08-05 Thread Todd Poynor
From: Todd Poynor Gasket device drivers are now in charge of the device add and remove sequences; the framework callbacks for these are deleted. Move the apex device add callback code to the probe function. Apex did not implement the removal callback. Signed-off-by: Todd Poynor ---

[PATCH 13/15] staging: gasket: core: protect against races during unregister

2018-08-05 Thread Todd Poynor
From: Todd Poynor Keep mutex held across the unregistration operation, until the driver_desc field of the global table is removed, to prevent a concurrent accessor from looking up the driver_desc while gasket_unregister_device() is in the processing of removing it. Reported-by: Guenter Roeck

[PATCH 09/15] staging: gasket: core: delete device add and remove callbacks

2018-08-05 Thread Todd Poynor
From: Todd Poynor Gasket device drivers are now in charge of orchestrating the device add and removal sequences, so the callbacks from the framework to the device drivers for these events are no longer needed. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 10 --

[PATCH 15/15] staging: gasket: core: remove incorrect extraneous comment

2018-08-05 Thread Todd Poynor
From: Todd Poynor A copy-and-pasted comment from another code sequence is removed from gasket core init sequence. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/gasket/gasket_core.c

[PATCH 14/15] staging: gasket: apex: place in low power reset until opened

2018-08-05 Thread Todd Poynor
From: Todd Poynor The apex device is left out of reset mode at the end of device probe/initialize processing. Add a call to enter reset at the end of the sequence, triggering power gating and other low power features. Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 4

[PATCH 04/15] staging: gasket: core: convert remaining info logs to debug

2018-08-05 Thread Todd Poynor
From: Todd Poynor Remaining info-level logs in gasket core converted to debug-level; the information is not needed during normal system operation. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH 12/15] staging: gasket: apex: move sysfs setup code to probe function

2018-08-05 Thread Todd Poynor
From: Todd Poynor The gasket framework no longer provides callbacks to the device driver for sysfs setup and teardown. Move the sysfs setup code to the device probe function. Apex does not implement sysfs cleanup code. Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 14

[PATCH 07/15] staging: gasket: core: let device driver enable/disable gasket device

2018-08-05 Thread Todd Poynor
From: Todd Poynor Move gasket device enable/disable functions from internal calls to external calls from the gasket device drivers. The device driver will call these functions at appropriate times in its processing, placing the device driver in control of this sequence and reducing the need for

[PATCH 11/15] staging: gasket: core: remove sysfs setup and cleanup callbacks

2018-08-05 Thread Todd Poynor
From: Todd Poynor Gasket device drivers now call into the gasket framework to initialize and de-initialize, rather than the other way around. The calling code can perform sysfs setup and cleanup actions without callbacks from the framework. Remove the sysfs setup and cleanup callbacks.

[PATCH 05/15] staging: gasket: core: remove device enable and disable callbacks

2018-08-05 Thread Todd Poynor
From: Todd Poynor Device enable/disable operations are moving from being initiated through the gasket framework to being initiated by the gasket device driver. The driver can perform any processing needed for these operations before or after the calls into the framework. Neither of these

[PATCH 02/15] staging: gasket: core: move core PCI calls to device drivers

2018-08-05 Thread Todd Poynor
From: Todd Poynor Remove gasket wrapping of PCI probe, enable, disable, and remove functions. Replace with calls to add and remove PCI gasket devices, to be called by the gasket device drivers. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 82

[PATCH 08/15] staging: gasket: apex: enable/disable gasket device from apex

2018-08-05 Thread Todd Poynor
From: Todd Poynor Gasket framework now places device drivers in charge of calling APIs to enable and disable gasket device operations. Make the appropriate calls from the apex driver. Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 12 1 file changed, 12

[PATCH 06/15] staging: gasket: apex: remove device enable and disable callbacks

2018-08-05 Thread Todd Poynor
From: Todd Poynor These are not implemented for apex, and are now being removed from the gasket framework. Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/gasket/apex_driver.c

[PATCH 00/15] staging: gasket: unwrap pci core and more

2018-08-05 Thread Todd Poynor
From: Todd Poynor Stop wrapping PCI core calls like probe, enable, remove, etc. in the gasket framework, move these calls to the device driver instead. Have gasket drivers call into framework on init, enable, disable, etc. sequences, rather than the other way around. Remove the

[PATCH 03/15] staging: gasket: apex: move PCI core calls to apex driver

2018-08-05 Thread Todd Poynor
From: Todd Poynor Apex driver moves PCI core calls like probe, enable, and remove from gasket to apex. Call new functions in gasket to register apex as a PCI device to the gasket framework. Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 49 +++-

[PATCH 01/15] staging: gasket: sysfs: clean up state if ENOMEM removing mapping

2018-08-05 Thread Todd Poynor
From: Todd Poynor If kcalloc() returns NULL in put_mapping(), continue to clean up state, including dropping the reference on the struct device and free attribute memory. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_sysfs.c | 13 ++--- 1 file changed, 6 insertions(+),

follow up

2018-08-05 Thread Sam Dennis
Want to know if you have photos for editing? We can edit 300+ images each day. We can work on ecommerce photos, jewelry photos, and portrait photos. We give cut out and clipping path for different kind of photos, and also we provide retouching for them. Send us a test photo and we will do

[PATCH] Staging:rtl8712: Style - Removed inline block comment to fix "Statements should start on a tapstop"

2018-08-05 Thread Frank Werner-Krippendorf
Removed 5 inline comments "/*volatile*/" rtl87x_event.h, to fix a coding style issue "Statements should start on a tabstop" detected by checkpatch.pl script. Signed-off-by: Frank Werner-Krippendorf --- drivers/staging/rtl8712/rtl871x_event.h | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH 1/2] staging: fix possible_condition_with_no_effect warnings

2018-08-05 Thread Umang Parmar
Remove unnecessary conditions where if and else block had same code. Signed-off-by: Umang Parmar --- .../rtlwifi/btcoexist/halbtc8822b2ant.c | 6 .../staging/rtlwifi/btcoexist/halbtcoutsrc.c | 6 ++-- drivers/staging/rtlwifi/phydm/phydm_debug.c | 29 ++-

[PATCH 2/2] staging: fix unneeded_variables warnings

2018-08-05 Thread Umang Parmar
Directly return value and remove unneeded variables. Signed-off-by: Umang Parmar --- .../staging/rtlwifi/phydm/phydm_hwconfig.c| 23 +-- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtlwifi/phydm/phydm_hwconfig.c

[PATCH v2 1/6] staging: rtl8188eu: use is_multicast_ether_addr in recv_linux.c

2018-08-05 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in os_dep/recv_linux.c. Signed-off-by: Michael Straube --- v2: changed duplicate subjects drivers/staging/rtl8188eu/os_dep/recv_linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v2 5/6] staging: rtl8188eu: use is_multicast_ether_addr in rtw_sta_mgt.c

2018-08-05 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_sta_mgt.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c

[PATCH v2 4/6] staging: rtl8188eu: remove whitespace - style

2018-08-05 Thread Michael Straube
Replace tabs with spaces and/or remove spaces where appropriate. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/hal/rtl8188eu_xmit.c| 22 +-- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c

[PATCH v2 6/6] staging: rtl8188eu: remove whitespace, add missing blank line

2018-08-05 Thread Michael Straube
Replace tabs with spaces and/or remove spaces where appropriate. Add a missing blank line after declarations. Also clears checkpatch warnings. WARNING: Statements should start on a tabstop WARNING: suspect code indent for conditional statements (8, 17) Signed-off-by: Michael Straube ---

[PATCH v2 3/6] staging: rtl8188eu: cleanup block comment - style

2018-08-05 Thread Michael Straube
Cleanup a block comment to conform with kernel coding style. Also cleans 'line over 80 characters' checkpatch warnings. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[PATCH v2 2/6] staging: rtl8188eu: use is_multicast_ether_addr in rtl8188eu_xmit.c

2018-08-05 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in hal/rtl8188eu_xmit.c. There is only one use, so remove the extra variable for the result of IS_MCAST. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c | 3 +-- 1 file changed, 1 insertion(+), 2

Re: [PATCH] Staging: rtl8712: rtl871x: removed unused code, to fix a coding style issue

2018-08-05 Thread Greg KH
On Sun, Aug 05, 2018 at 07:12:32PM +0200, Frank Werner-Krippendorf wrote: > Fixed a coding style issue. > > Signed-off-by: Frank Werner-Krippendorf > --- > drivers/staging/rtl8712/rtl871x_event.h | 10 +- > drivers/staging/rtl8712/rtl871x_io.h | 2 +- >

[PATCH] Staging: rtl8712: rtl871x: removed unused code, to fix a coding style issue

2018-08-05 Thread Frank Werner-Krippendorf
Fixed a coding style issue. Signed-off-by: Frank Werner-Krippendorf --- drivers/staging/rtl8712/rtl871x_event.h | 10 +- drivers/staging/rtl8712/rtl871x_io.h | 2 +- drivers/staging/rtl8712/rtl871x_pwrctrl.h | 10 +- drivers/staging/rtl8712/rtl871x_xmit.h| 14

Re: [PATCH] staging: erofs: fix if assignment style issue

2018-08-05 Thread Gao Xiang
Hi Kristaps, On 2018/8/5 23:21, Kristaps Čivkulis wrote: > Fix coding style issue "do not use assignment in if condition" > detected by checkpatch.pl. > > Signed-off-by: Kristaps Čivkulis I don't know whether this rule is mandatory or not for the current linux kernel when I checked the original

and for the photos

2018-08-05 Thread Sam Dennis
Want to know if you have photos for editing? We can edit 300+ images each day. We can work on ecommerce photos, jewelry photos, and portrait photos. We give cut out and clipping path for different kind of photos, and also we provide retouching for them. Send us a test photo and we will do

[PATCH] staging: erofs: fix if assignment style issue

2018-08-05 Thread Kristaps Čivkulis
Fix coding style issue "do not use assignment in if condition" detected by checkpatch.pl. Signed-off-by: Kristaps Čivkulis --- drivers/staging/erofs/unzip_vle.c | 3 ++- drivers/staging/erofs/xattr.c | 16 2 files changed, 10 insertions(+), 9 deletions(-) diff --git

Re: [PATCH 6/7] staging:rtl8192u: Remove unused member variable - Style

2018-08-05 Thread Greg KH
On Sat, Aug 04, 2018 at 10:18:58AM +0100, John Whitmore wrote: > Remove name of 'reserved' bitfield member which is simply used to pad > the bitfield to a byte boundary. The actual bit has been left in place > so alignment should not change. The name, which is not required has > been removed. > >

Re: [PATCH 5/6] staging: rtl8188eu: use is_multicast_ether_addr

2018-08-05 Thread Greg KH
On Thu, Aug 02, 2018 at 07:18:22PM +0200, Michael Straube wrote: > Use is_multicast_ether_addr instead of custom IS_MCAST in > core/rtw_sta_mgt.c. > > Signed-off-by: Michael Straube > --- > drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 2/6] staging: rtl8188eu: use is_multicast_ether_addr

2018-08-05 Thread Greg KH
On Thu, Aug 02, 2018 at 07:18:19PM +0200, Michael Straube wrote: > Use is_multicast_ether_addr instead of custom IS_MCAST in > hal/rtl8188eu_xmit.c. > > There is only one use, so remove the extra variable for the > result of IS_MCAST. > > Signed-off-by: Michael Straube > --- >

Re: [PATCH 7/8] staging: wilc1000: replace udelay with usleep_range

2018-08-05 Thread Greg KH
On Fri, Aug 03, 2018 at 01:58:51PM +0530, Ajay Singh wrote: > Hi Greg, > > On Thu, 2 Aug 2018 09:34:15 +0200 > Greg KH wrote: > > > On Sun, Jul 29, 2018 at 11:36:56AM +0530, Ajay Singh wrote: > > > Cleanup patch to avoid the below checkpatch reported issue. > > > > > > "usleep_range is

Re: [PATCH 2/2] staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames

2018-08-05 Thread Greg Kroah-Hartman
On Thu, Aug 02, 2018 at 06:35:05PM +0200, Michael Straube wrote: > On 07/16/18 15:30, Michael Straube wrote: > > On 07/14/18 19:54, Ivan Safonov wrote: > > > Put data to skb, decrypt with lib80211_crypt_ccmp, and place back to tx > > > buffer. > > > > > > Signed-off-by: Ivan Safonov > > > --- >

[PATCH] staging: rtl8188eu: use phydm_regdefine11n.h from rtlwifi

2018-08-05 Thread Michael Straube
Use rtlwifi/phydm/phydm_regdefine11n.h instead of odm_RegDefine11N.h and remove the now unused odm_RegDefine11N.h. The defines from odm_RegDefine11N.h are defined with the same values in rtlwifi/phydm/phydm_regdefine11n.h. There is one define that is named different, but that one is not used in

[PATCH v2] Staging: rtlwifi: base: Modified the line ending with a parenthesis

2018-08-05 Thread Sohil Ladhani
This patch fixes the "Lines should not end with a '('" warning reported by checkpatch.pl script. The line containing 'rtl_mrate_idx_to_arfr_id' function previously ended with '(', which did not conform to the linux kernel coding style. Signed-off-by: Sohil Ladhani --- Changes in v2: -