[PATCH 1/6] staging: rtl8712: Coding style: Remove multiple blank lines

2015-11-18 Thread Michael Hornung
* Remove multiple blank lines in order to get rid of checkpatch.pl "CHECK" output Signed-off-by: Michael Hornung --- drivers/staging/rtl8712/ieee80211.h | 12 1 file changed, 12 deletions(-) diff --git a/drivers/staging/rtl8712/ieee80211.h b/drivers/staging/rtl8712/i

[PATCH 3/6] staging: rtl8712: Coding style: Fix missing spaces

2015-11-18 Thread Michael Hornung
* Add missing spaces around bitwise OR operation in order to get rid of checkpatch.pl's "CHECK: spaces preferred around that '|'" Signed-off-by: Michael Hornung --- drivers/staging/rtl8712/ieee80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/6] staging: rtl8712: Coding style cleanups

2015-11-18 Thread Michael Hornung
* Do coding style cleanups on file ieee80211.h and get rid of all checkpatch.pl output. Michael Hornung (6): staging: rtl8712: Coding style: Remove multiple blank lines staging: rtl8712: Coding style: Make use of BIT macro staging: rtl8712: Coding style: Fix missing spaces staging

[PATCH 5/6] staging: rtl8712: Coding style: Fix alignment

2015-11-18 Thread Michael Hornung
* Fix alignment which did not match open parenthesis Signed-off-by: Michael Hornung --- drivers/staging/rtl8712/ieee80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/ieee80211.h b/drivers/staging/rtl8712/ieee80211.h index 830452b..e5ec6c2

[PATCH 4/6] staging: rtl8712: Replace FSF mailing address by URL

2015-11-18 Thread Michael Hornung
* Fix checkpatch.pl output about not including the paragraph about writing to the Free Software Foundation's mailing address Signed-off-by: Michael Hornung --- drivers/staging/rtl8712/ieee80211.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rt

[PATCH 6/6] staging: rtl8712: Remove unused CamelCase define

2015-11-18 Thread Michael Hornung
* Remove unused CamelCase in order to get rid of the corresponding checkpatch.pl "CHECK: Avoid CamelCase: " Signed-off-by: Michael Hornung --- drivers/staging/rtl8712/ieee80211.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8712/ieee80211.h b/drivers/stagi

[PATCH 1/1] linux-next: drivers: staging: most: Fix return value

2015-07-31 Thread Michael Hornung
* Fix sparse warning "Using plain integer as NULL pointer" Signed-off-by: Michael Hornung --- drivers/staging/most/aim-network/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/most/aim-network/networking.c b/drivers/staging/most/a

[PATCH 4/9] VC04_SERVICES: Add compat ioctl handler for "queue message"

2017-01-18 Thread Michael Zoran
Add compat handler for "queue message" ioctl. Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 36 ++ 1 file changed, 36 insertions(+) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drive

[PATCH 8/9] VC04_SERVICES: Add compat ioctl handler for "get config"

2017-01-18 Thread Michael Zoran
Add compat handler for "get config" ioctl. Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 32 ++ 1 file changed, 32 insertions(+) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drive

[PATCH 7/9] VC04_SERVICES: Add compat ioctl handler for "dequeue message"

2017-01-18 Thread Michael Zoran
Add compat handler for "dequeue messagen" ioctl and move parts in common with the regular ioctl to vchiq_ioctl_dequeue_message. Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 168 - 1 file changed, 100 insertions(+), 68

[PATCH 0/9] vc04_services: Add compat ioctls

2017-01-18 Thread Michael Zoran
cleanup the entire ioctl structure. Tests Runs: vchiq_test -f 10 vchiq_test -p 1 Tests were run from both a native debian arm64 install and a debian armhf chroot on an RPI 3. Signed-off-by: Michael Zoran Michael Zoran (9): VC04_SERVICES: Add compat ioctl data structures VC04_SERVICES

[PATCH 3/9] VC04_SERVICES: Add compat ioctl handler for "create service"

2017-01-18 Thread Michael Zoran
Add compat handler for "create service" ioctl and move parts in common with the regular ioctl to vchiq_ioctl_create_service Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 180 + 1 file changed, 112 insertions(+), 68 deletion

[PATCH 2/9] VC04_SERVICES: Add top level compat ioctl handler

2017-01-18 Thread Michael Zoran
Add the top level compat ioctl handler as a placeholder for adding additional handlers. The ioctls are first filtered and forwarded to the regular ioctl handler if the ioctl does not require any extra compatibility processing. Signed-off-by: Michael Zoran --- .../vc04_services/interface

[PATCH 6/9] VC04_SERVICES: Add compat ioctl handler for "await completion"

