[PATCH V2 18/29] staging: bcm2835-camera: Add multiple inclusion protection to headers

2019-06-29 Thread Stefan Wahren
From: Dave Stevenson mmal-common.h and mmal-msg.h didn't have the normal ifndef FOO / define FOO / endif protection to stop it being included multiple times. Add it. Signed-off-by: Dave Stevenson Signed-off-by: Stefan Wahren Acked-by: Hans Verkuil Acked-by: Mauro Carvalho C

[PATCH V2 19/29] staging: bcm2835-camera: Unify header inclusion defines

2019-06-29 Thread Stefan Wahren
From: Dave Stevenson Most of the headers use ifndef FOO_H, whilst mmal-parameters.h used ifndef __FOO_H. Revise mmal-parameters.h to drop the underscores and make the headers all consistent. Signed-off-by: Dave Stevenson Signed-off-by: Stefan Wahren Acked-by: Hans Verkuil Acked-by: Mauro

[PATCH V2 20/29] staging: bcm2835-camera: Fix multiple assignments should be avoided

2019-06-29 Thread Stefan Wahren
From: Dave Stevenson Clear checkpatch complaints of "multiple assignments should be avoided" Signed-off-by: Dave Stevenson Signed-off-by: Stefan Wahren Acked-by: Hans Verkuil Acked-by: Mauro Carvalho Chehab --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 5 +++

[PATCH V2 29/29] staging: bcm2835-camera: Correct ctrl min/max/step/def to 64bit

2019-06-29 Thread Stefan Wahren
d-off-by: Dave Stevenson Signed-off-by: Stefan Wahren Acked-by: Hans Verkuil Acked-by: Mauro Carvalho Chehab --- drivers/staging/vc04_services/bcm2835-camera/controls.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-c

[PATCH V2 26/29] staging: bcm2835-camera: Fix stride on RGB3/BGR3 formats

2019-06-29 Thread Stefan Wahren
From: Dave Stevenson RGB3/BGR3 end up being 3 bytes per pixel, which meant that the alignment code ended up trying to align using bitmasking with a mask of 96. That doesn't work, so switch to an arithmetic alignment for those formats. Signed-off-by: Dave Stevenson Signed-off-by: Stefan W

[PATCH V2 28/29] staging: bcm2835-camera: Set the field value within each buffer

2019-06-29 Thread Stefan Wahren
From: Dave Stevenson Fixes a v4l2-compliance failure v4l2-test-buffers.cpp(415): g_field() == V4L2_FIELD_ANY The driver only ever produces progresive frames, so field should always be set to V4L2_FIELD_NONE. Signed-off-by: Dave Stevenson Signed-off-by: Stefan Wahren Acked-by: Hans Verkuil

[PATCH V2 25/29] staging: mmal-vchiq: Avoid use of bool in structures

2019-06-29 Thread Stefan Wahren
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: Stefan Wahren Acked-by: Hans Verkuil Acked-by: Mauro Carvalho Chehab --- drivers/staging/vc04_services/bcm2

[PATCH V2 27/29] staging: bcm2835-camera: Add sanity checks for queue_setup/CREATE_BUFS

2019-06-29 Thread Stefan Wahren
used in the REQBUFS case where it provides the buffer properties. Signed-off-by: Dave Stevenson Signed-off-by: Stefan Wahren Acked-by: Hans Verkuil Acked-by: Mauro Carvalho Chehab --- .../vc04_services/bcm2835-camera/bcm2835-camera.c| 16 1 file changed, 16 inser

Re: [PATCH v2 -next] staging: vc04_services: fix used-but-set-variable warning

2019-07-26 Thread Stefan Wahren
Hi Yue, Am 26.07.19 um 11:26 schrieb YueHaibing: > Fix gcc used-but-set-variable warning: just a nit. It is call "unused-but-set-variable" Acked-by: Stefan Wahren > > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c: In function > vchiq_release_inter

[PATCH] staging: iio: ad7192: Use the dedicated reset function

2017-09-14 Thread Stefan Popa
SPI host drivers can use DMA to transfer data, so the buffer should be properly allocated. Keeping it on the stack could cause an undefined behavior. The dedicated reset function solves this issue. Signed-off-by: Stefan Popa --- drivers/staging/iio/adc/ad7192.c | 4 +--- 1 file changed, 1

Re: [PATCH v2] staging: bcm2835-audio: Fix memory corruption

2017-09-23 Thread Stefan Wahren
Hi Greg, > Phil Elwell hat am 11. August 2017 um 12:20 > geschrieben: > > > The previous commit (0adbfd46) fixed a memory leak but also freed a > block in the success case, causing a stale pointer to be used with > potentially fatal results. Only free the vchi_instance block in the > case that

Re: [PATCH v2] staging: bcm2835-audio: Fix memory corruption

2017-09-23 Thread Stefan Wahren
Hi Phil, > Greg Kroah-Hartman hat am 23. September 2017 um > 18:15 geschrieben: > > > On Sat, Sep 23, 2017 at 12:57:33PM +0200, Stefan Wahren wrote: > > Hi Greg, > > > > > Phil Elwell hat am 11. August 2017 um 12:20 > > > geschrieben: >

