[PATCH resent] staging: lustre: Deletion of unnecessary checks before three function calls

2015-07-14 Thread SF Markus Elfring
From: Markus Elfring The following functions test whether their argument is NULL and then return immediately. * kfree * ll_file_data_put * ptlrpc_connection_put Thus the test around such calls is not needed. This issue was detected by using the Coccinelle software. See also a previous update

[V2 0/7] introduce Hyper-V VM Sockets(hvsock)

2015-07-14 Thread Dexuan Cui
Changes since v1: - updated "[V2 6/7] hvsock: introduce Hyper-V VM Sockets feature" - added __init and __exit for the module init/exit functions - net/hv_sock/Kconfig: "default m" -> "default m if HYPERV" - MODULE_LICENSE: "Dual MIT/GPL" -> "Dual BSD/GPL" Hyper-V VM Socket

[V2 2/7] Drivers: hv: vmbus: define a new VMBus message type for hvsock

2015-07-14 Thread Dexuan Cui
A function to send the type of message is also added. The coming net/hvsock driver will use this function to proactively request the host to offer a VMBus channel for a new hvsock connection. Signed-off-by: Dexuan Cui --- drivers/hv/channel.c | 15 +++ drivers/hv/channel_mgmt.c

[V2 1/7] Drivers: hv: vmbus: define the new offer type for Hyper-V socket (hvsock)

2015-07-14 Thread Dexuan Cui
A helper function is also added. Signed-off-by: Dexuan Cui --- include/linux/hyperv.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 30d3a1f..aa21814 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -236,6 +236,

[V2 3/7] Drivers: hv: vmbus: add APIs to send/recv hvsock packet and get the r/w-ability

2015-07-14 Thread Dexuan Cui
This will be used by the coming net/hvsock driver. Signed-off-by: Dexuan Cui --- drivers/hv/channel.c | 131 ++ drivers/hv/hyperv_vmbus.h | 4 ++ drivers/hv/ring_buffer.c | 14 + include/linux/hyperv.h| 33 4 files change

[V2 5/7] Drivers: hv: vmbus: add a helper function to set a channel's pending send size

2015-07-14 Thread Dexuan Cui
This will be used by the coming net/hvsock driver. Signed-off-by: Dexuan Cui --- include/linux/hyperv.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 307910b3..c52f4cb 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv

[V2 4/7] Drivers: hv: vmbus: add APIs to register callbacks to process hvsock connection

2015-07-14 Thread Dexuan Cui
With the 2 APIs supplied by the VMBus driver, the coming net/hvsock driver can register 2 callbacks and can know when a new hvsock connection is offered by the host, and when a hvsock connection is being closed by the host. Signed-off-by: Dexuan Cui --- drivers/hv/Makefile | 4 ++- dr

[V2 6/7] hvsock: introduce Hyper-V VM Sockets feature

2015-07-14 Thread Dexuan Cui
Hyper-V VM sockets (hvsock) supplies a byte-stream based communication mechanism between the host and a guest. It's kind of TCP over VMBus, but the transportation layer (VMBus) is much simpler than IP. With Hyper-V VM Sockets, applications between the host and a guest can talk with each other direc

[V2 7/7] Drivers: hv: vmbus: disable local interrupt when hvsock's callback is running

2015-07-14 Thread Dexuan Cui
In the SMP guest case, when the per-channel callback hvsock_events() is running on virtual CPU A, if the guest tries to close the connection on virtual CPU B: we invoke vmbus_close() -> vmbus_close_internal(), then we can have trouble: on B, vmbus_close_internal() will send IPI reset_channel_cb() t

[PATCH v2 03/48] usb: gadget: add endpoint capabilities helper macros

2015-07-14 Thread Robert Baldyga
Add macros useful while initializing array of endpoint capabilities structures. These macros makes structure initialization more compact to decrease number of code lines and increase readability of code. Signed-off-by: Robert Baldyga --- include/linux/usb/gadget.h | 20 1 fi

[PATCH v2 00/48] usb: gadget: rework ep matching and claiming mechanism

2015-07-14 Thread Robert Baldyga
Hello, This patch series reworks endpoint matching and claiming mechanism in epautoconf. From v2 there are 11 additional patches adding 'ep_match' to usb_gadget_ops and removing chip-specific quirk handling from generic code of autoconfig. I'm not sure if this patch set isn't too long, as it has

