[PATCH] vc04_services: Fixing coding guideline error

2017-03-14 Thread Pushkar Jambhlekar
Fixing 'if' block coding style. '{' should follow 'if' for multiline block Signed-off-by: Pushkar Jambhlekar --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/

[PATCH 3/4] staging: atomisp: remove useless #ifdef ISP2401 on top of atomisp_cmd.c

2017-03-14 Thread Daeseok Youn
There is no reason to have "#ifdef ISP2401" condition on top of atomisp_cmd.c file Signed-off-by: Daeseok Youn --- drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c b/drivers/st

[PATCH 4/4] staging: atomisp: fix "alignment should match open parenthesis"

2017-03-14 Thread Daeseok Youn
Fix checkpatch.pl issues in atomisp_cmd.c : "CHECK: Alignment should match open parenthesis" Signed-off-by: Daeseok Youn --- .../media/atomisp/pci/atomisp2/atomisp_cmd.c | 179 +++-- 1 file changed, 90 insertions(+), 89 deletions(-) diff --git a/drivers/staging/media/atom

[PATCH 2/4] staging: atomisp: fix inconsistent indenting

2017-03-14 Thread Daeseok Youn
Fix warnings from the smatch tool atomisp_cmd.c:5698 atomisp_set_fmt_to_snr() warn: inconsistent indenting atomisp_cmd.c:5714 atomisp_set_fmt_to_snr() warn: inconsistent indenting Signed-off-by: Daeseok Youn --- drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c | 4 ++-- 1 file cha

[PATCH 1/4] staging: atomisp: fix unsigned int comparison with less than zero

2017-03-14 Thread Daeseok Youn
Fix warnings from the smatch tool atomisp_cmd.c:2649 atomisp_set_array_res() warn: unsigned 'config->width' is never less than zero. atomisp_cmd.c:2650 atomisp_set_array_res() warn: unsigned 'config->height' is never less than zero. Signed-off-by: Daeseok Youn --- drivers/staging/media

[PATCH 3/3] staging: ks7010: fix checkpatch PARENTHESIS_ALIGNMENT

2017-03-14 Thread Tobin C. Harding
Checkpatch emits WARNING and CHECK for prototype declarations. WARNING: function definition argument 'void *' should also have an identifier name CHECK: Alignment should match open parenthesis Also prototype parameters wrap more than is necessary. Tidy up function prototypes. Fix 5 error/warnin

[PATCH 2/3] staging: ks7010: fix checkpatch BLOCK_COMMENT_STYLE

2017-03-14 Thread Tobin C. Harding
Checkpatch emits WARNING: Block comments use a trailing */ on a separate line. Move comments to (kernel doc format) struct comment. Signed-off-by: Tobin C. Harding --- drivers/staging/ks7010/ks_hostif.h | 50 ++ 1 file changed, 40 insertions(+), 10 deletions(

[PATCH 1/3] staging: ks7010: fix checkpatch SPACING

2017-03-14 Thread Tobin C. Harding
Checkpatch emits WARNING: Unnecessary space before function pointer arguments. Remove unnecessary space before function pointer. Signed-off-by: Tobin C. Harding --- drivers/staging/ks7010/ks7010_sdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks

[PATCH 0/3] staging: ks7010: clean up headers

2017-03-14 Thread Tobin C. Harding
Checkpatch warns about various issues when parsing ks7010 headers. Some of these require significant understanding of the driver to fix, however there are also a bunch of trivial fixes required. Remove all the low hanging fruit. Patch 01 removes unnecessary whitespace. Patch 02 adds kernel doc f

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

2017-03-14 Thread Greg KH
On Tue, Mar 14, 2017 at 03:32:43PM +, Dave Stevenson wrote: > NACK. > Phil asked for a couple of changes, although functionally identical. > I'll send a patch when I get a chance. What do you mean, "when I get a chance"? What's wrong with this one? > Your existing workaround has removed the

Re: [PATCH] vc04_services: Fixing coding and logical guidelines

2017-03-14 Thread Pushkar Jambhlekar
Thanks. I will rewrite patch according to the suggestions. On Tue, Mar 14, 2017 at 9:52 PM, Greg Kroah-Hartman wrote: > On Tue, Mar 14, 2017 at 06:39:04PM +0530, Pushkar Jambhlekar wrote: >> Description: > > No need for that line. > >> in file 'vc04_services/interface/vchiq_arm/vchiq_shim.c',

Re: [PATCH] vc04_services: Fixing coding and logical guidelines

2017-03-14 Thread Greg Kroah-Hartman
On Tue, Mar 14, 2017 at 06:39:04PM +0530, Pushkar Jambhlekar wrote: > Description: No need for that line. > in file 'vc04_services/interface/vchiq_arm/vchiq_shim.c', making changes > to make code according to 'checkpath.pl'. Why indent? Also, you need to be specific as to what type of chan

Re: [PATCH] Fixed a minor coding style warning. Arguments in the macros should be coverd in brackets to aviod any precedence issues.

2017-03-14 Thread kbuild test robot
Hi mshan, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.11-rc2 next-20170310] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/mshan/Fixed-a-minor-coding-style-wa

