[PATCH v2] staging: wlan-ng: Remove unnecessary parentheses

2017-10-16 Thread Frank A. Cancio Bello
Remove unnecessary parentheses to comply with preferred coding style for the linux kernel and avoid the following checkpatch's message: 'CHECK: Unnecessary parentheses around' Credits to checkpatch. Signed-off-by: Frank A. Cancio Bello --- Changes in v2: *

RE: Two rtlwifi drivers?

2017-10-16 Thread Pkshih
> -Original Message- > From: Kalle Valo [mailto:kv...@codeaurora.org] > Sent: Monday, October 16, 2017 9:23 PM > To: Pkshih > Cc: Larry Finger; Greg Kroah-Hartman; Dan Carpenter; 莊彥宣; Johannes Berg; > Souptick Joarder; > de...@driverdev.osuosl.org; linux-wirel...@vger.kernel.org; >

RE: Two rtlwifi drivers?

2017-10-16 Thread Pkshih
> -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Monday, October 16, 2017 3:50 PM > To: Pkshih > Cc: Larry Finger; Kalle Valo; Dan Carpenter; 莊彥宣; Johannes Berg; Souptick > Joarder; > de...@driverdev.osuosl.org; linux-wirel...@vger.kernel.org;

[PATCH] staging: rtlwifi: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Also drops unused odm timer code. Cc: Greg Kroah-Hartman Cc: Larry Finger

[PATCH] staging/atomisp: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Mauro Carvalho Chehab Cc: Greg Kroah-Hartman Cc: Alan

[PATCH] staging/comedi: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Adds pointer back to comedi device from private struct. Cc: Ian Abbott Cc: H Hartley

[PATCH] staging: dgnc: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Lidza Louina Cc: Mark Hounschell Cc: Greg Kroah-Hartman

[PATCH] staging: rtl8192e: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Greg Kroah-Hartman Cc: Derek Robson Cc: Suniel Mahesh

[PATCH] staging: rtl8188eu: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Greg Kroah-Hartman Cc: Juliana Rodrigues Cc: Ivan

[PATCH] staging/fwserial: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Also removes redundant initialization of fw transaction timer, which already gets initialized

[PATCH] staging: rtl8192u: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Greg Kroah-Hartman Cc: Derek Robson Cc: simran

[PATCH] staging: rtl8712: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Larry Finger Cc: Florian Schilhabel

[PATCH] staging/wilc1000: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
As part of removing the timer_list.data field, this converts the wilc1000 driver to using from_timer and an explicit per-timer data field, since there doesn't appear to be a way to sanely resolve vif from hif_drv. Cc: Aditya Shankar Cc: Ganesh Krishna

Re: [PATCH v5 2/2] staging: ion: create one device entry per heap

2017-10-16 Thread Laura Abbott
On 10/10/2017 02:11 AM, Mark Brown wrote: > On Mon, Oct 09, 2017 at 05:10:37PM -0700, Laura Abbott wrote: >> On 10/09/2017 03:08 PM, Mark Brown wrote: >>> On Mon, Oct 09, 2017 at 02:25:47PM -0700, Laura Abbott wrote: > Anyway, to move this forward I think we need to see a proof of concept

Re: [PATCH] PCI: hv: fix "spurious APIC interrupt" due to new vector reservation mode

2017-10-16 Thread Thomas Gleixner
On Sat, 14 Oct 2017, Dexuan Cui wrote: > Last month the vector management code was reworked, and as a result of the > changes, e.g. commit 22d0b12f3560 ("genirq/irqdomain: Add force > reactivation flag to irq domains"), commit 4900be83602b ("x86/vector/msi: > Switch to global reservation mode")

Re: [Outreachy kernel] [PATCH] staging: wlan-ng: Remove unnecessary parentheses

2017-10-16 Thread Julia Lawall
On Mon, 16 Oct 2017, Frank A. Cancio Bello wrote: > On Mon, Oct 16, 2017 at 10:18:14PM +0200, Julia Lawall wrote: > > This patch has the same subject line as the one I previously commented on > > (modulo the typo in that one). > > > > Thanks Julia for your quick response. Before work on your

Re: [Outreachy kernel] [PATCH] staging: wlan-ng: Remove unnecessary parentheses

2017-10-16 Thread Frank A. Cancio Bello
On Mon, Oct 16, 2017 at 10:18:14PM +0200, Julia Lawall wrote: > This patch has the same subject line as the one I previously commented on > (modulo the typo in that one). > Thanks Julia for your quick response. Before work on your suggestions I have a question regarding the above comment: Do