[PATCH v2 02/48] usb: gadget: add endpoint capabilities flags

2015-07-14 Thread Robert Baldyga
Introduce struct usb_ep_caps which contains information about capabilities of usb endpoints - supported transfer types and directions. This structure should be filled by UDC driver for each of its endpoints, and will be used in epautoconf in new ep matching mechanism which will replace ugly guessin

[PATCH v2 01/48] usb: gadget: encapsulate endpoint claiming mechanism

2015-07-14 Thread Robert Baldyga
So far it was necessary for usb functions to set ep->driver_data in endpoint obtained from autoconfig to non-null value, to indicate that endpoint is claimed by function (in autoconfig it was checked if endpoint has set this field to non-null value, and if it has, it was assumed that it is claimed)

[PATCH v2 04/48] staging: emxx_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Fixed typo in "epc-nulk" to "epc-bulk". Signed-off-by: Robert Baldyga --- drivers/staging/emxx_udc/emxx_udc.c | 60 ++--- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/drivers/staging/emx

[PATCH v2 06/48] usb: dwc2: gadget: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/dwc2/gadget.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 4d47b7c..8771b66 100644 --- a/drivers/usb/dwc2/gadg

[PATCH v2 07/48] usb: dwc3: gadget: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/dwc3/gadget.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 333a7c0..8d1f768 100644 --- a/drivers/usb/dwc3/gadg

[PATCH v2 08/48] usb: gadget: amd5536udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/amd5536udc.c | 57 ++--- 1 file changed, 47 insertions(+), 10 deletions(-) diff --git a/drivers/usb/gadget/udc/amd5536udc.c b/drivers/usb/gadget/ud

[PATCH v2 14/48] usb: gadget: fsl_qe_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fsl_qe_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c index e0822f1..5fb6f8b 10064

[PATCH v2 10/48] usb: gadget: bcm63xx_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/bcm63xx_udc.c | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/bcm63xx_udc.c b/drivers/usb/gadget/udc/bcm63xx_u

[PATCH v2 09/48] usb: gadget: at91_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/at91_udc.c | 33 - 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/udc/at91_ud

[PATCH v2 05/48] usb: chipidea: udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/chipidea/udc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 764f668..eff7cfb 100644 --- a/drivers/usb/chipi

[PATCH v2 11/48] usb: gadget: bdc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/bdc/bdc_ep.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/bdc/bdc_ep.c b/drivers/usb/gadget/udc/bdc/bdc_ep.c index b04980c..f9a8f57 100644 --

[PATCH v2 16/48] usb: gadget: fusb300_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fusb300_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fusb300_udc.c b/drivers/usb/gadget/udc/fusb300_udc.c index 3970f45..948845c 10

[PATCH v2 15/48] usb: gadget: fsl_udc_core: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fsl_udc_core.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c index c60022b..aab52

[PATCH v2 12/48] usb: gadget: dummy-hcd: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/dummy_hcd.c | 65 +- 1 file changed, 50 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc

[PATCH v2 20/48] usb: gadget: m66592-udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/m66592-udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/m66592-udc.c b/drivers/usb/gadget/udc/m66592-udc.c index 309706f..e404553 10064

[PATCH v2 19/48] usb: gadget: lpc32xx_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/lpc32xx_udc.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c inde

[PATCH v2 23/48] usb: gadget: net2272: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/net2272.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c index 195baf3..34ec1ec 100644 --- a/dr

[PATCH v2 18/48] usb: gadget: gr_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/gr_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/gr_udc.c b/drivers/usb/gadget/udc/gr_udc.c index c886887..8aa2593 100644 --- a/drive

[PATCH v2 13/48] usb: gadget: fotg210-udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fotg210-udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c index e547ea7..960c70c 10

[PATCH v2 22/48] usb: gadget: mv_udc_core: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/mv_udc_core.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/mv_udc_core.c b/drivers/usb/gadget/udc/mv_udc_core.c index d32160d..306a7ff 100644

[PATCH v2 21/48] usb: gadget: mv_u3d_core: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/mv_u3d_core.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/mv_u3d_core.c b/drivers/usb/gadget/udc/mv_u3d_core.c index ea35a24..4c48969 100644

[PATCH v2 17/48] usb: gadget: goku_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/goku_udc.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/gadget/udc/goku_udc.c b/drivers/usb/gadget/udc/goku_udc.c index 9e8d842..46b8d14 100644 --- a/dri