[PATCH] drivers/staging/goldfish/goldfish_nand.c: Fixed Coding style Warnings.

2017-03-14 Thread mshan
Embedded function names are less appropriate to use when refactoring, can cause function renaming. Prefer the use of "%s", __func__ to embedded function names Signed-off-by: mshan --- drivers/staging/goldfish/goldfish_nand.c | 16 1 file changed, 8 insertions(+), 8 deletions(-)

[PATCH] vc04_services: Fixing coding and logical guidelines

2017-03-14 Thread Pushkar Jambhlekar
Description: in file 'vc04_services/interface/vchiq_arm/vchiq_shim.c', making changes to make code according to 'checkpath.pl'. Also, fixing logical issue, i.e. removing break after goto statement. Signed-off-by: Pushkar Jambhlekar --- .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 33

Re: [PATCHv5 4/4] Staging: ks7010: ks_wlan_ioctl.h: Wrap complex macros with parentheses

2017-03-14 Thread Tobin C. Harding
On Tue, Mar 14, 2017 at 07:25:54PM -0700, Matthew Giassa wrote: > Wrapping all complex macros with parentheses to resolve checkpatch > errors. This change, along with the preceding changes in this change > set, resolves all checkpatch warnings and errors for the file. > > Signed-off-by: Matthew Gi

[PATCH 0/2] staging: ks7010: remove unnecessary code