2017-01-18 Thread Michael Zoran
Add compat handler for "await_completion" ioctl and move parts in common with the regular ioctl to vchiq_ioctl_await_completion Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 398 ++--- 1 file changed, 267 insertions(+), 131

[PATCH 5/9] VC04_SERVICES: Add compat ioctl handler for "queue bulk"

2017-01-18 Thread Michael Zoran
Add compat handler for "queue bulk" ioctls and move parts in common with the regular ioctls to vchiq_ioctl_queue_bulk Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 206 ++--- 1 file changed, 141 insertions(+), 65 deletions(-) di

[PATCH 9/9] VC04_SERVICES: Add compat ioctl handler for "dump mem"

2017-01-18 Thread Michael Zoran
Add compat handler for "dump mem" ioctl. Signed-off-by: Michael Zoran --- .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc0

[PATCH 1/9] VC04_SERVICES: Add compat ioctl data structures

2017-01-18 Thread Michael Zoran
This change adds the compatibility data structures for compatibility ioctls and defines compatibility ioctl definitions for the ioctls that have changed. Signed-off-by: Michael Zoran --- .../interface/vchiq_arm/vchiq_ioctl.h | 96 ++ 1 file changed, 96

Re: [PATCH 1/9] VC04_SERVICES: Add compat ioctl data structures

2017-01-18 Thread Michael Zoran
On Wed, 2017-01-18 at 18:13 +0100, Greg KH wrote: > On Wed, Jan 18, 2017 at 07:04:45AM -0800, Michael Zoran wrote: > > This change adds the compatibility data structures for > > compatibility > > ioctls and defines compatibility ioctl definitions for the ioctls

Re: [PATCH 1/9] VC04_SERVICES: Add compat ioctl data structures

2017-01-18 Thread Michael Zoran
On Wed, 2017-01-18 at 18:23 +0100, Greg KH wrote: > On Wed, Jan 18, 2017 at 09:18:43AM -0800, Michael Zoran wrote: > > On Wed, 2017-01-18 at 18:13 +0100, Greg KH wrote: > > > On Wed, Jan 18, 2017 at 07:04:45AM -0800, Michael Zoran wrote: > > > > This change adds the

Re: [PATCH 2/9] VC04_SERVICES: Add top level compat ioctl handler

2017-01-18 Thread Michael Zoran
On Thu, 2017-01-19 at 02:01 +0300, Dan Carpenter wrote: > On Wed, Jan 18, 2017 at 07:04:46AM -0800, Michael Zoran wrote: > > Add the top level compat ioctl handler as a placeholder > > for adding additional handlers. > > > > The ioctls are first filtered and forward

Re: [PATCH 2/9] VC04_SERVICES: Add top level compat ioctl handler

2017-01-19 Thread Michael Zoran
On Thu, 2017-01-19 at 11:00 +0300, Dan Carpenter wrote: > On Wed, Jan 18, 2017 at 11:37:55PM -0800, Michael Zoran wrote: > > This whole driver is a chicken and egg problem.  The existing code > > is > > so hard to read and maintain, that it's hard to improve it in a

Re: [PATCH 4/9] VC04_SERVICES: Add compat ioctl handler for "queue message"

2017-01-19 Thread Michael Zoran
On Thu, 2017-01-19 at 12:14 +0300, Dan Carpenter wrote: > On Wed, Jan 18, 2017 at 07:04:48AM -0800, Michael Zoran wrote: > > Add compat handler for "queue message" ioctl. > > > > Signed-off-by: Michael Zoran > > --- > >  .../vc04_ser

Re: [PATCH 6/9] VC04_SERVICES: Add compat ioctl handler for "await completion"

2017-01-19 Thread Michael Zoran
On Thu, 2017-01-19 at 13:10 +0300, Dan Carpenter wrote: > One thing I will say is that I have scripts to review when people > pull > parts of an ioctl into a separate patch.  So when you do that, please > don't make too many white space changes if you can avoid it.  Those > confuse my scripts. >

Re: [PATCH 6/9] VC04_SERVICES: Add compat ioctl handler for "await completion"

2017-01-19 Thread Michael Zoran
On Thu, 2017-01-19 at 14:34 +0300, Dan Carpenter wrote: > On Thu, Jan 19, 2017 at 03:27:56AM -0800, Michael Zoran wrote: > > On Thu, 2017-01-19 at 13:10 +0300, Dan Carpenter wrote: > > All these silly white space issues in the existing code could be > > fixed > > in

Re: [PATCH 6/9] VC04_SERVICES: Add compat ioctl handler for "await completion"

2017-01-19 Thread Michael Zoran
On Thu, 2017-01-19 at 13:22 +0100, Greg KH wrote: > On Thu, Jan 19, 2017 at 04:07:15AM -0800, Michael Zoran wrote: > > On Thu, 2017-01-19 at 14:34 +0300, Dan Carpenter wrote: > > > On Thu, Jan 19, 2017 at 03:27:56AM -0800, Michael Zoran wrote: > > > > On Thu,