[PATCH v2 24/48] usb: gadget: net2280: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/net2280.c | 50 ++-- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/ne

[PATCH v2 28/48] usb: gadget: pxa27x_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/pxa27x_udc.h | 33 ++--- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/udc/pxa27x_udc.h b/drivers/usb/gadget/udc/px

[PATCH v2 29/48] usb: gadget: r8a66597-udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/r8a66597-udc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/gadget/udc/r8a66597-udc.c b/drivers/usb/gadget/udc/r8a66597-udc.c index 0293f71..baa0609

[PATCH v2 25/48] usb: gadget: omap_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/omap_udc.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/usb/gadget/udc/omap_udc.c b/drivers/usb/gadget/udc/omap_udc.c index e2fcdb8..9b7d394

[PATCH v2 26/48] usb: gadget: pch_ud: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/pch_udc.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c index 613547f..cc8f

[PATCH v2 30/48] usb: gadget: s3c-hsudc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/s3c-hsudc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/usb/gadget/udc/s3c-hsudc.c b/drivers/usb/gadget/udc/s3c-hsudc.c index 85a712a..e9def42 1006

[PATCH v2 27/48] usb: gadget: pxa25x_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/pxa25x_udc.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/gadget/udc/pxa25x_udc.c b/drivers/usb/gadget/udc/pxa25x_udc.c index f

[PATCH v2 32/48] usb: gadget: udc-xilinx: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/udc-xilinx.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/udc-xilinx.c b/drivers/usb/gadget/udc/udc-xilinx.c index 1f24274..1cbb0ac 100644 --

[PATCH v2 31/48] usb: gadget: s3c2410_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/s3c2410_udc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/gadget/udc/s3c2410_udc.c b/drivers/usb/gadget/udc/s3c2410_udc.c index 5d9aa81..eb3571e 100

[PATCH v2 34/48] usb: musb: gadget: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/musb/musb_gadget.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 625d482f..043248a 100644 --- a/driver

[PATCH v2 33/48] usb: isp1760: udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/isp1760/isp1760-udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/isp1760/isp1760-udc.c b/drivers/usb/isp1760/isp1760-udc.c index 3699962..1c3d0fd 100644 ---

[PATCH v2 36/48] usb: gadget: atmel_usba_udc: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/atmel_usba_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 37d414e..2

[PATCH v2 35/48] usb: renesas: gadget: add ep capabilities support

2015-07-14 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/renesas_usbhs/mod_gadget.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index dc2aa32..ed8d890 100

[PATCH v2 43/48] usb: gadget: udc: add usb_gadget_ep_match_desc() function

2015-07-14 Thread Robert Baldyga
Add function matching endpoint with ep descriptor. This function checks if hardware endponit can fulfill requirements requested in descriptor. This function can be used by UDC drivers in match_ep() callback to avoid writing lots of repetitive code. Signed-off-by: Robert Baldyga --- drivers/usb/g

[PATCH v2 37/48] usb: gadget: epautoconf: add endpoint capabilities flags verification

2015-07-14 Thread Robert Baldyga
Introduce endpoint matching mechanism basing on endpoint capabilities flags. We check if endpoint supports transfer type and direction requested in ep descriptor. Since we have this new endpoint matching mechanism there is no need to have old code guessing endpoint capabilities basing on its name,

[PATCH v2 38/48] usb: gadget: epautoconf: remove pxa quirk from ep_matches()

2015-07-14 Thread Robert Baldyga
The same effect can be achieved by using capabilities flags, so now we can get rid of handing of hardware specific limitations in generic code. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 5 - drivers/usb/gadget/udc/pxa25x_udc.c | 9 +++-- 2 files changed, 3 i

[PATCH v2 39/48] usb: gadget: epautoconf: remove ep and desc configuration from ep_matches()

2015-07-14 Thread Robert Baldyga
As function ep_matches() is used to match endpoint with usb descriptor it's highly unintuitive that it modifies endpoint and descriptor structures fields. This patch moves code configuring ep and desc from ep_matches() to usb_ep_autoconfig_ss(), so now function ep_matches() does nothing more than i

[PATCH v2 42/48] usb: gadget: epautoconf: use 'ep_match' gadget callback