2017-03-14 Thread Tobin C. Harding
Driver contains comments of form /**/. These do not add to the clarity of the code, we should remove them. Driver has preprocessor directives (#if 0/1). These are not considered helpful. Checkpatch warns about them also. Patch 01 removes superfluous function comments. Patch 02 removes de

[PATCH 1/2] staging: ks7010: remove superfluous comments

2017-03-14 Thread Tobin C. Harding
Driver uses custom function comment format. These comments are on functions with internal likage. Comment string /*/* adds nothing to the driver. Comment 'Wireless Handler' does not have allot of meaning. Remove superfluous function comments. Leave comments that add meaning. Signed-off-by

[PATCH 2/2] staging: ks7010: remove dead code

2017-03-14 Thread Tobin C. Harding
Driver has dead code compiled out using preprocessor directives. TODO file asks for these not to be removed - ignore this. Remove dead code. Remove 'do not remove #if 0/1 ...' from TODO file. Signed-off-by: Tobin C. Harding --- drivers/staging/ks7010/TODO | 2 - drivers/staging/ks701

Re: [PATCH] staging: ks7010: fix off by one error

2017-03-14 Thread Tobin C. Harding
On Wed, Mar 15, 2017 at 09:48:55AM +0800, Greg Kroah-Hartman wrote: > On Wed, Mar 15, 2017 at 09:48:14AM +0800, Greg Kroah-Hartman wrote: > > On Wed, Mar 15, 2017 at 12:01:07PM +1100, Tobin C. Harding wrote: > > > Bug introduced in commit 7676b72 by Tobin C. Harding. > > > > > > Remove equals sign

Re: [PATCH] staging: ks7010: fix off by one error

2017-03-14 Thread Tobin C. Harding
On Wed, Mar 15, 2017 at 09:48:14AM +0800, Greg Kroah-Hartman wrote: > On Wed, Mar 15, 2017 at 12:01:07PM +1100, Tobin C. Harding wrote: > > Bug introduced in commit 7676b72 by Tobin C. Harding. > > > > Remove equals sign from comparison, fixing off by one error. > > > > Signed-off-by: Tobin C. Ha

[PATCHv5 4/4] Staging: ks7010: ks_wlan_ioctl.h: Wrap complex macros with parentheses

2017-03-14 Thread Matthew Giassa
Wrapping all complex macros with parentheses to resolve checkpatch errors. This change, along with the preceding changes in this change set, resolves all checkpatch warnings and errors for the file. Signed-off-by: Matthew Giassa --- drivers/staging/ks7010/ks_wlan_ioctl.h | 64 +--

[PATCHv5 3/4] Staging: ks7010: ks_wlan_ioctl.h: Aligning parameters in function prototypes.

2017-03-14 Thread Matthew Giassa
Re-aligning function parameters in function prototypes by inserting additional hard-tabs to resolve a checkpatch warning. Signed-off-by: Matthew Giassa --- drivers/staging/ks7010/ks_wlan_ioctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_wlan_io

[PATCHv5 2/4] Staging: ks7010: ks_wlan_ioctl.h: Remove trailing white space

2017-03-14 Thread Matthew Giassa
Removing trailing white space characters in comments to resolve a checkpatch warning. Signed-off-by: Matthew Giassa --- drivers/staging/ks7010/ks_wlan_ioctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_wlan_ioctl.h b/drivers/staging/ks7010/ks_w

[PATCHv5 1/4] Staging: ks7010: ks_wlan_ioctl.h: Removed mixed spaces/tabs

2017-03-14 Thread Matthew Giassa
Removing mixed spaces/hard-tabs used to create a "column alignment" of macro names and macro values. Signed-off-by: Matthew Giassa --- drivers/staging/ks7010/ks_wlan_ioctl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ks7010/ks_wlan_ioctl.h b/drivers/

Re: [PATCH] staging: android: ion: reduce lock contention latency

2017-03-14 Thread junil0814....@lge.com
Laura Abbott wrote on 2017-03-15 오전 2:10: > On 03/14/2017 12:51 AM, Junil Lee wrote: >> Replace list into lock-less list of ion page pool. >> >> Measure how mutex lock contention latency on android. >> >> 1. the test is done under android 7.0 >> 2. startup many applications circularly >> 3. find s

Re: [PATCH] staging: ks7010: fix off by one error

2017-03-14 Thread Greg Kroah-Hartman
On Wed, Mar 15, 2017 at 09:48:14AM +0800, Greg Kroah-Hartman wrote: > On Wed, Mar 15, 2017 at 12:01:07PM +1100, Tobin C. Harding wrote: > > Bug introduced in commit 7676b72 by Tobin C. Harding. > > > > Remove equals sign from comparison, fixing off by one error. > > > > Signed-off-by: Tobin C. Ha

Re: [PATCH] staging: ks7010: fix off by one error

2017-03-14 Thread Greg Kroah-Hartman
On Wed, Mar 15, 2017 at 12:01:07PM +1100, Tobin C. Harding wrote: > Bug introduced in commit 7676b72 by Tobin C. Harding. > > Remove equals sign from comparison, fixing off by one error. > > Signed-off-by: Tobin C. Harding In the future, when you fix something, it's nice to add a tag saying so

[PATCH 1/2] Drivers: hv: Fix a typo

2017-03-14 Thread kys
From: K. Y. Srinivasan Fix a typo in the macro. Signed-off-by: K. Y. Srinivasan --- arch/x86/include/uapi/asm/hyperv.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/include/uapi/asm/hyperv.h b/arch/x86/include/uapi/asm/hyperv.h index 3a20ccf..32ea7a3 10064

[PATCH 0/2] Drivers: hv: Support vAPIC

2017-03-14 Thread kys
From: K. Y. Srinivasan Enable autoeoi based on the hypervisor recommendations. This is required to support vAPIC. K. Y. Srinivasan (2): Drivers: hv: Fix a typo Drivers: hv: Base autoeoi enablement based on hypervisor hints arch/x86/include/uapi/asm/hyperv.h |7 ++- drivers/hv/hv.c

[PATCH] staging: ks7010: fix off by one error

2017-03-14 Thread Tobin C. Harding
Bug introduced in commit 7676b72 by Tobin C. Harding. Remove equals sign from comparison, fixing off by one error. Signed-off-by: Tobin C. Harding --- drivers/staging/ks7010/ks_wlan_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_wlan_net.c b

Re: media / v4l2-mc: wishlist for complex cameras (was Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline)

2017-03-14 Thread Mauro Carvalho Chehab
Em Tue, 14 Mar 2017 23:32:54 +0100 Pavel Machek escreveu: > Hi! > > > > > Even if they were merged, if we keep the same mean time to develop a > > > > libv4l plugin, that would mean that a plugin for i.MX6 could take 2-3 > > > > years to be developed. > > > > > > > > There's a clear message on

[PATCH V3 0/1] staging: bcm2835-audio: Add support for simultanous HDMI and Headphone audio

2017-03-14 Thread Michael Zoran
This is V3 of the change to enable simultanous HDMI and Headphone audio Changes V2: 1. Convert to module parameters rather then compile time options for configurating which virtual sound card should be loaded. 2. Remove unnecessary mutex acquire in snd_bcm2835_new_simple_p

[PATCH V3 1/1] staging: bcm2835-audio: Add support for simultanous HDMI and Headphone audio

2017-03-14 Thread Michael Zoran
The firmware for the Raspberry PI already supports simultanous output of audio through both the HDMI and the Headphone jack. The current implementation of ALSA doesn't expose this well to user mode since the firmware audio is represented as a single card. A newer approach is taken here and a virt

[PATCH 2/2] staging: dgnc: preserve return code

2017-03-14 Thread Tobin C. Harding
Return code from tty_check_change() should be being preserved. Preserve return code from call to tty_check_change(). Signed-off-by: Tobin C. Harding --- drivers/staging/dgnc/dgnc_tty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/dr

[PATCH 0/2] staging: dgnc: fix return error codes

2017-03-14 Thread Tobin C. Harding
Review of a previously merged patch made a few comments that required investigating. Some function call errors were not being preserved across the function call chain. It was found that driver code was non-uniform in its use of error return codes, identical failures are returning different error

[PATCH 1/2] staging: dgnc: make error codes uniform

2017-03-14 Thread Tobin C. Harding
Driver code is non-uniform in its use of error return codes, identical failures are returning different error codes. Return is on failure when checking struct magic numbers. Error codes used include -ENODEV, -ENXIO, -EIO, and -EFAULT. Use -ENXIO. Justification is that usual call includes a check t

media / v4l2-mc: wishlist for complex cameras (was Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline)

2017-03-14 Thread Pavel Machek
Hi! > > > Even if they were merged, if we keep the same mean time to develop a > > > libv4l plugin, that would mean that a plugin for i.MX6 could take 2-3 > > > years to be developed. > > > > > > There's a clear message on it: > > > - we shouldn't keep pushing for a solution via libv4l. > >

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 ___ devel mailing list de...@linuxdriverpr

Re: [PATCH 1/3] staging: dgnc: return error code directly

2017-03-14 Thread Tobin C. Harding
On Tue, Mar 14, 2017 at 03:00:48PM +0300, Dan Carpenter wrote: > On Mon, Mar 13, 2017 at 12:37:32PM +1100, Tobin C. Harding wrote: > > if (!tty || tty->magic != TTY_MAGIC) > > - return rc; > > + return -EIO; > > > > [ snip ] > > > if (!tty || tty->magic != TTY_MAGIC)

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-14 Thread Nicolas Dufresne
Le mardi 14 mars 2017 à 15:47 +0100, Benjamin Gaignard a écrit : > Should we use /devi/ion/$heap instead of /dev/ion_$heap ? > I think it would be easier for user to look into one directory rather > then in whole /dev to find the heaps > > > is that we don't have to worry about a limit of 32 possi

Re: [PATCH 08/12] staging: ks7010: remove unnecessary else statement

2017-03-14 Thread Tobin C. Harding
On Tue, Mar 14, 2017 at 02:18:46PM +0300, Dan Carpenter wrote: > On Tue, Mar 14, 2017 at 09:54:22PM +1100, Tobin C. Harding wrote: > > On the topic of "one thing per patch", so we are aiming to do one > > thing per patch so it is easier to locate bugs if they get introduced > > but also, and more i

Re: [PATCH 1/3] Staging: ks7010: ks_*: Use preferred 'u8' kernel type over 'uint8_t'

2017-03-14 Thread Tobin C. Harding
On Tue, Mar 14, 2017 at 04:12:31PM +0100, Shiva Kerdel wrote: > Hello Tobin, > > I missed the other files because they did not show up using the checkpatch > script. > Next time I will do a recursive search through the files before committing > the changes to avoid this situation. > > Before I

Re: [PATCHv2 2/2] speakup: Support spelling unicode characters

2017-03-14 Thread Chris Brannon
Samuel Thibault writes: > This supports spelling unicode characters by just passing them to > the speech synthesis in direct mode. > > Signed-off-by: Samuel Thibault Reviewed-by: Chris Brannon ___ devel mailing list de...@linuxdriverproject.org http:

Re: [PATCH] speakup: Fix bogus caps on speaking unicode characters

2017-03-14 Thread Chris Brannon
Samuel Thibault writes: > commit 33590c185299 ("speakup: Support spelling unicode characters") > mistakenly passed unicode characters to IS_CHAR(), which only > supports latin1. Let's assume non-latin1 is lower case, like is done > in spell_word(). Reviewed-by: Chris Brannon __

Re: [PATCHv2 2/2] speakup: Support spelling unicode characters

2017-03-14 Thread Samuel Thibault
Chris Brannon, on mar. 14 mars 2017 09:06:36 -0700, wrote: > This is going to misidentify some Unicode characters >= 0x100 as > capital. You probably want to add ch < 0x100 tests to the if Indeed, I've submitted a correction, thanks! Samuel ___ devel m

[PATCH] speakup: Fix bogus caps on speaking unicode characters

2017-03-14 Thread Samuel Thibault
commit 33590c185299 ("speakup: Support spelling unicode characters") mistakenly passed unicode characters to IS_CHAR(), which only supports latin1. Let's assume non-latin1 is lower case, like is done in spell_word(). Signed-off-by: Samuel Thibault diff --git a/drivers/staging/speakup/main.c b/d

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-14 Thread Laura Abbott
On 03/14/2017 07:47 AM, Benjamin Gaignard wrote: > 2017-03-13 22:09 GMT+01:00 Laura Abbott : >> On 03/12/2017 12:05 PM, Daniel Vetter wrote: >>> On Sun, Mar 12, 2017 at 2:34 PM, Benjamin Gaignard >>> wrote: 2017-03-09 18:38 GMT+01:00 Laura Abbott : > On 03/09/2017 02:00 AM, Benjamin Gaign

[PATCH] staging: vc04_services: Remove unused functions

2017-03-14 Thread Jean-Baptiste Abbadie
These four functions are not used and report errors with sparse. Signed-off-by: Jean-Baptiste Abbadie --- .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 50 -- 1 file changed, 50 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c

Re: [PATCH v2 3/5] pci: set msi_domain_ops as __ro_after_init

2017-03-14 Thread Bjorn Helgaas
On Tue, Mar 14, 2017 at 11:50:50AM -0700, Jessica Frazelle wrote: > I can update the patch series, sorry haven't had much time to devote > to this the past few weeks, but will update in the next day. Thanks, Jessica! No problem, I know the feeling :) Bjorn ___

Re: [PATCH v2 3/5] pci: set msi_domain_ops as __ro_after_init

2017-03-14 Thread Jessica Frazelle
I can update the patch series, sorry haven't had much time to devote to this the past few weeks, but will update in the next day. On Tue, Mar 7, 2017 at 11:07 AM, Bjorn Helgaas wrote: > On Thu, Feb 16, 2017 at 03:38:05PM +0100, Thomas Gleixner wrote: >> On Thu, 16 Feb 2017, Bjorn Helgaas wrote: >

Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event

2017-03-14 Thread Pavel Machek
On Mon 2017-03-13 10:45:38, Russell King - ARM Linux wrote: > On Mon, Mar 13, 2017 at 11:02:34AM +0100, Hans Verkuil wrote: > > On 03/11/2017 07:14 PM, Steve Longerbeam wrote: > > > The event must be user visible, otherwise the user has no indication > > > the error, and can't correct it by stream

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-14 Thread Pavel Machek
Hi! > > Mid-layer is difficult... there are _hundreds_ of possible > > pipeline setups. If it should live in kernel or in userspace is a > > question... but I don't think having it in kernel helps in any way. > > Mid-layer is difficult, because we either need to feed some > library with knowledge

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-14 Thread Steve Longerbeam
On 03/12/2017 02:09 PM, Russell King - ARM Linux wrote: On Sun, Mar 12, 2017 at 08:40:37PM +, Russell King - ARM Linux wrote: On Sun, Mar 12, 2017 at 01:36:32PM -0700, Steve Longerbeam wrote: But hold on, if my logic is correct, then why did the CSI power-off get reached in your case, mul

Re: [PATCH] scsi: storvsc: Add support for FC rport.

2017-03-14 Thread Cathy Avery
Good catch. Thanks! On 03/14/2017 12:42 PM, Stephen Hemminger wrote: On Tue, 14 Mar 2017 12:01:03 -0400 Cathy Avery wrote: #if IS_ENABLED(CONFIG_SCSI_FC_ATTRS) if (host->transportt == fc_transport_template) { + struct fc_rport_identifiers ids; + + ids.nod

Re: [PATCH] staging: android: ion: reduce lock contention latency

2017-03-14 Thread Laura Abbott
On 03/14/2017 12:51 AM, Junil Lee wrote: > Replace list into lock-less list of ion page pool. > > Measure how mutex lock contention latency on android. > > 1. the test is done under android 7.0 > 2. startup many applications circularly > 3. find sample in trace log as below > > cameraserver-

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-14 Thread Steve Longerbeam
On 03/12/2017 03:10 PM, Mauro Carvalho Chehab wrote: Em Sun, 12 Mar 2017 21:13:24 + Russell King - ARM Linux escreveu: On Sun, Mar 12, 2017 at 05:59:28PM -0300, Mauro Carvalho Chehab wrote: Yet, udev/systemd has some rules that provide an unique name for V4L devices at /lib/udev/rules.d

Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event

2017-03-14 Thread Steve Longerbeam
On 03/14/2017 09:47 AM, Russell King - ARM Linux wrote: On Tue, Mar 14, 2017 at 12:21:31PM -0400, Nicolas Dufresne wrote: My main concern here based on what I'm reading, is that this driver is not even able to notice immediately that a produced frame was corrupted (because it's out of sync). F

Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event

2017-03-14 Thread Russell King - ARM Linux
On Tue, Mar 14, 2017 at 12:21:31PM -0400, Nicolas Dufresne wrote: > My main concern here based on what I'm reading, is that this driver is > not even able to notice immediately that a produced frame was corrupted > (because it's out of sync). From usability perspective, this is really > bad. Can't

Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event

2017-03-14 Thread Steve Longerbeam
On 03/14/2017 09:21 AM, Nicolas Dufresne wrote: Le lundi 13 mars 2017 à 10:45 +, Russell King - ARM Linux a écrit : On Mon, Mar 13, 2017 at 11:02:34AM +0100, Hans Verkuil wrote: On 03/11/2017 07:14 PM, Steve Longerbeam wrote: The event must be user visible, otherwise the user has no indi

Re: [PATCH] scsi: storvsc: Add support for FC rport.

2017-03-14 Thread Stephen Hemminger
On Tue, 14 Mar 2017 12:01:03 -0400 Cathy Avery wrote: > #if IS_ENABLED(CONFIG_SCSI_FC_ATTRS) > if (host->transportt == fc_transport_template) { > + struct fc_rport_identifiers ids; > + > + ids.node_name = 0; > + ids.port_name = 0; > + ids.por

Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event

2017-03-14 Thread Nicolas Dufresne
Le lundi 13 mars 2017 à 10:45 +, Russell King - ARM Linux a écrit : > On Mon, Mar 13, 2017 at 11:02:34AM +0100, Hans Verkuil wrote: > > On 03/11/2017 07:14 PM, Steve Longerbeam wrote: > > > The event must be user visible, otherwise the user has no indication > > > the error, and can't correct i

Re: [PATCHv2 2/2] speakup: Support spelling unicode characters

2017-03-14 Thread Chris Brannon
Samuel Thibault writes: > This supports spelling unicode characters by just passing them to > the speech synthesis in direct mode. > > Signed-off-by: Samuel Thibault > > Index: linux-4.10/drivers/staging/speakup/main.c > === > --- l

[PATCH] scsi: storvsc: Add support for FC rport.

2017-03-14 Thread Cathy Avery
Included in the current storvsc driver for Hyper-V is the ability to access luns on an FC fabric via a virtualized fiber channel adapter exposed by the Hyper-V host. The driver also attaches to the FC transport to allow host and port names to be published under /sys/class/fc_host/hostX. Current cus

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

2017-03-14 Thread Dave Stevenson
NACK. Phil asked for a couple of changes, although functionally identical. I'll send a patch when I get a chance. Your existing workaround has removed the immediate issue of the overflow, this was only cleaning things up to actually match the original API. Dave On 14 March 2017 at 15:10, Micha

Re: [PATCH 1/3] Staging: ks7010: ks_*: Use preferred 'u8' kernel type over 'uint8_t'

2017-03-14 Thread Shiva Kerdel
Hello Tobin, I missed the other files because they did not show up using the checkpatch script. Next time I will do a recursive search through the files before committing the changes to avoid this situation. Before I could replay on your message, I got notified of my patches already been merg

[PATCH] bcm2835-v4l2: Fix buffer overflow problem

2017-03-14 Thread Michael Zoran
From: Dave Stevenson https://github.com/raspberrypi/linux/issues/1447 port_parameter_get() failed to account for the header (u32 id and u32 size) in the size before memcpying the response into the response buffer, so overrunning the provided buffer by 8 bytes. Account for those bytes, and also a

Re: [PATCH 08/29] drivers, md: convert mddev.active from atomic_t to refcount_t

2017-03-14 Thread James Bottomley
On Tue, 2017-03-14 at 12:29 +, Reshetova, Elena wrote: > > Elena Reshetova writes: > > > > > refcount_t type and corresponding API should be > > > used instead of atomic_t when the variable is used as > > > a reference counter. This allows to avoid accidental > > > refcounter overflows that m

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-14 Thread Benjamin Gaignard
2017-03-13 22:09 GMT+01:00 Laura Abbott : > On 03/12/2017 12:05 PM, Daniel Vetter wrote: >> On Sun, Mar 12, 2017 at 2:34 PM, Benjamin Gaignard >> wrote: >>> 2017-03-09 18:38 GMT+01:00 Laura Abbott : On 03/09/2017 02:00 AM, Benjamin Gaignard wrote: > 2017-03-06 17:04 GMT+01:00 Daniel Vette

RE: [PATCH 1/1] Drivers: hv: vmbus: Don't leak channel ids

2017-03-14 Thread KY Srinivasan
> -Original Message- > From: Dexuan Cui > Sent: Tuesday, March 14, 2017 5:49 AM > To: KY Srinivasan ; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com; vkuzn...@redhat.com; jasow...@redhat.com; > leann.ogasaw..

[PATCH v4 2/2] staging: dvb-frontends: removed code in comments.

2017-03-14 Thread Arushi Singhal
Commenting out Code is a Bad Idea. Comments are their to explain the code and how the code achieves its goal and as codes in the comments does not explain what the code is doing so there is no use of commenting them. So in this patch codes in the comments are removed. Signed-off-by: Arushi Singha

[PATCH v4 1/2] staging: speakup: identation should use tabs

2017-03-14 Thread Arushi Singhal
Indentation should always use tabs and never spaces. Signed-off-by: Arushi Singhal --- Changes since v4 -Added the changes done since v4. drivers/staging/speakup/speakup_dtlk.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/speakup/speakup_dtlk.h

[PATCH v4 0/2] staging: checkpatch cleanups

2017-03-14 Thread Arushi Singhal
Improve readability by fixing multiple checkpatch.pl issues in drivers. Arushi Singhal (2): staging: speakup: identation should use tabs staging: dvb-frontends: removed code in comments. drivers/media/dvb-frontends/drxk_hard.c | 1 - drivers/staging/speakup/speakup_dtlk.h | 10 +--

[patch 3/4] staging: speakup: move spk_stop_serial_interrupt into synth-specific release function

2017-03-14 Thread Okash Khawaja
This moves call to spk_stop_serial_interrupt() function out of synth_release() and into release() method of specific spk_synth instances. This is because the spk_stop_serial_interrupt() call is specific to current serial i/o implementation. Moving it into each synth's release() method gives the dec

[patch 1/4] staging: speakup: spk_serial_out and spk_wait_for_xmitr to take synth arg

2017-03-14 Thread Okash Khawaja
These two functions are always called from a context where spk_synth instance is available. They also use the spk_synth instance but instead of taking it as an argument, they rely on a global spk_synth instance inside synth.c which points to the same synth as the one being passed in as argument. S

[patch 2/4] staging: serial: add spk_io_ops struct to spk_synth

2017-03-14 Thread Okash Khawaja
This patch adds spk_io_ops struct which contain those methods whose job is to communicate with synth device. Currently, all comms with external synth device use raw serial i/o. The idea is to group all methods which do the actual communication with external device into this new struct. Then migrati

[patch 0/4] staging: speakup: refactor to make raw serial i/o swappable

2017-03-14 Thread Okash Khawaja
Hi, The following patches group together most of raw serial comms with external synth and makes rest of the code agnostic to it, so that raw serial comms can be easily replaced by an alternate way to communicate with external synths. Plan is to follow these patches with alternate implementation of

[patch 4/4] staging: speakup: move those functions which do outgoing serial comms, into serialio.c

2017-03-14 Thread Okash Khawaja
This moves spk_synth_immediate and spk_serial_synth_probe functions into serialio.c. These functions do outgoing serial comms. The move is a step towards collecting all serial comms in serialio.c. This also renames spk_synth_immediate to spk_serial_synth_immediate. Code inside those functions has

[bug report] staging/atomisp: Add support for the Intel IPU v2

2017-03-14 Thread Dan Carpenter
Hello Alan Cox, The patch a49d25364dfb: "staging/atomisp: Add support for the Intel IPU v2" from Feb 17, 2017, leads to the following static checker warning: drivers/staging/media/atomisp/i2c/imx/imx.c:498 imx_set_exposure_gain() warn: inconsistent returns 'mutex:&dev->input_lock'

[PATCH V2 1/1] staging: bcm2835-audio: Add support for simultanous HDMI and Headphone audio

2017-03-14 Thread Michael Zoran
The firmware for the Raspberry PI already supports simultanous output of audio through both the HDMI and the Headphone jack. The current implementation of ALSA doesn't expose this well to user mode since the firmware audio is represented as a single card. A newer approach is taken here and a virt

[PATCH V2 0/1] staging: bcm2835-audio: Add support for simultanous HDMI and Headphone audio

2017-03-14 Thread Michael Zoran
This is V2 of the change to enable simultanous HDMI and Headphone audio Changes V2: 1. Convert to module parameters rather then compile time options for configurating which virtual sound card should be loaded. 2. Remove unnecessary mutex acquire in snd_bcm2835_new_simple_p

RE: [PATCH 1/1] Drivers: hv: vmbus: Don't leak channel ids

2017-03-14 Thread Dexuan Cui
> From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of k...@exchange.microsoft.com > > diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c > index e1a3ae4..0a85246 100644 > --- a/drivers/hv/channel_mgmt.c > +++ b/drivers/hv/channel_mgm

RE: [PATCH 08/29] drivers, md: convert mddev.active from atomic_t to refcount_t

2017-03-14 Thread Reshetova, Elena
> Elena Reshetova writes: > > > refcount_t type and corresponding API should be > > used instead of atomic_t when the variable is used as > > a reference counter. This allows to avoid accidental > > refcounter overflows that might lead to use-after-free > > situations. > > > > Signed-off-by: Elen

Re: [PATCH 08/29] drivers, md: convert mddev.active from atomic_t to refcount_t

2017-03-14 Thread Michael Ellerman
Elena Reshetova writes: > refcount_t type and corresponding API should be > used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free > situations. > > Signed-off-by: Elena Reshetova > Sig

Re: [PATCH] rtl8188eu: Correcting macro ROUND macro defination

2017-03-14 Thread Dan Carpenter
I don't understand why we have any of these things under the /* AES tables*/ comment. They don't seem to be used anywhere. Can't we just delete them? regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriv

Re: [PATCH] rtl8188eu: Correcting macro ROUND macro defination

2017-03-14 Thread Pushkar Jambhlekar
Your concerns were valid. Since 'do' is defined on the new-line, git did not include it in diff. On Tue, Mar 14, 2017 at 5:22 PM, Alexander Kapshuk wrote: > On Tue, Mar 14, 2017 at 1:44 PM, Pushkar Jambhlekar > wrote: >> Hi Alexander, >> >> It is not needed for a macro. I am modifying do---while

Re: [PATCH 1/3] staging: dgnc: return error code directly

2017-03-14 Thread Dan Carpenter
On Mon, Mar 13, 2017 at 12:37:32PM +1100, Tobin C. Harding wrote: > if (!tty || tty->magic != TTY_MAGIC) > - return rc; > + return -EIO; > [ snip ] > if (!tty || tty->magic != TTY_MAGIC) > - return rc; > + return -EFAULT; My recolecti

Re: [PATCHv2 1/2] speakup: make get_char actually get unicode characters

2017-03-14 Thread Dan Carpenter
On Mon, Mar 13, 2017 at 01:17:13AM +0100, Samuel Thibault wrote: > 9831013cbdbd3d06430a1db01d8c32d50c7d1c04 ('speakup: convert screen reading to > 16bit characters') paved the way for handling unicode characters in speakup, > but > for the review mode, it missed actually getting unicode characters

Re: [PATCH] rtl8188eu: Correcting macro ROUND macro defination

2017-03-14 Thread Alexander Kapshuk
On Tue, Mar 14, 2017 at 1:44 PM, Pushkar Jambhlekar wrote: > Hi Alexander, > > It is not needed for a macro. I am modifying do---while() loop for ROUND > macro. > > /** > * Expand the cipher key into the encryption key schedule. > * > * @return the number of rounds for the given cipher ke

Re: [PATCH] rtl8188eu: Correcting macro ROUND macro defination

2017-03-14 Thread Pushkar Jambhlekar
Hi Alexander, It is not needed for a macro. I am modifying do---while() loop for ROUND macro. /** * Expand the cipher key into the encryption key schedule. * * @return the number of rounds for the given cipher key size. */ #define ROUND(i, d, s) \ do {

Re: [PATCH] rtl8188eu: Correcting macro ROUND macro defination

2017-03-14 Thread Alexander Kapshuk
On Tue, Mar 14, 2017 at 1:26 PM, Pushkar Jambhlekar wrote: > Description: > There should not be ';' after do ... while(0) in macro defination > > Signed-off-by: Pushkar Jambhlekar > --- > drivers/staging/rtl8188eu/core/rtw_security.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

[PATCH] rtl8188eu: Correcting macro ROUND macro defination

2017-03-14 Thread Pushkar Jambhlekar
Description: There should not be ';' after do ... while(0) in macro defination Signed-off-by: Pushkar Jambhlekar --- drivers/staging/rtl8188eu/core/rtw_security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_security.c b/drivers/stag

Re: [PATCH 08/12] staging: ks7010: remove unnecessary else statement

2017-03-14 Thread Dan Carpenter
On Tue, Mar 14, 2017 at 09:54:22PM +1100, Tobin C. Harding wrote: > On the topic of "one thing per patch", so we are aiming to do one > thing per patch so it is easier to locate bugs if they get introduced > but also, and more importantly, to make review easier. So from this > patch am I right in t

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

2017-03-14 Thread Michael Zoran
On Tue, 2017-03-14 at 14:05 +0300, Dan Carpenter wrote: > On Tue, Mar 14, 2017 at 01:55:01AM -0700, Michael Zoran wrote: > > On Tue, 2017-03-14 at 09:17 +0100, Stefan Wahren wrote: > > > Am 14.03.2017 um 07:45 schrieb Michael Zoran: > > > > The extra virtual cards created for HDMI and Headphone out

Re: [PATCH 10/12] staging: ks7010: fix checkpatch memset warning

2017-03-14 Thread Dan Carpenter
On Tue, Mar 14, 2017 at 09:44:07PM +1100, Tobin C. Harding wrote: > On Tue, Mar 14, 2017 at 12:27:07PM +0300, Dan Carpenter wrote: > > This code is #ifdeffed out so you should just delete it instead of > > fixing it. > > The TODO file specifically asks for ifdeffed code not to be removed unless >

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

2017-03-14 Thread Dan Carpenter
On Tue, Mar 14, 2017 at 01:55:01AM -0700, Michael Zoran wrote: > On Tue, 2017-03-14 at 09:17 +0100, Stefan Wahren wrote: > > 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 expo

Re: [PATCH 1/2] staging: bcm2835-audio: Add support for simultanous HDMI and Headphone audio

2017-03-14 Thread Dan Carpenter
On Mon, Mar 13, 2017 at 11:45:08PM -0700, Michael Zoran wrote: > +int snd_bcm2835_new_simple_pcm(struct bcm2835_chip *chip, > +const char *name, > +enum snd_bcm2835_route route, > +u32 numchannels) > +{ > + stru

Re: [PATCH 08/12] staging: ks7010: remove unnecessary else statement

2017-03-14 Thread Tobin C. Harding
On Tue, Mar 14, 2017 at 12:23:14PM +0300, Dan Carpenter wrote: > On Tue, Mar 14, 2017 at 09:54:06AM +1100, Tobin C. Harding wrote: > > @@ -2196,20 +2195,21 @@ static int ks_wlan_set_pmksa(struct net_device *dev, > > case IW_PMKSA_REMOVE: > > if (list_empty(&priv->pmklist.head)) { /

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-03-14 Thread Philipp Zabel
On Tue, 2017-03-14 at 08:34 +0100, Hans Verkuil wrote: > On 03/13/2017 10:03 PM, Sakari Ailus wrote: > > Hi Steve, > > > > On Mon, Mar 13, 2017 at 11:06:22AM -0700, Steve Longerbeam wrote: > >> > >> > >> On 03/13/2017 06:55 AM, Philipp Zabel wrote: > >>> On Mon, 2017-03-13 at 13:27 +, Russell

Re: [PATCH 10/12] staging: ks7010: fix checkpatch memset warning

2017-03-14 Thread Tobin C. Harding
On Tue, Mar 14, 2017 at 12:27:07PM +0300, Dan Carpenter wrote: > This code is #ifdeffed out so you should just delete it instead of > fixing it. The TODO file specifically asks for ifdeffed code not to be removed unless one knows exactly what is going on. I hope to get to that level but am not the

  1   2   >