Re: [PATCH 6/9] VC04_SERVICES: Add compat ioctl handler for "await completion"

2017-01-19 Thread Michael Zoran
On Thu, 2017-01-19 at 15:56 +0300, Dan Carpenter wrote: > Hm...  I had never used checkpatch.pl --fix until a few minutes ago. > > Basically sending a zillion patches is the only way to do anything in > the linux-kernel.  You're not allowed to break the build, introduce > new compile warnings or b

Re: [PATCH 6/9] VC04_SERVICES: Add compat ioctl handler for "await completion"

2017-01-20 Thread Michael Zoran
On Fri, 2017-01-20 at 14:00 +0300, Dan Carpenter wrote: > What Greg said.  No one is saying you have to clean this code up, > it's > just that you were adding new code.  I actually didn't really have a > big > issue with any of the patches except #2. > Cool. I guess I was just going through some

[PATCH V2 0/7] staging: vchiq_arm: Add compat ioctls

2017-01-21 Thread Michael Zoran
cleaning up the other ioctls. Tests Runs: vchiq_test -f 10 vchiq_test -p 1 Tests were run from both a native debian arm64 install and a debian armhf chroot on an RPI 3. Signed-off-by: Michael Zoran Michael Zoran (7): staging: vchiq_arm: Add compat ioctl for create service staging: vchiq_arm

[PATCH V2 2/7] staging: vchiq_arm: Add compat ioctl for queue message

2017-01-21 Thread Michael Zoran
Add compat ioctl for queue message Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 185 ++--- 1 file changed, 129 insertions(+), 56 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging

[PATCH V2 5/7] staging: vchiq_arm: Add compat ioctl for dequeue message

2017-01-21 Thread Michael Zoran
Add compat ioctl for dequeue message Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 221 + 1 file changed, 137 insertions(+), 84 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging

[PATCH V2 4/7] staging: vchiq_arm: Add compat ioctl for await completion

2017-01-21 Thread Michael Zoran
Add compat ioctl for await completion Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 498 ++--- 1 file changed, 341 insertions(+), 157 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers

[PATCH V2 3/7] staging: vchiq_arm: Add compat ioctl for queue bulk

2017-01-21 Thread Michael Zoran
Add compat ioctl for queue bulk Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 274 ++--- 1 file changed, 180 insertions(+), 94 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging

[PATCH V2 7/7] staging: vchiq_arm: Add compat ioctl for dump mem

2017-01-21 Thread Michael Zoran
Add compat ioctl for dump mem Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 60 +- 1 file changed, 48 insertions(+), 12 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging

[PATCH V2 1/7] staging: vchiq_arm: Add compat ioctl for create service

2017-01-21 Thread Michael Zoran
general pattern is developed that can be used for cleaning up the other ioctls. This change contains the general framework and the ioctl handler for the create service ioctl. Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 360 - 1 file

[PATCH V2 6/7] staging: vchiq_arm: Add compat ioctl for get config

2017-01-21 Thread Michael Zoran
Add compat ioctl for get config Signed-off-by: Michael Zoran --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 97 +- 1 file changed, 74 insertions(+), 23 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging

Re: [PATCH V2 1/7] staging: vchiq_arm: Add compat ioctl for create service

2017-01-23 Thread Michael Zoran
On Mon, 2017-01-23 at 14:38 +0300, Dan Carpenter wrote: > I'm attaching how I would basically like to see patch 1/7 done.  It's > not perfect, I did it as quickly as possible and haven't tested > anything.  I would normally be more careful if I were sending this > for > inclusion so there are no si

[PATCH 2/3] staging: vc04_services: Add vchi_queue_user_message function

2017-01-24 Thread Michael Zoran
(VCHI_SERVICE_HANDLE_T handle, void __user *data, unsigned int size) Signed-off-by: Michael Zoran --- .../staging/vc04_services/interface/vchi/vchi.h| 6 .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 33 ++ 2 files

[PATCH 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-24 Thread Michael Zoran
, unsigned int size) int vchi_queue_user_message(VCHI_SERVICE_HANDLE_T handle, void __user *data, unsigned int size) Signed-off-by: Michael Zoran Michael Zoran (3): staging: vc04_services: Add vchi_queue_kernel_message function

[PATCH 1/3] staging: vc04_services: Add vchi_queue_kernel_message function

2017-01-24 Thread Michael Zoran
(VCHI_SERVICE_HANDLE_T handle, void *data, unsigned int size) Signed-off-by: Michael Zoran --- .../staging/vc04_services/interface/vchi/vchi.h| 6 ++ .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 22 ++ 2 files