2015-07-14 Thread Robert Baldyga
If gadget has set 'ep_match' callback we prefer to call it first to allow UDC driver to find the best matching endpoint basing on chip-specific "best usage" knowledge. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/driv

[PATCH v2 41/48] usb: gadget: add 'ep_match' callback to usb_gadget_ops

2015-07-14 Thread Robert Baldyga
This callback will be called by epautoconf to allow UDC driver match best endpoint for specific descriptor. It's intended to supply mechanism which allows to get rid of chip-specific endpoint matching code from epautoconf. Signed-off-by: Robert Baldyga --- include/linux/usb/gadget.h | 3 +++ 1 f

[PATCH v2 40/48] usb: gadget: epautoconf: rework ep_matches() function

2015-07-14 Thread Robert Baldyga
Rework ep_matches() function to make it shorter and better readable. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 87 + 1 file changed, 35 insertions(+), 52 deletions(-) diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gad

[PATCH v2 46/48] usb: gadget: goku_udc: add goku_match_ep() function

2015-07-14 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Functions does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga -

[PATCH v2 45/48] usb: gadget: net2280: add net2280_match_ep() function

2015-07-14 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Functions does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga -

[PATCH v2 44/48] usb: gadget: epautoconf: remove ep_matches() function

2015-07-14 Thread Robert Baldyga
As now we have usb_gadget_ep_match_desc() function which does exactly the same thing as ep_matches(), we can remove the second one and replace all of its calls with usb_gadget_ep_match_desc() calls. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 95 +-

[PATCH v2 48/48] usb: gadget: epautoconf: cleanup dead code

2015-07-14 Thread Robert Baldyga
Function find_ep() is no longer needed here, so we can remove it. We also don't use anything from gadget_chips.h header any longer. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/usb/gadget/epautoconf.c

[PATCH v2 47/48] usb: musb: gadget: add musb_match_ep() function

2015-07-14 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Functions does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga -

Re: [PATCH 1/2] staging: unisys: correctly NULL-terminate visorbus sysfs attribute array

2015-07-14 Thread Dan Carpenter
On Mon, Jul 13, 2015 at 02:51:23PM -0400, Benjamin Romer wrote: > From: Tim Sell > > I'm not sure what adverse runtime effects the previously-omitted > NULL-termination would cause, but the code was definitely wrong. > No runtime effects because channel_attr_grp->bin_attrs is NULL. Otherwise it

Re: [PATCH 2/2] staging: unisys: fix random memory corruption in visorchannel_write()

2015-07-14 Thread Dan Carpenter
On Mon, Jul 13, 2015 at 02:51:24PM -0400, Benjamin Romer wrote: > Fixes: 0abb60c1c ('staging: unisys: visorchannel_write(): Handle...') Thanks for adding these, Tim. I know checkpatch complains if you have a long line here, but just ignore it. No need to redo this patch obviously. In fact, I wi

[patch] checkpatch: Fixes: tag lines are allowed to be long

2015-07-14 Thread Dan Carpenter
A lot of the Fixes: tags go over the 75 character limit and that's ok. Fixes: 2a076f40d8c9 ('checkpatch, SubmittingPatches: suggest line wrapping commit messages at 75 columns') Signed-off-by: Dan Carpenter --- The other common cause of false positives it Oops output but I don't have an idea how

Re: [PATCH v2 47/48] usb: musb: gadget: add musb_match_ep() function

2015-07-14 Thread Sergei Shtylyov
Hello. On 7/14/2015 12:39 PM, Robert Baldyga wrote: Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Functions does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from pl

Re: [PATCH v2 42/48] usb: gadget: epautoconf: use 'ep_match' gadget callback

2015-07-14 Thread Sergei Shtylyov
Hello. On 7/14/2015 12:39 PM, Robert Baldyga wrote: If gadget has set 'ep_match' callback we prefer to call it first to allow UDC driver to find the best matching endpoint basing on chip-specific "best usage" knowledge. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 6

Re: [PATCH v2 45/48] usb: gadget: net2280: add net2280_match_ep() function

2015-07-14 Thread Sergei Shtylyov
Hello. On 7/14/2015 12:39 PM, Robert Baldyga wrote: Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Functions does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from pl

Re: [PATCH v2 48/48] usb: gadget: epautoconf: cleanup dead code