Re: [PATCH] staging: ccree: fix boolreturn.cocci warning

2017-10-16 Thread Tobin C. Harding
On Mon, Oct 16, 2017 at 03:39:57PM +0530, suni...@techveda.org wrote: > From: Suniel Mahesh > > This fixes the following coccinelle warning: > WARNING: return of 0/1 in function 'ssi_is_hw_key' with return type bool. Perhaps Coccinelle emits WARNING: return of 0/1 in

Re: [PATCH] staging: ccree: Fix bool comparison

2017-10-16 Thread Tobin C. Harding
On Mon, Oct 16, 2017 at 03:38:11PM +0530, suni...@techveda.org wrote: > From: Suniel Mahesh > > Bool tests don't need comparisons. This commit log could be a bit longer. You may like to read Documentation/process/submitting-patches.rst (section 2). > This fixes the

Re: [PATCH] stagin: atomisp: Fix oops by unbalanced clk enable/disable call

2017-10-16 Thread Tobin C. Harding
On Mon, Oct 16, 2017 at 02:34:48PM +0200, Hans de Goede wrote: > The common-clk core expects clk consumers to always call enable/disable > in a balanced manner. The atomisp driver does not call gmin_flisclk_ctrl() > in a balanced manner, so add a clock_on bool and skip redundant calls. > > This

RE: staging: rtsx: Add support for RTS5260

2017-10-16 Thread Mario.Limonciello
> -Original Message- > From: Lee Jones [mailto:lee.jo...@linaro.org] > Sent: Friday, October 13, 2017 4:15 PM > To: Limonciello, Mario > Cc: rui_f...@realsil.com.cn; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de...@driverdev.osuosl.org;

Re: [Outreachy kernel] [PATCH] staging: wlan-ng: Remove unnecessary parentheses

2017-10-16 Thread Julia Lawall
This patch has the same subject line as the one I previously commented on (modulo the typo in that one). On Mon, 16 Oct 2017, Frank A. Cancio Bello wrote: > checkpatch message: 'CHECK: Unnecessary parentheses around'. Again, say what and why you have done. julia > Signed-off-by: Frank A.

[PATCH] staging: wlan-ng: Remove unnecessary parentheses

2017-10-16 Thread Frank A. Cancio Bello
checkpatch message: 'CHECK: Unnecessary parentheses around'. Signed-off-by: Frank A. Cancio Bello --- FYI: * I read 'Ignore checkpatch.pl if it complains about parens around boolean expressions or ternary conditionals in return values, like this: return

Re: Two rtlwifi drivers?

2017-10-16 Thread Kalle Valo
Hi PK, you got good answers already so only short reply from me: Pkshih writes: > 3) Coming drivers -- rtl8723de and rtl8821ce >We're developing the two drivers, and rtl8723de and rtl8821ce will >be ready on 2017Q4 and 2018Q1 respectively. The drivers are based on >

Re: Two rtlwifi drivers?

2017-10-16 Thread Oleksij Rempel
Am 16.10.2017 um 15:07 schrieb Kalle Valo: > Oleksij Rempel writes: > >>> 4) As Kalle mentioned, rtlwifi contains many magic numbers, and I >>>plan to fix them after rtl8723de and rtl8821ce. Because the drivers >>>are developing, the changes will make us hard to

Re: Two rtlwifi drivers?

2017-10-16 Thread Kalle Valo
Oleksij Rempel writes: >> 4) As Kalle mentioned, rtlwifi contains many magic numbers, and I >>plan to fix them after rtl8723de and rtl8821ce. Because the drivers >>are developing, the changes will make us hard to integrate. However, >>I don't have plan to

Re: Two rtlwifi drivers?

2017-10-16 Thread Kalle Valo
Dan Carpenter writes: > On Mon, Oct 16, 2017 at 02:41:38AM +, Pkshih wrote: >> 2) The rtlwifi in staging >>In staging, the module phydm v13 contains bugs, so I want to upgrade >>to v21 (Realtek internal version number). This upgrade contains a >>big

[PATCH] stagin: atomisp: Fix oops by unbalanced clk enable/disable call