[PATCH 3/3] staging: vc04_services: Make vchi_msg_queue static

2017-01-24 Thread Michael Zoran
The vchi_msg_queue function which is used by other drivers to queue a message is difficult to understand and overly generic. Make the function static and remove it from the exported symbols. Signed-off-by: Michael Zoran --- drivers/staging/vc04_services/interface/vchi/vchi.h| 8

[PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-24 Thread Michael Zoran
, unsigned int size) int vchi_queue_user_message(VCHI_SERVICE_HANDLE_T handle, void __user *data, unsigned int size) Changes: V2 - Add missing symbol export of vchiq_queue_user_message Signed-off-by: Michael Zoran Michael Zoran (3

[PATCH V2 1/3] staging: vc04_services: Add vchi_queue_kernel_message function

2017-01-24 Thread Michael Zoran
(VCHI_SERVICE_HANDLE_T handle, void *data, unsigned int size) Signed-off-by: Michael Zoran --- .../staging/vc04_services/interface/vchi/vchi.h| 6 ++ .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 22 ++ 2 files

[PATCH V2 3/3] staging: vc04_services: Make vchi_msg_queue static

2017-01-24 Thread Michael Zoran
The vchi_msg_queue function which is used by other drivers to queue a message is difficult to understand and overly generic. Make the function static and remove it from the exported symbols. Signed-off-by: Michael Zoran --- drivers/staging/vc04_services/interface/vchi/vchi.h| 8

[PATCH V2 2/3] staging: vc04_services: Add vchi_queue_user_message function

2017-01-24 Thread Michael Zoran
(VCHI_SERVICE_HANDLE_T handle, void __user *data, unsigned int size) Signed-off-by: Michael Zoran --- .../staging/vc04_services/interface/vchi/vchi.h| 6 .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 34 ++ 2 files

Re: [PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-25 Thread Michael Zoran
On Wed, 2017-01-25 at 15:10 +0300, Dan Carpenter wrote: > On Tue, Jan 24, 2017 at 12:34:04PM -0800, Michael Zoran wrote: > > The vchi_msg_queue function which is used by other drivers > > to queue a message is difficult to understand and overly > > generic. Remove it and rep

Re: [PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-25 Thread Michael Zoran
On Wed, 2017-01-25 at 16:14 +0300, Dan Carpenter wrote: > On Wed, Jan 25, 2017 at 04:33:46AM -0800, Michael Zoran wrote: > > Just for clarity, when you mean staging code? Are you talking about > > the > > entire vc04_services driver or are we talking about the > >

Re: [PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-25 Thread Michael Zoran
On Wed, 2017-01-25 at 14:33 +0100, Greg KH wrote: > On Wed, Jan 25, 2017 at 05:27:14AM -0800, Michael Zoran wrote: > > On Wed, 2017-01-25 at 16:14 +0300, Dan Carpenter wrote: > > > On Wed, Jan 25, 2017 at 04:33:46AM -0800, Michael Zoran wrote: > > > > Just for clari

Re: [PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-25 Thread Michael Zoran
On Wed, 2017-01-25 at 17:12 +0300, Dan Carpenter wrote: > > Again, that's not my decision.  I can go either way.  But if the > > decision was made to delete it, I think the 4.10 version should > > also be > > deleted because the same logic applies.  Nothing uses it 4.10 > > either > > and 4.10 is s

Re: [PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-25 Thread Michael Zoran
On Wed, 2017-01-25 at 06:23 -0800, Michael Zoran wrote: > On Wed, 2017-01-25 at 17:12 +0300, Dan Carpenter wrote: > > > Again, that's not my decision.  I can go either way.  But if the > > > decision was made to delete it, I think the 4.10 version should > > >

Re: [PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-25 Thread Michael Zoran
On Wed, 2017-01-25 at 08:53 -0800, Michael Zoran wrote: > On Wed, 2017-01-25 at 06:23 -0800, Michael Zoran wrote: > > On Wed, 2017-01-25 at 17:12 +0300, Dan Carpenter wrote: > > > > Again, that's not my decision.  I can go either way.  But if > > > > the >

Re: [PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-25 Thread Michael Zoran
On Wed, 2017-01-25 at 18:39 +0100, Stefan Wahren wrote: > > Michael Zoran hat am 25. Januar 2017 um 17:53 > > geschrieben: > > > > > > On Wed, 2017-01-25 at 06:23 -0800, Michael Zoran wrote: > > > On Wed, 2017-01-25 at 17:12 +0300, Dan Carpenter wrote:

Re: [PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-25 Thread Michael Zoran
On Wed, 2017-01-25 at 10:09 -0800, Michael Zoran wrote: > On Wed, 2017-01-25 at 18:39 +0100, Stefan Wahren wrote: > > > Michael Zoran hat am 25. Januar 2017 um > > > 17:53 > > > geschrieben: > > Looking at the TODO shows 3 candidates: vc_mem, bcm2835-camera,

Re: [PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-25 Thread Michael Zoran
On Wed, 2017-01-25 at 12:27 -0800, Eric Anholt wrote: > Greg KH writes: > > > On Wed, Jan 25, 2017 at 05:27:14AM -0800, Michael Zoran wrote: > > > On Wed, 2017-01-25 at 16:14 +0300, Dan Carpenter wrote: > > > > On Wed, Jan 25, 2017 at 04:33:46AM -0800, Michae

[PATCH] staging: bcm2835-audio: initial staging submission

2017-01-25 Thread Michael Zoran
warnings. Tested on a RPI 3 running in ARM64 mode with the vlc player and alsautils. Signed-off-by: Michael Zoran --- drivers/staging/Kconfig| 2 + drivers/staging/Makefile | 2 + drivers/staging/bcm2835-audio/Kconfig | 7

Re: [PATCH] staging: bcm2835-audio: initial staging submission

2017-01-26 Thread Michael Zoran
On Thu, 2017-01-26 at 09:27 +0300, Dan Carpenter wrote: > Thanks! > > regards, > dan carpenter Dan, the bcm2835-camera driver is generally very high quality code. I was looking at it just now. Very clean compared to the driver I e- mailed. The camera driver does have a 64 bit issue, but for th

Re: [PATCH] staging: bcm2835-audio: initial staging submission

2017-01-26 Thread Michael Zoran
On Thu, 2017-01-26 at 15:56 +0300, Dan Carpenter wrote: Send it.  Absolutely. > > regards, > dan carpenter > Does it need to compile on all platforms, or can it simply compile on arm32 until a few small issues get worked out. ___ devel mailing list

Re: [PATCH] staging: bcm2835-audio: initial staging submission

2017-01-26 Thread Michael Zoran
On Thu, 2017-01-26 at 16:25 +0300, Dan Carpenter wrote: > On Thu, Jan 26, 2017 at 05:13:02AM -0800, Michael Zoran wrote: > > On Thu, 2017-01-26 at 15:56 +0300, Dan Carpenter wrote: > > Send it.  Absolutely. > > > > > > regards, > > > dan carpenter >

Re: [PATCH] staging: bcm2835-audio: initial staging submission

2017-01-26 Thread Michael Zoran
On Thu, 2017-01-26 at 13:21 +, Peter Robinson wrote: > On Thu, Jan 26, 2017 at 12:39 AM, Michael Zoran > wrote: > > Initial cleanup of bcm2835-audio driver for the > > bcm2535(Raspberry PI) > > > > Driver provides HDMI audio through ALSA and is built > >

Re: [PATCH] staging: bcm2835-audio: initial staging submission

2017-01-26 Thread Michael Zoran
On Thu, 2017-01-26 at 14:04 +, Peter Robinson wrote: > On Thu, Jan 26, 2017 at 1:54 PM, Michael Zoran > wrote: > > On Thu, 2017-01-26 at 13:21 +, Peter Robinson wrote: > > > On Thu, Jan 26, 2017 at 12:39 AM, Michael Zoran > > net> > > > wrote: &

[PATCH 1/2] staging: bcm2835-audio: Remove code for non device tree init

2017-01-28 Thread Michael Zoran
The bcm2835-audio driver has a legacy code path for initializing devices without a device tree. Delete this code path and remove the non device tree devices. Signed-off-by: Michael Zoran --- drivers/staging/bcm2835-audio/bcm2835.c | 271 +--- 1 file changed, 2

[PATCH 2/2] staging: bcm2835-audio: Simplify callback structure for write data

2017-01-28 Thread Michael Zoran
perforam some validation on the message response and call the handler function directly instead of through the callback pointer. Signed-off-by: Michael Zoran --- drivers/staging/bcm2835-audio/bcm2835-pcm.c| 9 +- drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 35

[PATCH] staging: bcm2835-audio: Strengthen build dependencies

2017-01-28 Thread Michael Zoran
This driver makes no sense outside of ARM or ARM64. Add an explicit build dependency on: (ARM || ARM64 || COMPILE_TEST) Also set the default build to n Signed-off-by: Michael Zoran --- drivers/staging/bcm2835-audio/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging

Re: [PATCH 3/6] staging: bcm2835-v4l2: Add a build system for the module.

2017-01-29 Thread Michael Zoran
On Fri, 2017-01-27 at 13:55 -0800, Eric Anholt wrote: > This is derived from the downstream tree's build system, but with > just > a single Kconfig option. > > For now the driver only builds on 32-bit arm -- the aarch64 build > breaks due to the driver using arm-specific cache flushing functions.

[PATCH] staging: bcm2835-audio: Add TODO list

2017-01-29 Thread Michael Zoran
Add a TODO list of possible cleanup items. Signed-off-by: Michael Zoran --- drivers/staging/bcm2835-audio/TODO | 29 + 1 file changed, 29 insertions(+) create mode 100644 drivers/staging/bcm2835-audio/TODO diff --git a/drivers/staging/bcm2835-audio/TODO b/drivers

Re: [PATCH 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-29 Thread Michael Zoran
On Thu, 2017-01-26 at 12:14 -0800, Eric Anholt wrote: > Michael Zoran writes: > > > The vchi_msg_queue function which is used by other drivers > > to queue a message is difficult to understand and overly > > generic. Remove it and replace it with two more specific

[RESEND PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-29 Thread Michael Zoran
, unsigned int size) int vchi_queue_user_message(VCHI_SERVICE_HANDLE_T handle, void __user *data, unsigned int size) Changes: V2 - Add missing symbol export of vchiq_queue_user_message Signed-off-by: Michael Zoran Reviewed-by: Eric

[RESEND PATCH V2 1/3] staging: vc04_services: Add vchi_queue_kernel_message function

2017-01-29 Thread Michael Zoran
(VCHI_SERVICE_HANDLE_T handle, void *data, unsigned int size) Signed-off-by: Michael Zoran --- .../staging/vc04_services/interface/vchi/vchi.h| 6 ++ .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 22 ++ 2 files

[RESEND PATCH V2 3/3] staging: vc04_services: Make vchi_msg_queue static

2017-01-29 Thread Michael Zoran
The vchi_msg_queue function which is used by other drivers to queue a message is difficult to understand and overly generic. Make the function static and remove it from the exported symbols. Signed-off-by: Michael Zoran --- drivers/staging/vc04_services/interface/vchi/vchi.h| 8

[RESEND PATCH V2 2/3] staging: vc04_services: Add vchi_queue_user_message function

2017-01-29 Thread Michael Zoran
(VCHI_SERVICE_HANDLE_T handle, void __user *data, unsigned int size) Signed-off-by: Michael Zoran --- .../staging/vc04_services/interface/vchi/vchi.h| 6 .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 34 ++ 2 files

Need a second set of eyeballs for a possible startup race condition in vc04_services/vchiq.

2017-01-30 Thread Michael Zoran
I'm looking at linux-next: drivers/staging/vc04_services/interface/vchiq_arm/vchiq_connected.c First it looks this is some kind of startup notification mechanism and it is used by the custom RPI kernel on www.github.com. Client drivers call vchiq_add_connected_callback to register for a notificati

Need a second set of eyeballs for a possible startup race condition in vc04_services/vchiq.

2017-01-30 Thread Michael Zoran
Resending to a larger e-mail list... On Mon, 2017-01-30 at 04:57 -0800, Michael Zoran wrote: > I'm looking at linux-next: > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_connected.c > > First it looks this is some kind of startup notification mechanism > and > i

Re: [PATCH] staging: bcm2835-audio: Strengthen build dependencies

2017-01-30 Thread Michael Zoran
On Mon, 2017-01-30 at 08:56 -0800, Eric Anholt wrote: > Michael Zoran writes: > > > This driver makes no sense outside of ARM or ARM64. > > Add an explicit build dependency on: > > (ARM || ARM64 || COMPILE_TEST) > > > > Also set the default build to n &

Re: Need a second set of eyeballs for a possible startup race condition in vc04_services/vchiq.

2017-01-30 Thread Michael Zoran
On Tue, 2017-01-31 at 00:01 +0300, Dan Carpenter wrote: > It's hard to review this because there are no callers and the hash > you're talking about is an RPI hash...  You have no idea how lazy I > am. > > You're right, that code looks racy but it's almost certainly harmless > depending on how it's

[PATCH 2/2] staging: bcm2835/mmal-vchiq: Replace call to vchi_msg_queue with vchi_queue_kernel_message

2017-02-01 Thread Michael Zoran
The function vchi_msg_queue was made static in vc04_services and replaced with vchi_queue_kernel_message. Change the call to vchi_msg_queue to vchi_queue_kernel_message Signed-off-by: Michael Zoran --- .../staging/media/platform/bcm2835/mmal-vchiq.c| 23 -- 1 file

[PATCH 1/2] staging: bcm2835-audio: Replace call to vchi_msg_queue with vchi_queue_kernel_message

2017-02-01 Thread Michael Zoran
The function vchi_msg_queue was made static in vc04_services and replaced with vchi_queue_kernel_message. Change the call to vchi_msg_queue to vchi_queue_kernel_message Signed-off-by: Michael Zoran --- drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 15 +++ 1 file changed, 3

Re: [PATCH 1/2] staging: bcm2835-audio: Replace call to vchi_msg_queue with vchi_queue_kernel_message

2017-02-01 Thread Michael Zoran
On Wed, 2017-02-01 at 18:04 +0100, Stefan Wahren wrote: > Am 01.02.2017 um 15:31 schrieb Michael Zoran: > > The function vchi_msg_queue was made static in vc04_services > > and replaced with vchi_queue_kernel_message. > > > > Change the call to vchi_msg_queue t

[PATCH] Staging: bcm2835-audio: removed spaces around parenthesis

2017-02-03 Thread Michael Rupprecht
Removed unnecessary spaces around parenthesis as reported by checkpatch.pl Signed-off-by: Michael Rupprecht --- drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c b

Re: [PATCH 1/6] staging: Import the BCM2835 MMAL-based V4L2 camera driver.

2017-02-05 Thread Michael Zoran
Dave: I'd personally like to see the current version of vchi stabbed, poisoned, beaten, shot, chained and thrown in a river.:) Would it be possible to find another transport for this driver to remove the dependency on VCHI? Given the process of improving drivers in stagging, I don't expect VCHI t

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

2017-02-07 Thread Michael Zoran
On Wed, 2017-02-08 at 01:19 +0300, Dan Carpenter wrote: > On Tue, Feb 07, 2017 at 01:13:34PM -0800, Eric Anholt wrote: > > Dan Carpenter writes: > > > > > There is a bunch of vc04_services that we're still looking to > > > merge in > > > the near future.  Please hold off deleting these until we a

Re: [PATCH 1/7] selftest: sync: basic tests for sw_sync framework

2016-09-22 Thread Michael Ellerman
Emilio López writes: > These tests are based on the libsync test suite from Android. > This commit lays the ground for future tests, as well as includes > tests for a variety of basic allocation commands. Hi Emilio, Just a few comments on the Makefile. > diff --git a/tools/testing/selftests/sy

Re: [PATCH 1/7] selftest: sync: basic tests for sw_sync framework

2016-09-26 Thread Michael Ellerman
Emilio López writes: > El 22/09/16 a las 06:43, Michael Ellerman escribió: >> Emilio López writes: >> >> Please don't include the *kernel* headers, they're really not meant to >> be used in userspace programs :) >> >>> +CFLAGS += -I../../../..

Re: [PATCH 1/7] selftest: sync: basic tests for sw_sync framework

2016-10-04 Thread Michael Ellerman
Emilio López writes: > Hi, > > El 27/09/16 a las 01:23, Michael Ellerman escribió: >> Emilio López writes: >>> El 22/09/16 a las 06:43, Michael Ellerman escribió: >>>> Emilio López writes: >>>> >>>> Please don't include

[PATCH] Tools: hv: recover after hv_vss_daemon freeze times out

2016-10-13 Thread Michael Gissing
operations sent by the Hyper-V host to fail until the daemon is restarted. Signed-off-by: Michael Gissing --- tools/hv/hv_vss_daemon.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c index 5d51d6f..0ecbdab 100644 --- a

Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user

2016-10-24 Thread Michael Zoran
On Mon, 2016-10-24 at 13:54 +0300, Dan Carpenter wrote: > On Sun, Oct 23, 2016 at 10:29:18PM -0700, mzo...@crowfest.net wrote: > > From: Michael Zoran > > > > Signed-off-by: Michael Zoran > > --- > >  drivers/staging/vc04_services/interface/vchiq_arm/vchiq_

Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user

2016-10-24 Thread Michael Zoran
On Mon, 2016-10-24 at 14:36 +0300, Dan Carpenter wrote: > On Mon, Oct 24, 2016 at 04:09:37AM -0700, Michael Zoran wrote: > > I didn't think it looked totally correct, but I'm not sure it's any > > more broken then what is already in the tree. > > It's

Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user

2016-10-24 Thread Michael Zoran
On Mon, 2016-10-24 at 14:58 +0300, Dan Carpenter wrote: > On Mon, Oct 24, 2016 at 04:39:49AM -0700, Michael Zoran wrote: > > On Mon, 2016-10-24 at 14:36 +0300, Dan Carpenter wrote: > > > On Mon, Oct 24, 2016 at 04:09:37AM -0700, Michael Zoran wrote: > > > > I didn

Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg

2016-10-24 Thread Michael Zoran
On Mon, 2016-10-24 at 15:24 +0200, Greg KH wrote: > On Sun, Oct 23, 2016 at 10:29:32PM -0700, mzo...@crowfest.net wrote: > > From: Michael Zoran > > > > The original arm implementation uses dmac_map_area which is not > > portable.  Replace it with an architecture neu

Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user

2016-10-24 Thread Michael Zoran
On Mon, 2016-10-24 at 15:23 +0200, Greg KH wrote: > On Sun, Oct 23, 2016 at 10:29:18PM -0700, mzo...@crowfest.net wrote: > > From: Michael Zoran > > > > Signed-off-by: Michael Zoran > > --- > >  drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c

Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user

2016-10-24 Thread Michael Zoran
At this point, I need to take a step back from this whole thing and evaluate where this is all going. I started this arm64 thing for fun as a tinker idea, and it is quickly becoming more then I think I want to get involved with at this time. I'm not saying I won't return to this at a later time o

Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg

2016-10-25 Thread Michael Zoran
On Tue, 2016-10-25 at 08:00 -0700, Michael Zoran wrote: > On Mon, 2016-10-24 at 10:31 -0700, Eric Anholt wrote: > > mzo...@crowfest.net writes: > > > > >  */ > > >   > > >  static int > > >  create_pagelist(char __user *buf, size_t count, un

Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg

2016-10-25 Thread Michael Zoran
On Mon, 2016-10-24 at 10:31 -0700, Eric Anholt wrote: > mzo...@crowfest.net writes: > > >  */ > >   > >  static int > >  create_pagelist(char __user *buf, size_t count, unsigned short > > type, > > - struct task_struct *task, PAGELIST_T ** ppagelist) > > + struct task_struct *task, PAG

Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg

2016-10-25 Thread Michael Zoran
On Tue, 2016-10-25 at 09:16 -0700, Eric Anholt wrote: > Michael Zoran writes: > > > On Tue, 2016-10-25 at 08:00 -0700, Michael Zoran wrote: > > > On Mon, 2016-10-24 at 10:31 -0700, Eric Anholt wrote: > > > > mzo...@crowfest.net writes: > > > > &g

[PATCH v2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg

2016-10-25 Thread Michael Zoran
edback from Eric Anholt . Signed-off-by: Michael Zoran --- .../interface/vchiq_arm/vchiq_2835_arm.c | 152 + 1 file changed, 93 insertions(+), 59 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc04_se

[PATCH] staging: vc04_services: tie up loose ends with dma_map_sg conversion

2016-10-28 Thread Michael Zoran
this cleanup could have been broken down to chunks, all the changes are to a single file and submitting it as a single related change should make reviewing the diff much easier then if it were submitted piecemeal. Signed-off-by: Michael Zoran --- .../interface/vchiq_arm/vchiq_2835_arm.c

Re: [PATCH] staging: vc04_services: tie up loose ends with dma_map_sg conversion

2016-10-28 Thread Michael Zoran
On Fri, 2016-10-28 at 11:31 -0400, Greg KH wrote: > On Fri, Oct 28, 2016 at 08:16:51AM -0700, Michael Zoran wrote: > > The conversion to dma_map_sg left a few loose ends.  This change > > ties up those loose ends. > > > > 1. Settings the DMA mask is mandatory on 6

Re: [PATCH] staging: vc04_services: tie up loose ends with dma_map_sg conversion

2016-10-28 Thread Michael Zoran
On Fri, 2016-10-28 at 11:42 -0400, Greg KH wrote: > On Fri, Oct 28, 2016 at 08:36:34AM -0700, Michael Zoran wrote: > > On Fri, 2016-10-28 at 11:31 -0400, Greg KH wrote: > > > On Fri, Oct 28, 2016 at 08:16:51AM -0700, Michael Zoran wrote: > > > > The conversion to dm

[PATCH] staging: vc04_services: setup DMA and coherent mask

2016-10-28 Thread Michael Zoran
Setting the DMA mask is optional on 32 bit but is mandatory on 64 bit. Set the DMA mask and coherent to force all DMA to be in the 32 bit address space. This is considered a "good practice" and most drivers already do this. Signed-off-by: Michael Zoran --- .../staging/vc04_services

[PATCH] staging: vc04_services: call sg_init_table to init scatterlist

2016-10-28 Thread Michael Zoran
st element and ensure the chain end is marked. Signed-off-by: Michael Zoran --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc0

[PATCH] staging: vc04_services: remove vchiq_copy_from_user

2016-10-30 Thread Michael Zoran
s were not implemented anyway so no need to fix them. It's easier to just remove them. Signed-off-by: Michael Zoran --- .../staging/vc04_services/interface/vchi/vchi.h| 25 +- .../interface/vchiq_arm/vchiq_2835_arm.c | 11 - .../vc04_services/interface/vchiq_arm/vch

[PATCH] staging: vc04_services: add vchiq_pagelist_info structure

2016-10-31 Thread Michael Zoran
Signed-off-by: Michael Zoran --- .../interface/vchiq_arm/vchiq_2835_arm.c | 223 +++-- 1 file changed, 113 insertions(+), 110 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm

<    4   5   6   7   8   9   10   11   >