2015-07-14 Thread Sergei Shtylyov
Hello. On 7/14/2015 12:39 PM, Robert Baldyga wrote: Function find_ep() is no longer needed here, so we can remove it. We also don't use anything from gadget_chips.h header any longer. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 14 -- 1 file changed, 1

RE: [PATCH] Drivers: hv: vmbus: prevent new subchannel creation on device shutdown

2015-07-14 Thread Dexuan Cui
> -Original Message- > From: Vitaly Kuznetsov > Sent: Monday, July 13, 2015 20:19 > Subject: [PATCH] Drivers: hv: vmbus: prevent new subchannel creation on device > shutdown > > When a new subchannel offer from host comes during device shutdown (e.g. > when a netvsc/storvsc module is unloa

Re: [PATCH] Staging: fbtft: Add support for the Ultrachip UC1611 LCD controller

2015-07-14 Thread Henri Chain
On 07/14/2015 07:56 AM, Sudip Mukherjee wrote: > On Tue, Jul 14, 2015 at 03:26:12AM +0200, Henri Chain wrote: >> This is a driver chip for 240x160 4-bit greyscale LCDs. >> It is capable of 4-wire (8 bit) or 3-wire (9 bit) SPI that have both been >> tested. (It also has a 6800 or 8080-style parallel

Re: [PATCH] Staging: fbtft: Add support for the Ultrachip UC1611 LCD controller

2015-07-14 Thread Sudip Mukherjee
On Tue, Jul 14, 2015 at 02:04:22PM +0200, Henri Chain wrote: > On 07/14/2015 07:56 AM, Sudip Mukherjee wrote: > > On Tue, Jul 14, 2015 at 03:26:12AM +0200, Henri Chain wrote: > > > > Thanks, didn't catch it because I was running checkpatch without --strict my scripts will have --strict by default.

[PATCH v2] Staging: fbtft: Add support for the Ultrachip UC1611 LCD controller

2015-07-14 Thread Henri Chain
This is a driver chip for 240x160 4-bit greyscale LCDs. It is capable of 4-wire (8 bit) or 3-wire (9 bit) SPI that have both been tested. (It also has a 6800 or 8080-style parallel interface, but I have not included support for it.) Signed-off-by: Henri Chain --- drivers/staging/fbtft/Kconfig

Re: [PATCH] staging: sm750fb: ddk750_chip: use consistent spacing

2015-07-14 Thread Sudip Mukherjee
On Tue, Jul 14, 2015 at 11:50:57AM +0530, Sunil Shahu wrote: > Remove all checkpatch error by using consistent spacing. > > Signed-off-by: Sunil Shahu > --- > /* round step */ > - M += (fl_quo*X % 1)>5000?1:0; > + M += (fl_quo*X %

Re: [PATCH] staging: sm750fb: coding style fixes

2015-07-14 Thread Sudip Mukherjee
On Tue, Jul 14, 2015 at 12:16:11PM +0530, Vinay Simha BN wrote: > kernel coding style fixes for below messages from > scripts/checkpatch.pl > > WARNING: line over 80 character > WARNING: Possible unnecessary 'out of memory' message > WARNING: unnecessary whitespace before a quoted newline > WARNIN

[PATCH] staging: sm750fb: coding style global ERROR fixes

2015-07-14 Thread Vinay Simha BN
kernel coding style fixes for below messages from scripts/checkpatch.pl ERROR: do not initialise globals to 0 or NULL Signed-off-by: Vinay Simha BN --- drivers/staging/sm750fb/ddk750_help.c | 6 +++--- drivers/staging/sm750fb/sm750.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletio

Re: [PATCH] staging: lustre: fix whitespace coding style issues in libcfs/module.c

2015-07-14 Thread Lukasz Janyst
On Tue, Jul 14, 2015, at 04:52 AM, Greg KH wrote: > This patch no longer applies to my tree due to other patches sent right > before yours. Can you rebase it on the staging-testing branch of > staging.git and resend? Sure. Lukasz ___ devel mailing list

[PATCHv2] staging: lustre: fix whitespace coding style issues in libcfs/module.c

2015-07-14 Thread Lukasz Janyst
This is a patch to the libcfs/module.c file fixing whitespace warnings found by checkpatch.pl. Signed-off-by: Lukasz Janyst --- drivers/staging/lustre/lustre/libcfs/module.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/lustre/lustre/libcfs/modu

Re: [PATCH] Drivers: hv: vmbus: prevent new subchannel creation on device shutdown

2015-07-14 Thread Vitaly Kuznetsov
Dexuan Cui writes: >> -Original Message- >> From: Vitaly Kuznetsov >> Sent: Monday, July 13, 2015 20:19 >> Subject: [PATCH] Drivers: hv: vmbus: prevent new subchannel creation on >> device >> shutdown >> >> When a new subchannel offer from host comes during device shutdown (e.g. >> when

[PATCH 1/2] staging: unisys: Lock visorchannels associated with devices

2015-07-14 Thread Benjamin Romer
From: David Kershner A visorchannel associated with a device should have its writing to the channel protected by a lock. Fixes: b32c4997c ('staging: unisys: Move channel creation up the stack') Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer Signed-off-by: David Kershner --- drivers/st

[PATCH 2/2] staging: unisys: fix random hangs with network stress in visornic

2015-07-14 Thread Benjamin Romer
From: Tim Sell We learned that it was possible for the core networking code to call visornic_xmit() within ISR context, resulting in the need for us to use spin_lock_irqsave() / spin_lock_irqrestore() to lock accesses to our virtual device channels. Without the correct locking added in this patc

[PATCH 0/2] Fix locking problems in visorbus and visornic

2015-07-14 Thread Benjamin Romer
While stress-testing network activity with visornic, some hangs/faults were discovered, which were corrected by adding code to appropriately lock accesses to visorbus device channels. David Kershner (1): staging: unisys: Lock visorchannels associated with devices Tim Sell (1): staging: unisys

[PATCH v2 00/23] staging: rtl8192e: Various cleanups

2015-07-14 Thread Mateusz Kulikowski
This series does some more cleanup for driver. Changes in V2: - Added patch 6/23 (Remove rtllib_stats structure as suggested by Dan) - Updated patch 22/23 (remove whitespace - hint by Sudip) - Rebased into current staging next (6fdb302c) - Retested Notes from V1: Patches 1-13 just remove feature

[PATCH v2 06/23] staging: rtl8192e: Remove rtllib_stats structure

2015-07-14 Thread Mateusz Kulikowski
Two remaining fields of rtllib_stats are only incremented, but never read. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h| 6 -- drivers/staging/rtl8192e/rtllib_rx.c | 2 -- drivers/staging/rtl8192e/rtllib_tx.c | 1 - 3 files changed, 9 deletions(-) diff --git a

[PATCH v2 05/23] staging: rtl8192e: Remove unused fields from rtllib_stats

2015-07-14 Thread Mateusz Kulikowski
None of them are used in the driver. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 8ba92ed..dc0653a 100644 --- a/drivers/

[PATCH v2 13/23] staging: rtl8192e: probe: Remove bdma64 check

2015-07-14 Thread Mateusz Kulikowski
It is always false. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 57eb43e..1dc119ea 100644 --- a/drivers/s

[PATCH v2 12/23] staging: rtl8192e: Remove rtl819x_process_cck_rxpathsel()

2015-07-14 Thread Mateusz Kulikowski
Function is empty. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 -- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 6 -- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 2 -- 3 files changed, 10 deletions(-) diff --git a/drivers/staging/rtl8192

[PATCH v2 01/23] staging: rtl8192e: Remove ToLegalChannel()

2015-07-14 Thread Mateusz Kulikowski
Function is not used. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/dot11d.c | 24 drivers/staging/rtl8192e/dot11d.h | 1 - 2 files changed, 25 deletions(-) diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c index ef9da

[PATCH v2 11/23] staging: rtl8192e: Remove DMESG macro

2015-07-14 Thread Mateusz Kulikowski
It is used in several places, but expands to nothing. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 1 - drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 3 --- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 4 drivers/staging/rtl8192e/rtllib_debug

[PATCH v2 08/23] staging: rtl8192e: Remove unused rtllib_device::freq_band

2015-07-14 Thread Mateusz Kulikowski
Member is never referenced. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 81a3b93..65c22db 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++

[PATCH v2 04/23] staging: rtl8192e: Remove unused enums

2015-07-14 Thread Mateusz Kulikowski
Remove ack_policy enum and some unused RTL_DEBUG enums. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_Qos.h | 5 - drivers/staging/rtl8192e/rtllib_debug.h | 6 -- 2 files changed, 11 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_Qos.h b/drivers/st

[PATCH v2 07/23] staging: rtl8192e: Remove unused ether_header structure

2015-07-14 Thread Mateusz Kulikowski
Structure is not used in the driver. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index c44c868..81a3b93 100644 --- a/drivers/staging/rtl8192

[PATCH v2 03/23] staging: rtl8192e: Remove undefs

2015-07-14 Thread Mateusz Kulikowski
They relate to macros that are not used in the driver. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_

[PATCH v2 02/23] staging: rtl8192e: Remove unused defines

2015-07-14 Thread Mateusz Kulikowski
Remove most of unused defines (excluding phyreg/hw registers). Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/dot11d.h | 4 -- drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 46 -- .../staging/rtl8192e/rtl8192e/r8192E_firmware.h| 2

[PATCH v2 17/23] staging: rtl8192e: Make phy_RF8256_Config_ParaFile() static

2015-07-14 Thread Mateusz Kulikowski
Relocate function in driver to avoid adding unnecessary fw decl. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c | 18 +- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.h | 1 - 2 files changed, 9 insertions(+), 10 deletions(-) diff --

[PATCH v2 14/23] staging: rtl8192e: Remove rtl8192_rx_cmd()

2015-07-14 Thread Mateusz Kulikowski
Function is empty. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 1dc119ea..a550634 100644 --- a/drive

[PATCH v2 16/23] staging: rtl8192e: rtllib_HTProc: Make functions static

2015-07-14 Thread Mateusz Kulikowski
Make as many functions as possible static in rtllib_HTProc.c. The following functions were affected: - HTMcsToDataRate - HTFilterMCSRate Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_HTProc.c | 5 +++-- drivers/staging/rtl8192e/rtllib.h | 3 --- 2 files changed,

[PATCH v2 10/23] staging: rtl8192e: Remove read|write_nic_io_(d)word|byte()

2015-07-14 Thread Mateusz Kulikowski
None of this functions was used. Also remove PlatformIOCheckPageLegalAndGetRegMask() used by them. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 158 --- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 7 -- 2 files changed, 165 del

[PATCH v2 09/23] staging: rtl8192e: Remove DOT11D_GetMaxTxPwrInDbm()

2015-07-14 Thread Mateusz Kulikowski
Function is not used. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/dot11d.c | 15 --- drivers/staging/rtl8192e/dot11d.h | 1 - 2 files changed, 16 deletions(-) diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c index 7f48845..fcf9b

[PATCH v2 15/23] staging: rtl8192e: rtl_dm: Make functions static

2015-07-14 Thread Mateusz Kulikowski
Make as many functions as possible static in rtllib_dm.c. The following functions were affected: - dm_check_fsync - dm_CheckRfCtrlGPIO - dm_fsync_timer_callback Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 9 ++--- drivers/staging/rtl8192e/rtl8192e/rtl_

[PATCH v2 22/23] staging: rtl8192e: Make rtllib_rx_mgt() static

2015-07-14 Thread Mateusz Kulikowski
Function is not referenced outside of rtllib_rx.c Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h| 3 --- drivers/staging/rtl8192e/rtllib_rx.c | 9 ++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/st

[PATCH v2 21/23] staging: rtl8192e: rtllib_tx: Make functions static

2015-07-14 Thread Mateusz Kulikowski
Make as many functions as possible static in rtllib_tx.c. The following functions were affected: - rtllib_xmit_inter - rtllib_query_seqnum - rtllib_put_snap Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h| 3 --- drivers/staging/rtl8192e/rtllib_tx.c | 8 2 f

[PATCH v2 18/23] staging: rtl8192e: rtl_core: Make functions static

2015-07-14 Thread Mateusz Kulikowski
Make as many functions as possible static in rtl_core.c. If needed - move fw declaration from header. The following functions were affected: - rtl8192_is_tx_queue_empty - rtl819x_watchdog_wqcallback - watch_dog_timer_callback - rtl8192_data_hard_stop - rtl8192_data_hard_resume - rtl8192_hard_data_

[PATCH v2 19/23] staging: rtl8192e: r8192e_phy: Make functions static

2015-07-14 Thread Mateusz Kulikowski
Make as many functions as possible static in r8192E_phy.c. The following functions were affected: - rtl8192_phyConfigBB - rtl8192_SwChnl_WorkItem - rtl8192_SetBWModeWorkItem Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 6 +++--- drivers/staging/rtl8192e

  1   2   3   >