[PATCH] staging: kpc2000: kpc_dma: set error code in probe

2020-06-23 Thread Evgeny Novikov
If device_create() fails during probing the device, kpc_dma_probe() does not set the error code and returns 0. This can result in various bad issues later. The patch sets the error code on the corresponding error handling path. Found by Linux Driver Verification project (linuxtesting.org). Signed

Re: [PATCH] binder: fix null deref of proc->context

2020-06-23 Thread Dan Carpenter
On Mon, Jun 22, 2020 at 01:07:15PM -0700, Todd Kjos wrote: > The binder driver makes the assumption proc->context pointer is invariant > after > initialization (as documented in the kerneldoc header for struct proc). > However, in commit f0fe2c0f050d ("binder: prevent UAF for binderfs devices > I

Re: [PATCH] binder: fix null deref of proc->context

2020-06-23 Thread Christian Brauner
On Tue, Jun 23, 2020 at 11:50:21AM +0300, Dan Carpenter wrote: > On Mon, Jun 22, 2020 at 01:07:15PM -0700, Todd Kjos wrote: > > The binder driver makes the assumption proc->context pointer is invariant > > after > > initialization (as documented in the kerneldoc header for struct proc). > > Howeve

Re: [PATCH] binder: fix null deref of proc->context

2020-06-23 Thread Dan Carpenter
On Tue, Jun 23, 2020 at 11:04:04AM +0200, Christian Brauner wrote: > On Tue, Jun 23, 2020 at 11:50:21AM +0300, Dan Carpenter wrote: > > On Mon, Jun 22, 2020 at 01:07:15PM -0700, Todd Kjos wrote: > > > The binder driver makes the assumption proc->context pointer is invariant > > > after > > > initi

Thanks

2020-06-23 Thread MR PAUL TAHA
You Won USA Social Health Award Contact For Claim infosocialhealthserv...@gmail.com or i...@socialhealthservice.com Whatsapp/Call:+1403085 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/

Thanks

2020-06-23 Thread MR PAUL TAHA
You Won USA Social Health Award Contact For Claim infosocialhealthserv...@gmail.com or i...@socialhealthservice.com Whatsapp/Call:+1403085 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/

Hello.

2020-06-23 Thread YAVUZ BEKTER
I am the foreign operations director of Bank of Turkey. My name is Mr, Yavuz. I have a sensitive investment project to discuss with you, please reply now. Ik ben de directeur buitenlandse activiteiten van de Bank of Turkey. Mijn naam is meneer Yavuz. Ik moet een gevoelig in

[PATCH] staging: rts5208: fix memleaks on error handling paths in probe

2020-06-23 Thread Evgeny Novikov
rtsx_probe() allocates host, but does not free it on error handling paths. The patch adds missed scsi_host_put(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Evgeny Novikov --- drivers/staging/rts5208/rtsx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/d

Re: [PATCH v7 17/17] wilc1000: add Makefile and Kconfig files for wilc1000 compilation

2020-06-23 Thread kernel test robot
Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on a15a20acc980342c97d804c5fae1cfc0cd7712a9] url: https://github.com/0day-ci/linux/commits/Ajay-Kathat-microchip-com/wilc1000-move-out-of-staging/20200623-190333 base:a15a20acc980342c97d804c5fae1cfc0cd7712a9

[PATCH v7 04/17] wilc1000: add wlan_cfg.h

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/wlan_cfg.h' to 'drivers/net/wireless/microchip/wilc1000/wlan_cfg.h'. Signed-off-by: Ajay Singh --- .../wireless/microchip/wilc1000/wlan_cfg.h| 54 +++ 1 file changed, 54 insertions(+) create mode 100644 drivers/net/wireless/

[PATCH v7 03/17] wilc1000: add wlan_if.h

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/wlan_if.h' to 'drivers/net/wireless/microchip/wilc1000/wlan_if.h'. Signed-off-by: Ajay Singh --- .../net/wireless/microchip/wilc1000/wlan_if.h | 803 ++ 1 file changed, 803 insertions(+) create mode 100644 drivers/net/wireless/m

[PATCH v7 05/17] wilc1000: add wlan_cfg.c

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/wlan_cfg.c' to 'drivers/net/wireless/microchip/wilc1000/wlan_cfg.c'. Signed-off-by: Ajay Singh --- .../wireless/microchip/wilc1000/wlan_cfg.c| 413 ++ 1 file changed, 413 insertions(+) create mode 100644 drivers/net/wireless

[PATCH v7 07/17] wilc1000: add cfg80211.h

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/cfg80211.h' to 'drivers/net/wireless/microchip/wilc1000/cfg80211.h'. Signed-off-by: Ajay Singh --- .../wireless/microchip/wilc1000/cfg80211.h| 30 +++ 1 file changed, 30 insertions(+) create mode 100644 drivers/net/wireless/

[PATCH v7 00/17] wilc1000: move out of staging

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh This patch series is to review and move wilc1000 driver out of staging. Most of the review comments received in [1] & [2] are addressed in the latest code. Please review and provide your inputs. [1]. https://lore.kernel.org/linux-wireless/1537957525-11467-1-git-send-email-ajay.

[PATCH v7 01/17] wilc1000: add hif.h

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/hif.h' to 'drivers/net/wireless/microchip/wilc1000/hif.h'. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/hif.h | 214 ++ 1 file changed, 214 insertions(+) create mode 100644 drivers/net/wireless/microchip

[PATCH v7 02/17] wilc1000: add hif.c

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/hif.c' to 'drivers/net/wireless/microchip/wilc1000/hif.c'. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/hif.c | 1961 + 1 file changed, 1961 insertions(+) create mode 100644 drivers/net/wireless/microchi

[PATCH v7 15/17] wilc1000: add fw.h

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/fw.h' to 'drivers/net/wireless/microchip/wilc1000/fw.h'. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/fw.h | 119 +++ 1 file changed, 119 insertions(+) create mode 100644 drivers/net/wireless/microchip/w

[PATCH v7 17/17] wilc1000: add Makefile and Kconfig files for wilc1000 compilation

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Added Makefile and Kconfig files for compiling wilc1000 module from 'drivers/net/wireless/microchip/'. Signed-off-by: Ajay Singh --- drivers/net/wireless/Kconfig | 1 + drivers/net/wireless/Makefile | 1 + drivers/net/wireless/microchip/Kconf

[PATCH v7 14/17] wilc1000: add sdio.c

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/sdio.c' to 'drivers/net/wireless/microchip/wilc1000/sdio.c'. Signed-off-by: Ajay Singh --- .../net/wireless/microchip/wilc1000/sdio.c| 1023 + 1 file changed, 1023 insertions(+) create mode 100644 drivers/net/wireless/microc

[PATCH v7 06/17] wilc1000: add cfg80211.c

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/cfg80211.c' to 'drivers/net/wireless/microchip/wilc1000/cfg80211.c'. Signed-off-by: Ajay Singh --- .../wireless/microchip/wilc1000/cfg80211.c| 1846 + 1 file changed, 1846 insertions(+) create mode 100644 drivers/net/wireles

[PATCH v7 16/17] dt: bindings: net: add microchip,wilc1000.yaml

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh This file describes the binding details to connect wilc1000 device. It's moved from staging to 'Documentation/devicetree/bindings/net/wireless' path. Reviewed-by: Rob Herring Signed-off-by: Ajay Singh --- This patch was reviewed earlier with previous version[v6] of series [1]

[PATCH v7 10/17] wilc1000: add mon.c

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/mon.c' to 'drivers/net/wireless/microchip/wilc1000/mon.c'. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/mon.c | 260 ++ 1 file changed, 260 insertions(+) create mode 100644 drivers/net/wireless/microchip

[PATCH v7 09/17] wilc1000: add netdev.c

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/netdev.c' to 'drivers/net/wireless/microchip/wilc1000/netdev.c'. Signed-off-by: Ajay Singh --- .../net/wireless/microchip/wilc1000/netdev.c | 931 ++ 1 file changed, 931 insertions(+) create mode 100644 drivers/net/wireless/mic

[PATCH v7 12/17] wilc1000: add wlan.h

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/wlan.h' to 'drivers/net/wireless/microchip/wilc1000/wlan.h'. Signed-off-by: Ajay Singh --- .../net/wireless/microchip/wilc1000/wlan.h| 397 ++ 1 file changed, 397 insertions(+) create mode 100644 drivers/net/wireless/microch

[PATCH v7 08/17] wilc1000: add netdev.h

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/netdev.h' to 'drivers/net/wireless/microchip/wilc1000/netdev.h'. Signed-off-by: Ajay Singh --- .../net/wireless/microchip/wilc1000/netdev.h | 287 ++ 1 file changed, 287 insertions(+) create mode 100644 drivers/net/wireless/mic

[PATCH v7 11/17] wilc1000: add spi.c

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/spi.c' to 'drivers/net/wireless/microchip/wilc1000/spi.c'. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/spi.c | 945 ++ 1 file changed, 945 insertions(+) create mode 100644 drivers/net/wireless/microchip

[PATCH v7 13/17] wilc1000: add wlan.c

2020-06-23 Thread Ajay.Kathat
From: Ajay Singh Moved 'drivers/staging/wilc1000/wlan.c' to 'drivers/net/wireless/microchip/wilc1000/wlan.c'. Signed-off-by: Ajay Singh --- .../net/wireless/microchip/wilc1000/wlan.c| 1238 + 1 file changed, 1238 insertions(+) create mode 100644 drivers/net/wireless/microc

[PATCH 05/50] staging: mmal-vchiq: Make a mmal_buf struct for passing parameters

2020-06-23 Thread Nicolas Saenz Julienne
From: Dave Stevenson The callback from vchi_mmal to the client was growing lots of extra parameters. Consolidate them into a single struct instead of growing the list further. The struct is associated with the client buffer, therefore there are various changes to setup various containers for the

[PATCH 12/50] staging: vchi: Get rid of all useless callback reasons

2020-06-23 Thread Nicolas Saenz Julienne
They are neither produced nor expected, so just delete them. Signed-off-by: Nicolas Saenz Julienne --- .../interface/vchi/vchi_common.h | 40 ++- 1 file changed, 3 insertions(+), 37 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi/vchi_common.h

[PATCH 16/50] staging: vc04_services: bcm2835-audio: Use vchi_msg_hold()

2020-06-23 Thread Nicolas Saenz Julienne
vchi_msg_dequeue() provides the same functionality as vchi_msg_hold() except it copies the message data as opposed to the later which provides the data in place. The copying is done on a local variable, so there is no need to keep the message out the function's bounds, so use vchi_msg_hold() inste

[PATCH 10/50] staging: mmal-vchiq: Fix formatting errors in mmal_parameters.h

2020-06-23 Thread Nicolas Saenz Julienne
From: Naushir Patuck No functional changes in this commit. - Remove erroneous whitespace. - Remove _t postfix label on structs and enums. Signed-off-by: Naushir Patuck Signed-off-by: Jacopo Mondi Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-camera/bcm2835-camera.c | 2 +-

[PATCH 14/50] staging: vchi: Get rid of struct vchi_instance_handle

2020-06-23 Thread Nicolas Saenz Julienne
The idea behind this was to create an opaque handle to struct vchiq_instance. This can be achieved without creating a new type by means of a forward declaration of struct vchiq_instance. This saves us from a lot of useless casting and overall simplifies code. Signed-off-by: Nicolas Saenz Julienne

[PATCH 15/50] staging: vchi: Unify struct shim_service and struct vchi_service_handle

2020-06-23 Thread Nicolas Saenz Julienne
The idea behind struct vchi_service_handle is to create an opaque handle to struct shim_service. This can be achieved by doing a forward declaration of struct shim_service, which will avoid unwarranted casts and pointer play. Ultimately as a rename is due all over the vchi user space, rename struc

[PATCH 11/50] staging: vchiq_arm: Add a matching unregister call

2020-06-23 Thread Nicolas Saenz Julienne
From: Phil Elwell All the registered children of vchiq have a corresponding call to platform_device_unregister except bcm2835_audio. Fix that. Fixes: 25c7597af20d ("staging: vchiq_arm: Register a platform device for audio") Signed-off-by: Phil Elwell Signed-off-by: Jacopo Mondi Signed-off-by:

[PATCH 08/50] staging: mmal-vchiq: Always return the param size from param_get

2020-06-23 Thread Nicolas Saenz Julienne
From: Dave Stevenson mmal-vchiq is a reimplementation of the userland library for MMAL. When getting a parameter, the client provides the storage and the size of the storage. The VPU then returns the size of the parameter that it wished to return, and as much as possible of that parameter is retu

[PATCH 02/50] staging: mmal-vchiq: Allocate and free components as required

2020-06-23 Thread Nicolas Saenz Julienne
From: Dave Stevenson The existing code assumed that there would only ever be 4 components, and never freed the entries once used. Allow arbitrary creation and destruction of components. Signed-off-by: Dave Stevenson Signed-off-by: Jacopo Mondi Signed-off-by: Nicolas Saenz Julienne --- .../vc

[PATCH 07/50] staging: mmal-vchiq: Fix client_component for 64 bit kernel

2020-06-23 Thread Nicolas Saenz Julienne
From: Dave Stevenson The MMAL client_component field is used with the event mechanism to allow the client to identify the component for which the event is generated. The field is only 32bits in size, therefore we can't use a pointer to the component in a 64 bit kernel. Component handles are alre

[PATCH 20/50] staging: vc04_services: Get rid of vchi_cfg.h

2020-06-23 Thread Nicolas Saenz Julienne
Nothing in it is being used. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchi/vchi.h | 1 - .../vc04_services/interface/vchi/vchi_cfg.h | 238 -- 2 files changed, 239 deletions(-) delete mode 100644 drivers/staging/vc04_services/interface/vchi

[PATCH 04/50] staging: mmal-vchiq: Make timeout a defined parameter

2020-06-23 Thread Nicolas Saenz Julienne
From: Dave Stevenson The timeout period for VPU communications is a useful thing to extend when debugging. Set it via a define, rather than a magic number buried in the code. Signed-off-by: Dave Stevenson Signed-off-by: Jacopo Mondi Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/v

[PATCH 38/50] staging: vchi: Get rid of struct vchiq_instance forward declaration

2020-06-23 Thread Nicolas Saenz Julienne
It's already forward declared in vchiq_if.h. So no need to insist Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchi/vchi.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi/vchi.h b/drivers/staging/vc04_se

[PATCH 21/50] staging: vchi: Get rid of flags argument in vchi_msg_hold()

2020-06-23 Thread Nicolas Saenz Julienne
All users are ignoring the flags argument. So for the sake of simplicity delete it. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/bcm2835-audio/bcm2835-vchiq.c | 3 +-- drivers/staging/vc04_services/interface/vchi/vchi.h | 1 - .../vc04_services/interface/vchiq_arm/vchiq_sh

[PATCH 03/50] staging: mmal-vchiq: Avoid use of bool in structures

2020-06-23 Thread Nicolas Saenz Julienne
From: Dave Stevenson Fixes up a checkpatch error "Avoid using bool structure members because of possible alignment issues". Signed-off-by: Dave Stevenson Signed-off-by: Jacopo Mondi Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c | 2 +- 1 file

[PATCH 00/50] staging: vchiq: Getting rid of the vchi/vchiq split

2020-06-23 Thread Nicolas Saenz Julienne
vchi acts as a mid layer between vchiq and its kernel services, while arguably providing little to no benefit: half of the functions exposed are a 1:1 copy of vchiq's, and the rest provide some functionality which can be easly integrated into vchiq without all the churn. Moreover it has been found

[PATCH 22/50] staging: vchi: Use enum vchiq_bulk_mode instead of vchi's transmission flags

2020-06-23 Thread Nicolas Saenz Julienne
vchi has a set of transfer flags which almost map 1:1 to vchiq's own transfer modes. For the sake of simplicity let's use the later and delete vchi's. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c | 2 +- .../vc04_services/bcm2835-audio/bcm2835.h |

[PATCH 29/50] staging: vchiq: Export vchiq_get_service_userdata()

2020-06-23 Thread Nicolas Saenz Julienne
This is for service's callbacks to get their private data. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/stagin

[PATCH 23/50] staging: vchi: Use vchiq's enum vchiq_reason

2020-06-23 Thread Nicolas Saenz Julienne
enum vchi_callback_reason maps 1:1 to enum vchiq_reason, in an effort to simplify things, let's use the later, and get rid of the extra indirection. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c | 5 +-- .../interface/vchi/vchi_common.h | 2

[PATCH 13/50] staging: vchi: Get rid of vchi_msg_peek()

2020-06-23 Thread Nicolas Saenz Julienne
There already is a function that covers most of the functionality vchi_msg_peek() provides: vchi_msg_hold(). The main difference being that the later removes the message from vchu's queue while the other does it later on, while releasing the message. There are no users of this function that can't

[PATCH 30/50] staging: vchiq: Export vchiq_msg_queue_push

2020-06-23 Thread Nicolas Saenz Julienne
vchiq consumer drivers may need to use this function in order to get the benefits of vchiq's per service message queueing mechanism. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/

[PATCH 01/50] staging: bcm2835: Break MMAL support out from camera

2020-06-23 Thread Nicolas Saenz Julienne
From: Jacopo Mondi The BCM2835 camera host is currently the only component that uses the VCHIQ MMAL interface. This will soon change with the upporting of BCM2835 ISP, which make use of the same interface. Break VCHIQ MMAL interface support out from camera host directory to make it possible for

[PATCH 34/50] staging: vchi: Get rid of struct vchi_service

2020-06-23 Thread Nicolas Saenz Julienne
The structure only contains a single parameter, which is the underlying vchiq handle. Get rid of the struct and directly pass the handle around. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c | 23 ++--- .../vc04_services/interface/vchi/vchi.h | 25

[PATCH 06/50] staging: mmal-vchiq: Fixup vchiq-mmal include ordering

2020-06-23 Thread Nicolas Saenz Julienne
From: Dave Stevenson There were dependencies on including the headers in the correct order. Fix up the headers so that they include the other headers that they depend on themselves. Signed-off-by: Dave Stevenson Signed-off-by: Jacopo Mondi Signed-off-by: Nicolas Saenz Julienne --- drivers/st

[PATCH 25/50] staging: vchiq: Introduce vchiq_validate_params()

2020-06-23 Thread Nicolas Saenz Julienne
When adding a new service validate the configuration parameters provided, and remove unnecessary checks in vchi, now that we have validated service's config. Signed-off-by: Nicolas Saenz Julienne --- .../interface/vchiq_arm/vchiq_core.c | 15 +++ .../interface/vchiq_arm/

[PATCH 19/50] staging: vchi: Get rid of unnecessary defines

2020-06-23 Thread Nicolas Saenz Julienne
Those defines aren't used by anyone. Get rid of them. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchi/vchi.h | 11 --- drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c | 1 - 2 files changed, 12 deletions(-) diff --git a/drivers/staging/vc0

[PATCH 09/50] staging: mmal-vchiq: If the VPU returns an error, don't negate it

2020-06-23 Thread Nicolas Saenz Julienne
From: Dave Stevenson There is an enum for the errors that the VPU can return. port_parameter_get was negating that value, but also using -EINVAL from the Linux error codes. Pass the VPU error code as positive values. Should the function need to pass a Linux failure, then return that as negative.

[PATCH 31/50] staging: vchi: Get rid of vchiq_shim's message callback

2020-06-23 Thread Nicolas Saenz Julienne
As vchiq_shim's callback does nothing aside from pushing messages into the service's queue, let's bypass it and jump directly to the service's callbacks, letting them choose whether to use the message queue. It turns out most services don't need to use the message queue, which makes for simpler co

[PATCH 17/50] staging: vchi: Get rid of vchi_msg_dequeue()

2020-06-23 Thread Nicolas Saenz Julienne
Nobody uses it. Get rid of it. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchi/vchi.h | 7 .../interface/vchiq_arm/vchiq_shim.c | 39 --- 2 files changed, 46 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi/vc

[PATCH 40/50] staging: vchiq: Get rid of unnecessary definitions in vchiq_if.h

2020-06-23 Thread Nicolas Saenz Julienne
Those functions don't actually exist, nor have any use, nor the macros. Signed-off-by: Nicolas Saenz Julienne --- .../interface/vchiq_arm/vchiq_if.h | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h b/

[PATCH 32/50] staging: vchiq: Don't use a typedef for vchiq_callback

2020-06-23 Thread Nicolas Saenz Julienne
Linux coding style says to avoid typdefs. Signed-off-by: Nicolas Saenz Julienne --- .../staging/vc04_services/interface/vchi/vchi.h| 5 - .../vc04_services/interface/vchiq_arm/vchiq_if.h | 14 -- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/stagi

[PATCH 36/50] staging: vchi: Rework vchi_msg_hold() to match vchiq_msg_hold()

2020-06-23 Thread Nicolas Saenz Julienne
The services have access to struct vchiq_header's internals, so we can let them get the data pointer. This pretty much makes both functions exactly the same, which will allow us to make a switch to vchiq_msg_hold() further down the road. Signed-off-by: Nicolas Saenz Julienne --- .../staging/vc04

[PATCH 27/50] staging: vchiq: Get rid of vchiq_util.h

2020-06-23 Thread Nicolas Saenz Julienne
The header file only provides other includes. Move the relevant includes to their respective C files and delete it for good. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchiq_arm/vchiq.h | 1 - .../interface/vchiq_arm/vchiq_2835_arm.c | 1 + .../interface/vchiq_a

[PATCH 26/50] staging: vchiq: Move message queue into struct vchiq_service

2020-06-23 Thread Nicolas Saenz Julienne
This has historically been handled by vchi, but there is no reason why this couldn't be handled directly in vchiq. The patch tries to avoid altering any behavior, with the exception of the msg_queue size, which is now fixed to VCHIQ_MAX_SLOTS (it was set to VCHIQ_MAX_SLOTS / 2). This is done to ma

[PATCH 28/50] staging: vchi: Expose struct vchi_service

2020-06-23 Thread Nicolas Saenz Julienne
This will make further changes easier. The struct will ultimately disappear. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchi/vchi.h| 10 +++--- .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 7 --- 2 files changed, 7 insertions(+), 10

[PATCH 37/50] staging: vchiq: Unify fourcc definition mechanisms

2020-06-23 Thread Nicolas Saenz Julienne
There is already enough duplication with regard to fourcc generation in the kernel. Let's at least use the same macro all over the vchiq ecosystem. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +- .../vc04_services/bcm2835-audio/vc_vc

[PATCH 33/50] staging: vchi: Use struct vchiq_service_params

2020-06-23 Thread Nicolas Saenz Julienne
For initialization, vchi has its own params structure, which is then translated to vchiq's params structure. They are essentially the same, so lets directly use vchiq's. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c | 9 + .../vc04_services/inte

[PATCH 24/50] staging: vchi: Get rid of effect less expression

2020-06-23 Thread Nicolas Saenz Julienne
It was probably there to trick compilers into ignoring unused variables, which isn't needed in Linux. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/vc04_services/interf

[PATCH 35/50] staging: vchiq: Pass vchiq's message when holding a message

2020-06-23 Thread Nicolas Saenz Julienne
vchi created an opaque structure to be held by services while they process callback messages. The contents of this opaque structure are the service handle, which all services already maintain, and a pointer to vchiq's message structure, struct vchiq_header. Let's get rid of this opaque structure a

[PATCH 18/50] staging: vchi_common: Get rid of all unused definitions

2020-06-23 Thread Nicolas Saenz Julienne
There is a series of structures and enums defined but never used. Get rid of them. Signed-off-by: Nicolas Saenz Julienne --- .../interface/vchi/vchi_common.h | 65 --- 1 file changed, 65 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi/vchi_com

[PATCH 39/50] staging: vchi: Don't include vchiq_core.h

2020-06-23 Thread Nicolas Saenz Julienne
This file is internal to vchiq. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c b/drivers/staging/vc04_services/interface/vc

[PATCH 43/50] staging: vchi: Get rid of vchi_bulk_queue_receive()

2020-06-23 Thread Nicolas Saenz Julienne
Its vchiq counterpart, vchiq_bulk_receive() is only used by vchi. We can then merge both functions by moving vchi_bulk_queue_receive()'s retry mechanism into vchiq_bulk_receive() and let services call the later. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchi/vchi.h

[PATCH 41/50] staging: vchiq: Make vchiq_add_service() local

2020-06-23 Thread Nicolas Saenz Julienne
The function is being exported although there is no use for it outside of vchiq's core code. Keep it local then. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 3 +-- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h | 3 ---

[PATCH 44/50] staging: vchi: Get rid of vchi_bulk_queue_transmit()

2020-06-23 Thread Nicolas Saenz Julienne
Its vchiq counterpart, vchiq_bulk_transmit() is only used by vchi. We can then merge both functions by moving vchi_bulk_queue_transmit()'s retry mechanism into vchiq_bulk_transmit() and let services call the later. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c

[PATCH 49/50] staging: vchiq: Move defines into core header

2020-06-23 Thread Nicolas Saenz Julienne
Those are only used in the core vchiq code, while present in vchiq's 'public' API header. Move them into the right place. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq.h| 5 - .../staging/vc04_services/interface/vchiq_arm/vchiq_core.h

[PATCH 48/50] staging: vchiq: Use vchiq.h as the main header file for services

2020-06-23 Thread Nicolas Saenz Julienne
This used to be vchiq_if.h but vchiq.h is more concise for an include file that will hopefully be in the future in the includes directory. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/bcm2835-audio/bcm2835.h | 2 +- .../vc04_services/interface/vchiq_arm/vchiq.h | 107 +++

[PATCH 42/50] staging: vchiq: Move definitions only used by core into core header

2020-06-23 Thread Nicolas Saenz Julienne
vchiq_if.h is used by service consumers and only the exported API should be present. Move the rest of definitions, which were not exported by the way, to vchiq_core.h where they belong. Signed-off-by: Nicolas Saenz Julienne --- .../interface/vchiq_arm/vchiq_core.h | 22 +

[PATCH 45/50] staging: vchi: Move vchi_queue_kernel_message() into vchiq

2020-06-23 Thread Nicolas Saenz Julienne
We can't really merge it with vchiq_queue_message() as it has internal users that will not benefit from the retry mechanism vchiq_queue_kernel_message() uses. So, for the sake of getting rid of vchi, move it into vchiq. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c

[PATCH 46/50] staging: vchiq: Get rid of vchi

2020-06-23 Thread Nicolas Saenz Julienne
All the functions that vchi currently provides are a 1:1 mapping to its vchiq counterparts. Get rid of vchi altogether and use vchiq's on all services. In the process also get rid of the vchi directory, as the only remaining file was a TODO file, which now lives in the parent directory. Signed-of

[PATCH 50/50] staging: vchiq: Move vchiq.h into include directory

2020-06-23 Thread Nicolas Saenz Julienne
To make the separation clear between vchiq's header files and vchiq.h, which is to be used by services and is the 'public' API, move it into a dedicated includes directory. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/Makefile| 2 +- drivers/sta

[PATCH 47/50] staging: vchiq: Move conditional barrier definition into vchiq_core.h

2020-06-23 Thread Nicolas Saenz Julienne
The barrier is only used by core code. So keep the barrier definition in the core header. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchiq_arm/vchiq.h| 11 --- .../vc04_services/interface/vchiq_arm/vchiq_core.h | 12 2 files changed, 12 i

[PATCH 1/5] staging: most: sound: remove noisy log messages

2020-06-23 Thread Christian Gromm
This patch removes unnecessary log messages to avoid noise in the kernel log. Signed-off-by: Christian Gromm --- drivers/staging/most/sound/sound.c | 24 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/drivers/staging/most/sound/sound.c b/drivers/staging/

[PATCH 2/5] staging: most: sound: fix error path

2020-06-23 Thread Christian Gromm
Return error and exit the function in case registering the component with the core is failing. Signed-off-by: Christian Gromm --- drivers/staging/most/sound/sound.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/most/sound/sound.c b/drivers/staging/most/s

[PATCH 3/5] staging: most: sound: fix return values

2020-06-23 Thread Christian Gromm
This patch returns the proper values when reporting an error to the caller. Signed-off-by: Christian Gromm --- drivers/staging/most/sound/sound.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/staging/most/sound/sound.c b/drivers/staging/most/sound/soun

[PATCH 0/5] staging: most: sound: clean up

2020-06-23 Thread Christian Gromm
Patch set to clean up code and fix issues. Christian Gromm (5): staging: most: sound: remove noisy log messages staging: most: sound: fix error path staging: most: sound: fix return values staging: most: sound: fix white spaces staging: most: sound: remove overcautious argument checking

[PATCH 4/5] staging: most: sound: fix white spaces

2020-06-23 Thread Christian Gromm
This patch removes unnecessary empty lines. Signed-off-by: Christian Gromm --- drivers/staging/most/sound/sound.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/staging/most/sound/sound.c b/drivers/staging/most/sound/sound.c index 467faa1..7c56cdb 100644 --- a/drive

[PATCH 5/5] staging: most: sound: remove overcautious argument checking

2020-06-23 Thread Christian Gromm
The interface pointer passed to a component API function cannot be NULL. This patch removes the unnecessary sanity check of this argument. Signed-off-by: Christian Gromm --- drivers/staging/most/sound/sound.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/most/sound/sound.

Re: [PATCH 01/50] staging: bcm2835: Break MMAL support out from camera

2020-06-23 Thread kernel test robot
Hi Nicolas, I love your patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Nicolas-Saenz-Julienne/staging-vchiq-Getting-rid-of-the-vchi-vchiq-split/20200624-004930 base: https://git.kernel.org/pub/scm/linu

Re: [PATCH 03/50] staging: mmal-vchiq: Avoid use of bool in structures

2020-06-23 Thread Joe Perches
On Tue, 2020-06-23 at 18:41 +0200, Nicolas Saenz Julienne wrote: > From: Dave Stevenson > > Fixes up a checkpatch error "Avoid using bool structure members > because of possible alignment issues". [] > diff --git a/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c > b/drivers/staging/vc04_se