Re: [PATCH v2 resend] staging: bcm2835-audio: Fix memory corruption

2017-09-24 Thread Stefan Wahren
("staging: bcm2835-audio: fix memory leak in > bcm2835_audio_open_connection()") Tested-by: Stefan Wahren ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 3/4] staging: bcm2835-camera: pr_err() strings should end with newlines

2017-10-03 Thread Stefan Wahren
Am 03.10.2017 um 13:43 schrieb Arvind Yadav: > pr_err() messages should end with a new-line to avoid other messages > being concatenated. > > Signed-off-by: Arvind Yadav Acked-by: Stefan Wahren > --- > drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c | 2 +- &g

Re: [PATCH 08/20] staging: vc04_services: vchiq_core: mark expected switch fall-through

2017-10-12 Thread Stefan Wahren
taging/vc04_services/interface/vchiq_arm/vchiq_core.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Acked-by: Stefan Wahren ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [RFC 02/12] mtd: nand: force drivers to explicitly send READ/PROG commands

2017-10-20 Thread Stefan Agner
e currently ignore NAND_CMD_SEQIN in ->cmdfunc anyway, so I think this change would not even be necessary here. This is a NAND controller which will benefit from the new interface. I plan to convert the driver to the new interface, maybe I manage to do that soon so we have a second driver making use of the new interface. > + nand_prog_page_begin_op(chip, page, 0, buf, mtd->writesize); > if (oob_required) > vf610_nfc_write_buf(mtd, chip->oob_poi, mtd->oobsize); > > @@ -588,7 +588,7 @@ static int vf610_nfc_write_page(struct mtd_info > *mtd, struct nand_chip *chip, > nfc->use_hw_ecc = true; > nfc->write_sz = mtd->writesize + mtd->oobsize; > > - return 0; > + return nand_prog_page_end_op(chip); > } > > static const struct of_device_id vf610_nfc_dt_ids[] = { -- Stefan ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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

2017-10-28 Thread Stefan Wahren
c: Greg Kroah-Hartman > Cc: Eric Anholt > Cc: Stefan Wahren > Cc: Michael Zoran > Cc: Keerthi Reddy > Cc: linux-rpi-ker...@lists.infradead.org > Cc: linux-arm-ker...@lists.infradead.org > Cc: de...@driverdev.osuosl.org >

RFC: staging: vchiq_arm: prevent platform driver unload

2017-11-05 Thread Stefan Wahren
Hi, in a recent discussion [1] with Phil Elwell pointed out that the VPU firmware of the Raspberry Pi isn't aware of an unload of the vchiq kernel module after a successful registration. So my question is there a proper way to prevent a platform driver from unloading? [1] - https://github.com

Re: [PATCH 1/1] codestyle issue fixed drivers/staging/vc04_services

2017-12-07 Thread Stefan Wahren
Hello Mikhail, Am 07.12.2017 um 08:47 schrieb Mikhail Shvetsov: > From: Mike please provide your full name and a changelog. Also the subject should start with something like "staging: vchiq_arm:". > > Signed-off-by: Mike > --- > .../interface/vchiq_arm/vchiq_kern_lib.c | 64 > +

Re: [PATCH] Staging: vc04_services: fix brace coding style issues in vchiq_shim.c

2017-12-13 Thread Stefan Wahren
Am 13.12.2017 um 21:51 schrieb Tomas Marek: This patch fix brace on next line coding style errors reported by checkpatch. Signed-off-by: Tomas Marek Acked-by: Stefan Wahren Thanks ___ devel mailing list de...@linuxdriverproject.org http

Re: [PATCH] staging/vc04_services: Use __user annotation for user-space pointers

2018-07-30 Thread Stefan Wahren
m the maintainer, and I resend the fixed description with the reviewed-by? did you test your patch via vchiq_test or something else? Please add Eric Anholt and fix my mail address in the second version, i only received this via mailing list. Stefan + const struct vchiq_element __user *ele

Re: [PATCH] staging/vc04_services: Use __user annotation for user-space pointers

2018-07-30 Thread Stefan Wahren
Hi Carlos, Am 30.07.2018 um 11:25 schrieb Carlos Maiolino: On Mon, Jul 30, 2018 at 11:13 AM, Stefan Wahren wrote: Hi Carlos, Am 30.07.2018 um 11:08 schrieb Carlos Maiolino: On Mon, Jul 30, 2018 at 10:58 AM, Greg KH wrote: On Tue, Jul 24, 2018 at 10:32:17AM +0200, Carlos Maiolino wrote

Re: [PATCH] staging/vc04_services: Use __user annotation for user-space pointers

2018-07-30 Thread Stefan Wahren
Am 30.07.2018 um 11:43 schrieb Carlos Maiolino: > On Mon, Jul 30, 2018 at 11:34 AM, Stefan Wahren > wrote: >> i think easiest the way would be to get a recent Raspbian Lite ( >> https://www.raspberrypi.org/downloads/raspbian/ ), >> build the kernel with bcm2835_defconf

Re: [PATCH] staging/vc04_services: Use __user annotation for user-space pointers

2018-08-03 Thread Stefan Wahren
Hi Carlos, > Carlos Maiolino hat am 30. Juli 2018 um 11:57 > geschrieben: > > > On Mon, Jul 30, 2018 at 11:49 AM, Stefan Wahren > wrote: > > Am 30.07.2018 um 11:43 schrieb Carlos Maiolino: > >> On Mon, Jul 30, 2018 at 11:34 AM, Stefan Wahren > >>

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

2018-08-06 Thread Stefan Wahren
uot;staging: bcm2835-audio: Fix alignment of functions arguments" would be better. Stefan ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2] staging/bcm2835-audio: Fix alignment of function arguments - Style

2018-08-09 Thread Stefan Wahren
> Greg Gallagher hat am 8. August 2018 um 03:40 > geschrieben: > > > Fix warnings generated by checkpatch.pl for alignment should match open > parenthesis. This is a coding style change only. > > Signed-off-by: Greg Gallagher

Re: [PATCH 08/23] mtd: rawnand: Pass a nand_chip object to ecc->read_xxx() hooks

2018-08-18 Thread Stefan Agner
gt; +static int tegra_nand_read_page_raw(struct nand_chip *chip, u8 *buf, > int oob_required, int page) > { > + struct mtd_info *mtd = nand_to_mtd(chip); > void *oob_buf = oob_required ? chip->oob_poi : NULL; > > return te

Re: [PATCH 08/23] mtd: rawnand: Pass a nand_chip object to ecc->read_xxx() hooks

2018-08-20 Thread Stefan Agner
On 19.08.2018 13:26, Boris Brezillon wrote: > Hi Stefan, > > On Sat, 18 Aug 2018 10:30:13 +0200 > Stefan Agner wrote: > >> > diff --git a/drivers/mtd/nand/raw/tegra_nand.c >> > b/drivers/mtd/nand/raw/tegra_nand.c >> > index 5dcee20e2a8c..bcc3a2888

Re: [PATCH 08/23] mtd: rawnand: Pass a nand_chip object to ecc->read_xxx() hooks

2018-08-20 Thread Stefan Agner
On 20.08.2018 10:09, Boris Brezillon wrote: > Hi Stefan, > > On Mon, 20 Aug 2018 09:57:47 +0200 > Stefan Agner wrote: > >> On 19.08.2018 13:26, Boris Brezillon wrote: >> > Hi Stefan, >> > >> > On Sat, 18 Aug 2018 10:30:13 +0200 >> > S

Re: [PATCH] staging: vc04_services: fix missing check of return value for query of dt_node property

2017-02-18 Thread Stefan Wahren
Hi Michael, > Michael Zoran hat am 18. Februar 2017 um 01:03 > geschrieben: > > > This appears to be an ancient issue with the old github.com sources. no, in the old sources DT binding was optional [1]. But now it should be mandatory and i think cache-line-size should be a required property,

Re: [PATCH V2] staging: vchiq_2835_arm: Make cache-line-size a required DT property

2017-02-21 Thread Stefan Wahren
of_property_read_u32. Signed-off-by: Michael Zoran Acked-by: Stefan Wahren ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: bcm2835: Fix a memory leak in error handling path

2017-02-24 Thread Stefan Wahren
;gdev[0]' freed? Should it be? sorry, didn't checked your patch yet. Currently there are 3 bcm2835 drivers in staging (vchiq, camera, audio). So please resend with a more distinct subject. Thanks Stefan --- drivers/staging/media/platform/bcm2835/bcm2835-camera.c | 6 -- 1 f

Re: [PATCH] staging: bcm2835: Fix a memory leak in error handling path

2017-02-24 Thread Stefan Wahren
> Dan Carpenter hat am 24. Februar 2017 um 20:57 > geschrieben: > > > On Fri, Feb 24, 2017 at 01:37:30PM +0100, Stefan Wahren wrote: > > Hi Christophe, > > > > Am 19.02.2017 um 11:34 schrieb Christophe JAILLET: > > >If 'kzalloc()' fails, w

[PATCH 1/3] staging: vchiq_arm: Remove unnecessary includes

2017-02-25 Thread Stefan Wahren
Including those headers is unnecessary, so we better remove them. Signed-off-by: Stefan Wahren --- .../interface/vchiq_arm/vchiq_2835_arm.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging

[PATCH 3/3] staging: vchiq_arm: Don't define PAGE_SIZE

2017-02-25 Thread Stefan Wahren
There is no need to define PAGE_SIZE in the vchiq driver so remove the define from vchiq_pagelist.h . Signed-off-by: Stefan Wahren --- .../interface/vchiq_arm/vchiq_pagelist.h |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm

[PATCH 2/3] staging: vchiq_arm: Include linux/mm.h

2017-02-25 Thread Stefan Wahren
vchiq_2835_arm.c uses functions and macros like put_page() or PAGE_ALIGN(). So we better include the necessary header. Signed-off-by: Stefan Wahren --- .../interface/vchiq_arm/vchiq_2835_arm.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/vc04_services

Re: [PATCH V2] staging: vchiq_2835_arm: Make cache-line-size a required DT property

2017-02-25 Thread Stefan Wahren
[add Eric] > Michael Zoran hat am 18. Februar 2017 um 12:59 > geschrieben: > > > On Sat, 2017-02-18 at 03:22 -0800, Michael Zoran wrote: > > The original github source allowed for the cache-line-size property > > to be missing. Since recent firmwares also require this property, > > it makes s

Re: [PATCH V2] staging: vchiq_2835_arm: Make cache-line-size a required DT property

2017-02-25 Thread Stefan Wahren
> > What's the rule as to who exactly I should be including on patches? > get_maintainer.pl displays a very long list for stagging, so it isn't > clear to me who should be getting this. At least the active maintainers (bcm2835 + staging) and the relevant mailing lists. Usually i try to avoid se

Re: [PATCH V2] staging: vchiq_2835_arm: Make cache-line-size a required DT property

2017-02-26 Thread Stefan Wahren
> Eric Anholt hat am 26. Februar 2017 um 18:16 geschrieben: > > ... > > For staging, Greg has been taking patches without platform maintainer > ack. I think this is great -- the staging code needs *lots* of work, > and it generally doesn't need any platform knowledge. > > As far as this patch

Re: [PATCH 2/3] staging: bcm2835-audio: select BCM2835_VCHIQ rather then depending on it.

2017-02-28 Thread Stefan Wahren
> Michael Zoran hat am 28. Februar 2017 um 19:49 > geschrieben: > > > Change the audio's dependency on BCM2835_VCHIQ to a select. > > Signed-off-by: Michael Zoran > --- > drivers/staging/vc04_services/bcm2835-audio/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff

Re: [PATCH 2/3] staging: bcm2835-audio: select BCM2835_VCHIQ rather then depending on it.

2017-03-01 Thread Stefan Wahren
> Michael Zoran hat am 1. März 2017 um 17:39 geschrieben: > > > On Wed, 2017-03-01 at 16:51 +0300, Dan Carpenter wrote: > > On Tue, Feb 28, 2017 at 09:18:56PM +0100, Stefan Wahren wrote: > > > > > > > Michael Zoran hat am 28. Fe

Re: [RESEND PATCH V4] staging: vchiq_arm: Add compatibility wrappers for ioctls

2017-03-02 Thread Stefan Wahren
> Michael Zoran hat am 2. März 2017 um 04:41 geschrieben: > > > This patch adds compatibility wrappers for the ioctls > exposed by vchiq/vc04_services. The compat ioctls are > completely implemented on top of the native ioctls. No > existing lines are modified. > > While the ideal approach w

Re: [PATCH linux-next] staging: vchiq_arm: coding style

2017-03-03 Thread Stefan Wahren
ort *peer_ve > { > int32_t ret = -1; > SHIM_SERVICE_T *service = (SHIM_SERVICE_T *)handle; > - if (service) > - { > + if (service) { Since you want to fix coding stlye i think it's better to leave an empty line between the declaration and

Re: [PATCH linux-next] staging: vchiq_arm: coding style

2017-03-04 Thread Stefan Wahren
> Sergiy Redko hat am 4. März 2017 um 06:15 geschrieben: > > > On 03/03, Stefan Wahren wrote: > > Hi Sergiy, > > > > Am 03.03.2017 um 09:05 schrieb Sergiy Redko: > > > fix coding style: move brace to the line above > > > > please make the s

Re: [RESEND PATCH V4] staging: vchiq_arm: Add compatibility wrappers for ioctls

2017-03-06 Thread Stefan Wahren
t that Eric's fixes for await > completion will not work at all. > > Only handling the case of 1 passed in would completely break vchiq_test > which is the main test application and would break all of 32 bit user > mode which would defeat the point of the wrapp

[PATCH] staging: vchiq_utils: Don't include headers twice

2017-03-06 Thread Stefan Wahren
There is no need to include types.h and vmalloc.h twice. This issue has been found by make includecheck. Signed-off-by: Stefan Wahren --- .../vc04_services/interface/vchiq_arm/vchiq_util.h |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm

Re: [PATCH 2/2] staging: bcm2835-audio: Disable extra virtual cards by default

2017-03-14 Thread Stefan Wahren
Am 14.03.2017 um 07:45 schrieb Michael Zoran: > The extra virtual cards created for HDMI and Headphone output > may not be compatible with operating systems that expose > very simple audio controls. > > By default only enable the traditional mode that exposes a single > card for maximum compatibili

Re: [PATCH] staging: vc04_services: Remove unused functions

2017-03-14 Thread Stefan Wahren
> Jean-Baptiste Abbadie hat am 14. März 2017 um 20:14 > geschrieben: > > > These four functions are not used and report errors with sparse. > > Signed-off-by: Jean-Baptiste Abbadie Acked-by: Stefan Wahren ___

Re: [PATCH] bcm2835-v4l2: Fix buffer overflow problem

2017-03-15 Thread Stefan Wahren
quest > for the full fix there) and stop bothering you. > > Dave i wasn't involved in this issue. But i wouldn't be happy if the Foundation take care only of the downstream tree in the future. So i would be happy if you or Michael could fix this issue properly. Th

Re: [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

2017-03-15 Thread Stefan Wahren
64] vchiq_get_state: g_state.remote == NULL > [ 991.847969] vchiq: vchiq_initialise: videocore not initialized > > [ 991.847973] mmal_vchiq: Failed to initialise VCHI instance (status=-1) > only a guess, but did you add the vchiq node to the device tree? vchiq: v

Re: [PATCH 0/6] staging: bcm2835-firmware-gpio: Initial staging commit

2017-03-17 Thread Stefan Wahren
Hi Michael, Am 17.03.2017 um 16:22 schrieb Michael Zoran: The firmware now has a mailbox API for performing generalized gpio through the firmware. This driver builds upon a driver written by Dave Stevenson that was written specifically for the expander on the RPI 3, but I have generalized for

Re: [PATCH 0/6] staging: bcm2835-firmware-gpio: Initial staging commit

2017-03-17 Thread Stefan Wahren
Hi Michael, > Michael Zoran hat am 17. März 2017 um 17:48 geschrieben: > > > On Fri, 2017-03-17 at 17:31 +0100, Stefan Wahren wrote: > > Hi Michael, > > > > > > Am 17.03.2017 um 16:22 schrieb Michael Zoran: > > > The firmware now has

[PATCH] staging: vchiq_arm: Fix MODULE_LICENSE

2017-03-18 Thread Stefan Wahren
Regarding to the header the driver is licensed under BSD and GPL. Signed-off-by: Stefan Wahren --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b

Re: [PATCH 1/6] bcm2835-gpio-exp: Driver for GPIO expander via mailbox service

2017-03-18 Thread Stefan Wahren
> Michael Zoran hat am 17. März 2017 um 16:22 geschrieben: > > > From: Dave Stevenson > > Pi3 and Compute Module 3 have a GPIO expander that the > VPU communicates with. > There is a mailbox service that now allows control of this > expander, so add a kernel driver that can make use of it. >

Re: [PATCH 2/6] staging: bcm2835-firmware-gpio: Add needed mailbox defines to driver

2017-03-18 Thread Stefan Wahren
> Michael Zoran hat am 17. März 2017 um 16:22 geschrieben: > > > The original change this driver is based on adds the needed mailbox > defines to include/soc/bcm2835/raspberrypi-firmware.h. That is not > appropriate at this time, so add the defines directly into the > driver source. > > This c

Re: [PATCH 3/6] staging: bcm2835-firmware-gpio: Expand DT options for driver

2017-03-18 Thread Stefan Wahren
> Michael Zoran hat am 17. März 2017 um 16:22 geschrieben: > > > This change adds the following optional DT properties: > > number-gpios: Number of GPIOs the device should expose > gpio-base: GPIO base that is registered with the kernel Please don't reinvent existing properties. Take a look a

Re: [PATCH 5/6] staging: bcm2835-firmware-gpio: Add a build system for the driver

2017-03-18 Thread Stefan Wahren
> Michael Zoran hat am 17. März 2017 um 16:22 geschrieben: > > > This change adds the driver to the standard kernel build system. > > Signed-off-by: Michael Zoran > --- > drivers/staging/vc04_services/Kconfig| 2 ++ > drivers/staging/vc04_services/Makefile

Re: [PATCH 1/6] bcm2835-gpio-exp: Driver for GPIO expander via mailbox service

2017-03-19 Thread Stefan Wahren
Hi Michael, > Michael Zoran hat am 19. März 2017 um 05:42 geschrieben: > > > On Sat, 2017-03-18 at 14:23 +0100, Stefan Wahren wrote: > > > Michael Zoran hat am 17. März 2017 um 16:22 > > > geschrieben: > > > > > > > > > From: Dave Ste

Re: [PATCH 1/6] bcm2835-gpio-exp: Driver for GPIO expander via mailbox service

2017-03-19 Thread Stefan Wahren
keep compability with the Foundation tree. Currently i'm afraid that we build up many drivers in staging, which need a complete rewrite later if they should come out of staging. It would be nice if we could avoid the situation we have with the thermal driver. Stefan

Re: [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

2017-03-20 Thread Stefan Wahren
Hi Mauro, Am 20.03.2017 um 11:58 schrieb Mauro Carvalho Chehab: Em Sun, 19 Mar 2017 22:11:07 -0300 Mauro Carvalho Chehab escreveu: Em Sun, 19 Mar 2017 10:04:28 -0700 Michael Zoran escreveu: A working DT that I tried this morning with the current firmware is posted here: http://lists.infra

Re: [PATCH] staging: vc04_services: fix NULL pointer dereference on pointer 'service'

2017-03-20 Thread Stefan Wahren
. Detected by CoverityScan, CID#1419681 ("Explicit null dereferenced") Signed-off-by: Colin Ian King Acked-by: Stefan Wahren ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 04/11] staging: vchiq_arm: Clear VLA warning

2018-04-04 Thread Stefan Wahren
> kbuild test robot hat am 1. April 2018 um 01:36 geschrieben: > > > Hi Stefan, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on staging/staging-testing] > [also build test WARNING on v4.16-rc7 next-20180329] > [if your pat

Re: [PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-24 Thread Stefan Wahren
load newer ones here (even for i686): https://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/arm-linux-gnueabihf/ Best regards Stefan Best Regards, Kirill ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriv

[PATCH V2 2/9] staging: vchiq_arm: Clear VLA warning

2018-04-28 Thread Stefan Wahren
, let's just allocate the memory instead of using the stack. This saves stack space and removes the VLA build warning. kmalloc a buffer for dumping state instead of using the stack. [1]: https://lkml.org/lkml/2018/3/7/621 CC: Kees Cook Signed-off-by: Tobin C. Harding Signed-off-by: Stefan W

[PATCH V2 6/9] staging: vchiq_2835_arm: Fix whitespace issue in create_pagelist

2018-04-28 Thread Stefan Wahren
This fixes a whitespace issue reported by checkpatch: ERROR: code indent should use tabs where possible Signed-off-by: Stefan Wahren --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH V2 9/9] staging: vc04_services: Remove stack hog issue from TODO

2018-04-28 Thread Stefan Wahren
Since there is no vchiq function listed by "make checkstack" anymore, we can remove the stack hog issue from the TODO. Signed-off-by: Stefan Wahren --- drivers/staging/vc04_services/interface/vchi/TODO | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drive

[PATCH V2 3/9] staging: vchiq_arm: Rework second abort criterion

2018-04-28 Thread Stefan Wahren
In order to make the code easier to review, move the second abort criterion into the loop and the incrementation into a separate line. Signed-off-by: Stefan Wahren --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions

[PATCH V2 0/9] staging: vc04_services: Clean up round #2

2018-04-28 Thread Stefan Wahren
-devel@linuxdriverproject.org/msg73716.html Changes in V2: - rebased - fixed format issue reported by kbuild test robot - switch back to kmalloc in VLA patch because the function could be called from concurrent threads Stefan Wahren (9): staging: vchiq_arm: print real dump limit staging

[PATCH V2 5/9] staging: vc04_services: Remove defines from Makefile

2018-04-28 Thread Stefan Wahren
The definition of USE_VCHIQ_ARM and VCOS_VERIFY_BKPTS isn't really necessary so remove them. Signed-off-by: Stefan Wahren --- drivers/staging/vc04_services/Makefile | 2 +- drivers/staging/vc04_services/interface/vchi/vchi_common.h | 2 -- 2 files changed, 1 insertion(

[PATCH V2 7/9] staging: vchiq_arm: remove unnecessary return

2018-04-28 Thread Stefan Wahren
This removing an unnecessary return which has been reported by checkpatch.pl. Signed-off-by: Stefan Wahren --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b

[PATCH V2 4/9] staging: vchiq_arm: Make index variable more self-explaining

2018-04-28 Thread Stefan Wahren
The chance to mixup i and j is very high. So rename variable j to a more explaining one. Signed-off-by: Stefan Wahren --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c| 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/vc04_services

[PATCH V2 1/9] staging: vchiq_arm: print real dump limit

2018-04-28 Thread Stefan Wahren
We better use the real loop limit in the warning about "too many active services". Another benefit is than we don't have to care about the format string in the following change. Signed-off-by: Stefan Wahren --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

[PATCH V2 8/9] staging: vchiq_shim: Remove unnecessary break

2018-04-28 Thread Stefan Wahren
This removes an unnecessary break which has been reported by checkpatch.pl. Signed-off-by: Stefan Wahren --- 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

[PATCH] staging: bcm2835-camera: Add TODO for removing overlay support

2018-05-10 Thread Stefan Schake
The overlay code is non-functional since it relies on firmware control of the HVS. Signed-off-by: Stefan Schake --- Dave, does this match your understanding? drivers/staging/vc04_services/bcm2835-camera/TODO | 8 1 file changed, 8 insertions(+) diff --git a/drivers/staging

Re: [PATCH] staging: bcm2835-camera: Replace open-coded idr with a struct idr.

2018-05-10 Thread Stefan Wahren
that will be passed along with our message so > + * that when we service the VCHI reply, we can look up what > + * message is being replied to. > + */ > + spin_lock(&instance->context_map_lock); > + handle = idr_alloc(&instance->context_map, msg_context, > +0, 0, GFP_KERNEL); > + spin_unlock(&instance->context_map_lock); > > - if (!msg_context->handle) { > + if (msg_context->handle < 0) { handle < 0 ? > kfree(msg_context); > - return ERR_PTR(-ENOMEM); > + return ERR_PTR(handle); > } > > + msg_context->instance = instance; > + msg_context->handle = handle; > + > return msg_context; > } > Regards Stefan ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH 2/2] staging: bcm2835-camera: Remove overlay functionality

2018-05-23 Thread Stefan Schake
memory management, an overlay can be implemented in userland through DRM overlay planes of which we provide plenty. Signed-off-by: Stefan Schake --- .../vc04_services/bcm2835-camera/bcm2835-camera.c | 255 + .../vc04_services/bcm2835-camera/bcm2835-camera.h | 18

[PATCH 1/2] staging: bcm2835-camera: Remove sleep at streaming start

2018-05-23 Thread Stefan Schake
This checks the preview component for overlay functionality, but that has little to do with streaming (you don't need to enable the overlay to do streaming). We shouldn't withhold frames from userspace because of an estimate for AGC stabilization time in any case. Signed-off-by: Ste

[PATCH] iio: mxs-lradc: add datasheet name for every usable channel

2015-06-04 Thread Stefan Wahren
In order to provide a channel name to in kernel consumers add the datasheet names for every usable AD channel. Signed-off-by: Stefan Wahren --- drivers/staging/iio/adc/mxs-lradc.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers

Re: [PATCH] iio: mxs-lradc: add datasheet name for every usable channel

2015-06-05 Thread Stefan Wahren
Am 05.06.2015 um 15:43 schrieb Marek Vasut: > On Thursday, June 04, 2015 at 08:44:31 PM, Stefan Wahren wrote: >> In order to provide a channel name to in kernel consumers add the >> datasheet names for every usable AD channel. > Hi! > > Did you check those channel name

Re: [PATCH] staging: vc04: Fix Kconfig indentation

2019-11-20 Thread Stefan Wahren
Am 20.11.19 um 14:38 schrieb Krzysztof Kozlowski: > Adjust indentation from spaces to tab (+optional two spaces) as in > coding style with command like: > $ sed -e 's/^/\t/' -i */Kconfig > > Signed-off-by: Krzysztof Kozlowski

Re: [PATCH 0/3] staging: vchiq: Fix vchiq_read return value in case of error

2019-11-21 Thread Stefan Wahren
far I've basically just > diffed the output of 'cat /dev/vchiq', run the program above with > a few different values, and run vchiq_test a few times. i consider this as sufficient, but i'm not the VCHIQ expert. Thanks Stefan > > These were applied to the staging-ne

[PATCH 2/2] staging: bcm2835-camera: Use designators to init V4L2 controls

2020-03-12 Thread Stefan Wahren
The initializer lists for the V4L2 controls are hard to read. So improve this by using designators. Signed-off-by: Stefan Wahren --- .../vc04_services/bcm2835-camera/controls.c| 424 ++--- 1 file changed, 277 insertions(+), 147 deletions(-) diff --git a/drivers/staging

[PATCH 0/2] staging: bcm2835-camera: Improve bm2835_mmal_v4l2_ctrl

2020-03-12 Thread Stefan Wahren
These 2 patches improves the V4L2 controls in the bcm2835 camera driver. Stefan Wahren (2): staging: bcm2835-camera: Drop unused ignore_errors flag staging: bcm2835-camera: Use designators to init V4L2 controls .../vc04_services/bcm2835-camera/controls.c| 458

[PATCH 1/2] staging: bcm2835-camera: Drop unused ignore_errors flag

2020-03-12 Thread Stefan Wahren
The struct bm2835_mmal_v4l2_ctrl contains an ignore_errors flag which was always set to false. So drop the unused flag. Signed-off-by: Stefan Wahren --- .../vc04_services/bcm2835-camera/controls.c| 34 +- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a

[PATCH 2/9] staging: bcm2835-camera: Activate V4L2_EXPOSURE_METERING_MATRIX handling

2020-03-29 Thread Stefan Wahren
I don't see any reason to keep this TODO, so activate the V4L2_EXPOSURE_METERING_MATRIX handling. Signed-off-by: Stefan Wahren --- drivers/staging/vc04_services/bcm2835-camera/controls.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/st

[PATCH 7/9] staging: bcm2835-camera: return early in mmal_setup_components

2020-03-29 Thread Stefan Wahren
We can reduce the indentation in mmal_setup_components further by returning early in error case. Signed-off-by: Stefan Wahren --- .../vc04_services/bcm2835-camera/bcm2835-camera.c | 60 +++--- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/drivers/staging

[PATCH 9/9] staging: bcm2835-camera: reduce indentation in ctrl_set_image_effect

2020-03-29 Thread Stefan Wahren
We can reduce the indentation in the loop by using continue in case the effect doesn't match. Signed-off-by: Stefan Wahren --- .../vc04_services/bcm2835-camera/controls.c| 63 +++--- 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/drivers/st

[PATCH 1/9] staging: bcm2835-camera: Drop PREVIEW_LAYER

2020-03-29 Thread Stefan Wahren
This define is used only once. So drop the define and init the layer directly. Signed-off-by: Stefan Wahren --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 2 +- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h | 2 -- 2 files changed, 1 insertion(+), 3

[PATCH 0/9] staging: bcm2835-camera: Clean up driver

2020-03-29 Thread Stefan Wahren
Except of patch 2 all these patches tries to clean up the bcm2835-camera driver. Stefan Wahren (9): staging: bcm2835-camera: Drop PREVIEW_LAYER staging: bcm2835-camera: Activate V4L2_EXPOSURE_METERING_MATRIX handling staging: bcm2835-camera: Make struct indentation consistent staging

[PATCH 4/9] staging: bcm2835-camera: Simplify set_framerate_params

2020-03-29 Thread Stefan Wahren
This simplifies set_framerate_params and avoids the multiple assignment in one line by moving the fps_high handling out of the if statement. Signed-off-by: Stefan Wahren --- drivers/staging/vc04_services/bcm2835-camera/controls.c | 15 ++- 1 file changed, 6 insertions(+), 9

[PATCH 8/9] staging: bcm2835-camera: reduce multiline statements

2020-03-29 Thread Stefan Wahren
There are a lot of multiline statements which can be reduced. Signed-off-by: Stefan Wahren --- .../vc04_services/bcm2835-camera/bcm2835-camera.c | 57 +- .../vc04_services/bcm2835-camera/controls.c| 3 +- 2 files changed, 23 insertions(+), 37 deletions(-) diff

[PATCH 3/9] staging: bcm2835-camera: Make struct indentation consistent

2020-03-29 Thread Stefan Wahren
The indentation of struct members wasn't consistent over the whole driver. Signed-off-by: Stefan Wahren --- .../vc04_services/bcm2835-camera/bcm2835-camera.h | 60 +++--- .../vc04_services/bcm2835-camera/controls.c| 4 +- .../vc04_services/bcm2835-camera/mmal-com

[PATCH 6/9] staging: bcm2835-camera: Move video component setup in its own function

2020-03-29 Thread Stefan Wahren
The function mmal_setup_components has to many indention levels. So move the setup code for video component in its own function. Signed-off-by: Stefan Wahren --- .../vc04_services/bcm2835-camera/bcm2835-camera.c | 88 -- 1 file changed, 48 insertions(+), 40 deletions

[PATCH 5/9] staging: bcm2835-camera: Move encode component setup in its own function

2020-03-29 Thread Stefan Wahren
The function mmal_setup_components has to many indention levels. So move the setup code for encode component in its own function. Signed-off-by: Stefan Wahren --- .../vc04_services/bcm2835-camera/bcm2835-camera.c | 185 ++--- 1 file changed, 91 insertions(+), 94 deletions

Re: [staging] aad378845d: WARNING:held_lock_freed

2020-04-15 Thread Stefan Wahren
s://github.com/0day-ci/linux/commits/Stefan-Wahren/staging-bcm2835-camera-Clean-up-driver/20200329-225704 > > > in testcase: boot > > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G > > caused below changes (please refer t

Re: [PATCH v2] staging: line6: Add blank lines after declarations

2014-03-25 Thread Stefan Hajnoczi
rs/staging/line6/playback.c | 5 + > drivers/staging/line6/toneport.c | 1 + > 3 files changed, 7 insertions(+) Reviewed-by: Stefan Hajnoczi ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Bug] VCHIQ functional test broken

2017-04-11 Thread Stefan Wahren
Hi, recently i found that vchiq_test -f doesn't work anymore with current mainline (4.11-rc6) and linux-next (20170404) on my Raspberry Pi Zero. The issue is always reproducible, but the error behavior isn't deterministic. Sometimes vchiq_test hangs and sometimes i get an error message from vch

Re: [Bug] VCHIQ functional test broken

2017-04-13 Thread Stefan Wahren
> Stefan Wahren hat am 11. April 2017 um 20:10 > geschrieben: > > > Hi, > > recently i found that vchiq_test -f doesn't work anymore with current > mainline (4.11-rc6) and linux-next (20170404) on my Raspberry Pi Zero. The > issue is always reproducib

Re: [Bug] VCHIQ functional test broken

2017-04-14 Thread Stefan Wahren
ages(). Thanks for your explanation and the example, but i can't see the relevant difference. So i think i'm not the right person to fix this issue, but i will test any patches regarding to this issue. > > The rest of the driver should also be converted to the DMA mapping API >

Re: [Bug] VCHIQ functional test broken

2017-04-24 Thread Stefan Wahren
Am 20.04.2017 um 21:58 schrieb Rabin Vincent: > On Thu, Apr 20, 2017 at 11:27:38AM -0700, Eric Anholt wrote: >> I'm confused by what you're saying here. The driver has already been >> converted to not use dmac_map_area (commit >> cf9caf1929882b66922aee698e99e6c8f357bee5), and uses dma_map_sg inste

<    1   2   3   4   5   >