2017-10-16 Thread Hans de Goede
The common-clk core expects clk consumers to always call enable/disable in a balanced manner. The atomisp driver does not call gmin_flisclk_ctrl() in a balanced manner, so add a clock_on bool and skip redundant calls. This fixes kernel oops like this one: [ 19.811613] gc0310_s_config S [

[PATCH] staging: ccree: fix boolreturn.cocci warning

2017-10-16 Thread sunil . m
From: Suniel Mahesh This fixes the following coccinelle warning: WARNING: return of 0/1 in function 'ssi_is_hw_key' with return type bool. Signed-off-by: Suniel Mahesh --- Note: - Patch was tested and built(ARCH=arm) on latest linux-next. - No

[PATCH] staging: ccree: Fix bool comparison

2017-10-16 Thread sunil . m
From: Suniel Mahesh Bool tests don't need comparisons. This fixes the following coccinelle warning: WARNING: Comparison of bool to 0/1 Signed-off-by: Suniel Mahesh --- Note: - Patch was tested and built(ARCH=arm) on latest linux-next. - No build

[PATCH v3 19/26] staging: most: core: fix formatting

2017-10-16 Thread Christian Gromm
This patch fixes coding style violations. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible drivers/staging/most/core.c | 10 +- 1 file changed, 1

[PATCH v3 17/26] staging: most: change designator for modules interfacing userspace

2017-10-16 Thread Christian Gromm
A module that is meant to make up the userspace experience of the driver is no longer referred to as AIM. Instead it is denoted as a component of the core. Further, it is understood as an integral part of the core, the purpose of which is to meaningfully enhance the core with new features

[PATCH v3 25/26] staging: most: core: remove class generation

2017-10-16 Thread Christian Gromm
This patch stops the core from generating a module owned class and registering it with the kernel. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible

[PATCH v3 15/26] staging: most: core: remove context pointer from struct most_aim

2017-10-16 Thread Christian Gromm
This patch removes the context pointer that was meant to provide the opportunity to store context information. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible

[PATCH v3 21/26] staging: most: core: fix data type

2017-10-16 Thread Christian Gromm
This patch fixes the type used to manage the channels of an registered MOST interface. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible drivers/staging/most/core.h

[PATCH 00/26] staging: most: make use of kernel's device model and fix defects

2017-10-16 Thread Christian Gromm
This patch set integrates the MOST driver to the Linux kernel's device model and provides bug fixes. Part of this process is moving and renaming files to get a clearer directory layout. Andrey Shvetsov (2): staging: most: update driver usage file staging: most: core: fix list traversing

[PATCH v3 08/26] staging: most: core: track aim modules with linked list

2017-10-16 Thread Christian Gromm
This patch makes the core keep track of the registered modules. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible drivers/staging/most/core.c | 6 +++---

[PATCH v3 11/26] staging: most: core: fix header file mostcore.h

2017-10-16 Thread Christian Gromm
This patch includes the header device.h and removes the forward declaration of kobject. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible

[PATCH v3 07/26] staging: most: core: use structure to pack driver specific data

2017-10-16 Thread Christian Gromm
This patch introduces the structure "mostcore" to bundle core specific data structures. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible

[PATCH v3 13/26] staging: most: core: replace struct most_inst_obj with struct interface_private

2017-10-16 Thread Christian Gromm
This patch introduces struct interface_private as a replacement for the struct most_inst_obj. This structure holds private data that is only needed by the core module and will be accessed by a pointer from within the most_interface structure. As a result of this replacement the bus helper

[PATCH v3 04/26] staging: most: core: rename struct most_c_aim_obj to pipe

2017-10-16 Thread Christian Gromm
This patch replaces the confusing name of struct "most_c_aim_obj" with "pipe" to better express the function that is behind the structure. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make

[PATCH v3 02/26] staging: most: integrate driver in kernel's device model

2017-10-16 Thread Christian Gromm
The following patch adapts the driver to use the device model by: - adopting the MOST bus_type - registering the core as a busdriver - removing private kobject/kset usage - removing private lists and structures to track registered modules and making use

[PATCH v3 09/26] staging: most: core: let core manage aim attributes

2017-10-16 Thread Christian Gromm
This patch creates a new attribute group to manage the attributes of a registered aim module in sysfs and changes the show and store functions accordingly. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with

[PATCH v3 06/26] staging: most: core: rename members aim* of struct most_channel

2017-10-16 Thread Christian Gromm
This patch renames the struct members "aim0" and "aim0" to "pipe0" and "pipe1". Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible drivers/staging/most/core.c | 104

[PATCH v3 20/26] staging: most: usb: clear functional stall on tx endpoint

2017-10-16 Thread Christian Gromm
This patch triggers the host to send a control request to clear the endpoint's Halt feature. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible

[PATCH v3 26/26] staging: most: core: fix list traversing

2017-10-16 Thread Christian Gromm
From: Andrey Shvetsov This patch fixes the offset and data handling when traversing the list of devices that are attached to the bus. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches

[PATCH v3 22/26] staging: most: core: check value returned by match function

2017-10-16 Thread Christian Gromm
This patch adds a check for the pointer returned by the function match_component. It is needed to prevent a NULL pointer dereference in case the provided component name does not match any list entry. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: -

[PATCH v3 24/26] staging: most: cdev: bundle module variables in structure

2017-10-16 Thread Christian Gromm
This patch creates the structure comp to bundle the module variables. For an improved readability some variables are renamed. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file

[PATCH v3 18/26] staging: most: core: fix comment sections

2017-10-16 Thread Christian Gromm
This patch updates and corrects the comment sections of the code. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible drivers/staging/most/core.c | 87

[PATCH v3 10/26] staging: most: core: remove struct device from struct most_aim

2017-10-16 Thread Christian Gromm
This patch removes the struct device from the most_aim as it is not needed. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible drivers/staging/most/core.c | 17

[PATCH v3 05/26] staging: most: core: rename struct memeber

2017-10-16 Thread Christian Gromm
This patch renames the member "ptr" of struct pipe to "aim". This is needed to increase the readability of the code. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible

[PATCH v3 03/26] staging: most: core: rename structure

2017-10-16 Thread Christian Gromm
This patch renames the structure most_c_obj to most_channel. This is done to enhance readability. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible

[PATCH v3 16/26] staging: most: usb: remove pointer initialization

2017-10-16 Thread Christian Gromm
This patch removes the initialization of the priv pointer of the most_interface structure. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to make file movement visible

[PATCH v3 01/26] staging: most: rearrange source files

2017-10-16 Thread Christian Gromm
This patch renames and moves the source files of the driver. Additionally, it adapts the ABI, Makefiles and Kconfig files of the kernel's build system. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M

[PATCH v3 12/26] staging: most: core: rename function

2017-10-16 Thread Christian Gromm
The core module used to have two functions to find a certain channel. One by name and one by interface. Since no channel is searched by its interface name anymore the by_name suffix is rendered redundant. This patch renames the function accordingly. Signed-off-by: Christian Gromm

[PATCH v3 14/26] staging: most: core: make channel name accessible from struct most_channel

2017-10-16 Thread Christian Gromm
This patch stores a channel's name inside the most_channel structure, hence making it accessible outside of function most_register_interface. Signed-off-by: Christian Gromm --- v2: fix patch numeration v3: - add cover letter - create patches with -M switch to

Re: Two rtlwifi drivers?

2017-10-16 Thread Greg Kroah-Hartman
On Mon, Oct 16, 2017 at 02:41:38AM +, Pkshih wrote: > > > > -Original Message- > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > > Sent: Thursday, October 12, 2017 6:35 PM > > To: Kalle Valo > > Cc: Larry Finger; Dan Carpenter; Pkshih; 莊彥宣; Johannes Berg; Souptick >

Re: Two rtlwifi drivers?

2017-10-16 Thread Dan Carpenter
On Mon, Oct 16, 2017 at 02:41:38AM +, Pkshih wrote: > 2) The rtlwifi in staging >In staging, the module phydm v13 contains bugs, so I want to upgrade >to v21 (Realtek internal version number). This upgrade contains a >big patch that the difference between v13 and v21, and there are

Re: 答复: [PATCH] staging: rtsx: Add support for RTS5260

2017-10-16 Thread Greg KH
On Mon, Oct 16, 2017 at 05:58:12AM +, 冯锐 wrote: > > On Fri, Oct 13, 2017 at 10:54:22AM +0100, Lee Jones wrote: > > > On Fri, 13 Oct 2017, Greg KH wrote: > > > > > > > On Fri, Oct 13, 2017 at 04:50:35PM +0800, rui_f...@realsil.com.cn wrote: > > > > > From: rui_feng > >

Re: Two rtlwifi drivers?

2017-10-16 Thread Oleksij Rempel
Hi Just my two cents, :) Am 16.10.2017 um 04:41 schrieb Pkshih: > > >> -Original Message- >> From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] >> Sent: Thursday, October 12, 2017 6:35 PM >> To: Kalle Valo >> Cc: Larry Finger; Dan Carpenter; Pkshih; 莊彥宣; Johannes Berg;