Re: [PATCH] staging: rtl8192e: rtllib_module: Fix memory leak in alloc_rtllib

2019-12-16 Thread Johan Hovold
On Sun, Dec 15, 2019 at 08:42:47PM -0600, Navid Emamdoost wrote: > Hi Johan, > > On Sun, Dec 15, 2019 at 7:23 AM Johan Hovold wrote: > > > > On Sat, Dec 14, 2019 at 05:05:58PM -0600, Navid Emamdoost wrote: > > > In the implementation of alloc_rtllib() the allocated

Re: [PATCH] staging: greybus: bootrom: fix uninitialized variables

2020-01-25 Thread Johan Hovold
On Sat, Jan 25, 2020 at 02:14:03PM +0530, Saurav Girepunje wrote: > fix uninitialized variables issue found using static code analysis tool Which tool is that? > (error) Uninitialized variable: offset > (error) Uninitialized variable: size > > Signed-off-by: Saurav Girepunje > --- > drivers/st

Re: [PATCH] staging: greybus: fix fw is NULL but dereferenced.

2020-01-26 Thread Johan Hovold
On Sun, Jan 26, 2020 at 02:01:30PM +0530, Saurav Girepunje wrote: > Fix the warning reported by cocci check. > > Changes: > > In queue_work fw dereference before it actually get assigned. > move queue_work before gb_bootrom_set_timeout. Nope. As I said yesterday, you need to verify the output of

Re: [PATCH] staging: greybus: Replace zero-length array with flexible-array member

2020-02-11 Thread Johan Hovold
On Tue, Feb 11, 2020 at 03:12:19PM -0600, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced i

Re: [PATCH] staging: greybus: Use scnprintf() for avoiding potential buffer overflow

2020-03-11 Thread Johan Hovold
On Wed, Mar 11, 2020 at 10:19:06AM +0100, Takashi Iwai wrote: > Since snprintf() returns the would-be-output size instead of the > actual output size, the succeeding calls may go beyond the given > buffer limit. Fix it by replacing with scnprintf(). > > Signed-off-by: Takashi Iwai > --- > drive

Re: [PATCH] staging: greybus: Use scnprintf() for avoiding potential buffer overflow

2020-03-11 Thread Johan Hovold
On Wed, Mar 11, 2020 at 11:02:33AM +0100, Takashi Iwai wrote: > On Wed, 11 Mar 2020 10:58:14 +0100, > Johan Hovold wrote: > > > > On Wed, Mar 11, 2020 at 10:19:06AM +0100, Takashi Iwai wrote: > > > Since snprintf() returns the would-be-output size instead of the &g

Re: [PATCH RESEND] staging: greybus: loopback_test: Use scnprintf() for avoiding potential buffer overflow

2020-03-11 Thread Johan Hovold
y: Takashi Iwai > --- > > Just corrected the subject prefix per request. Acked-by: Johan Hovold ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: greybus: Use scnprintf() for avoiding potential buffer overflow

2020-03-11 Thread Johan Hovold
On Wed, Mar 11, 2020 at 12:01:26PM +0100, Takashi Iwai wrote: > On Wed, 11 Mar 2020 11:09:03 +0100, > Johan Hovold wrote: > > > > On Wed, Mar 11, 2020 at 11:02:33AM +0100, Takashi Iwai wrote: > > > On Wed, 11 Mar 2020 10:58:14 +0100, > > > Johan Hovold wrote: &

Re: [PATCH RESEND] staging: greybus: loopback_test: Use scnprintf() for avoiding potential buffer overflow

2020-03-11 Thread Johan Hovold
On Wed, Mar 11, 2020 at 11:09:59AM +0100, Johan Hovold wrote: > On Wed, Mar 11, 2020 at 11:05:35AM +0100, Takashi Iwai wrote: > > Since snprintf() returns the would-be-output size instead of the > > actual output size, the succeeding calls may go beyond the given > > buf

Re: [PATCH] staging: greybus: Use scnprintf() for avoiding potential buffer overflow

2020-03-11 Thread Johan Hovold
On Wed, Mar 11, 2020 at 05:45:31PM +0100, Takashi Iwai wrote: > On Wed, 11 Mar 2020 17:40:02 +0100, Johan Hovold wrote: > > But isn't the first snprintf() in such a sequence as much a part of the > > problem as the following ones? > > > > If the first pos = snp

[PATCH 1/3] staging: greybus: loopback_test: fix poll-mask build breakage

2020-03-12 Thread Johan Hovold
A scripted conversion from userland POLL* to kernel EPOLL* constants mistakingly replaced the poll flags in the loopback_test tool, which therefore no longer builds. Fixes: a9a08845e9ac ("vfs: do bulk POLL* -> EPOLL* replacement") Cc: stable # 4.16 Signed-off-by: Johan Hovold

[PATCH 0/3] staging: greybus: loopback_test: fix build breakage

2020-03-12 Thread Johan Hovold
The loopback_test tool hasn't received much love lately. In fact, it has failed to build for the past two years after a scripted EPOLL* conversion. Newer GCC also started warning for potential string truncation of generated path names; the last two patches addresses that. Johan Johan Hovo

[PATCH 3/3] staging: greybus: loopback_test: fix potential path truncations

2020-03-12 Thread Johan Hovold
6b0658f68786 ("greybus: tools: Add tools directory to greybus repo and add loopback") Signed-off-by: Johan Hovold --- drivers/staging/greybus/tools/loopback_test.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/staging/greybus/tools

[PATCH 2/3] staging: greybus: loopback_test: fix potential path truncation

2020-03-12 Thread Johan Hovold
Fix this by making sure the buffer is large enough the concatenated strings. Fixes: 6b0658f68786 ("greybus: tools: Add tools directory to greybus repo and add loopback") Fixes: 9250c0ee2626 ("greybus: Loopback_test: use poll instead of inotify&

Re: [PATCH] staging: greybus: Use scnprintf() for avoiding potential buffer overflow

2020-03-12 Thread Johan Hovold
On Thu, Mar 12, 2020 at 05:51:11PM +0300, Dan Carpenter wrote: > On Wed, Mar 11, 2020 at 10:58:14AM +0100, Johan Hovold wrote: > > On Wed, Mar 11, 2020 at 10:19:06AM +0100, Takashi Iwai wrote: > > > Since snprintf() returns the would-be-output size instead of the > > &

Re: [greybus-dev] [PATCH] greybus: uart: fix uninitialized flow control variable

2020-05-14 Thread Johan Hovold
On Wed, Apr 29, 2020 at 03:00:44PM -0500, Alex Elder wrote: > On 4/29/20 2:00 PM, Arnd Bergmann wrote: > > gcc-10 points out an uninitialized variable use: > > Wow, nice, checking individual uninitialized fields within > the structure. > > The structure should really be zero-initialized anyway; i

[PATCH] staging: greybus: uart: replace driver line-coding struct

2020-05-14 Thread Johan Hovold
tally made the structures match again. Signed-off-by: Johan Hovold --- drivers/staging/greybus/uart.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/staging/greybus/uart.c b/drivers/staging/greybus/uart.c index 55c51143bb09..84de56800a21 100644 ---

[PATCH] staging: gdm724x: gdm_mux: fix use-after-free on module unload

2017-04-26 Thread Johan Hovold
Make sure to deregister the USB driver before releasing the tty driver to avoid use-after-free in the USB disconnect callback where the tty devices are deregistered. Fixes: 61e121047645 ("staging: gdm7240: adding LTE USB driver") Cc: stable # 3.12 Cc: Won Kang Signed-off-by: Jo

[PATCH 0/2] staging: greybus: fix arche driver compilation

2017-05-15 Thread Johan Hovold
breakage. Johan Johan Hovold (2): staging: greybus: arche: remove timesync remains staging: greybus: enable compile testing of arche driver drivers/staging/greybus/Kconfig | 10 +++ drivers/staging/greybus/Makefile | 2 +- drivers/staging/greybus/arche-apb-ctrl.c | 11

[PATCH 2/2] staging: greybus: enable compile testing of arche driver

2017-05-15 Thread Johan Hovold
Add Arche platform-driver config option and allow the driver to be compile tested also without the usb3613 driver. Signed-off-by: Johan Hovold --- drivers/staging/greybus/Kconfig | 10 ++ drivers/staging/greybus/Makefile | 2 +- drivers/staging/greybus/arche-platform.c

[PATCH 1/2] staging: greybus: arche: remove timesync remains

2017-05-15 Thread Johan Hovold
Remove the remaining timesync bits that were left in the arche platform driver and which prevented the driver from being compiled. Fixes: bdfb95c4baab ("staging: greybus: remove timesync protocol support") Signed-off-by: Johan Hovold --- drivers/staging/greybus/arche-apb-ct

Re: [PATCH 1/2] staging: greybus: arche: remove timesync remains

2017-05-15 Thread Johan Hovold
On Mon, May 15, 2017 at 04:17:55PM +0100, Bryan O'Donoghue wrote: > On 15/05/17 15:26, Johan Hovold wrote: > > Remove the remaining timesync bits that were left in the arche platform > > driver and which prevented the driver from being compiled. > > > > Fixes:

Re: [PATCH 2/2] staging: greybus: enable compile testing of arche driver

2017-05-16 Thread Johan Hovold
On Mon, May 15, 2017 at 09:49:51AM -0700, Randy Dunlap wrote: > On 05/15/17 07:26, Johan Hovold wrote: > > Add Arche platform-driver config option and allow the driver to be > > compile tested also without the usb3613 driver. > > > > Signed-off-by: Johan Hovold &

Re: [PATCH 1/2] staging: greybus: arche: remove timesync remains

2017-05-16 Thread Johan Hovold
On Mon, May 15, 2017 at 10:22:15PM +0100, Bryan O'Donoghue wrote: > On 15/05/17 17:10, Johan Hovold wrote: > > On Mon, May 15, 2017 at 04:17:55PM +0100, Bryan O'Donoghue wrote: > >> On 15/05/17 15:26, Johan Hovold wrote: > >>> Remove the remaining timesync b

[PATCH v2 0/2] staging: greybus: fix arche driver compilation

2017-05-16 Thread Johan Hovold
breakage. Johan Changes in v2 - fix usb3613 Kconfig dependency (Randy Dunlap) Johan Hovold (2): staging: greybus: arche: remove timesync remains staging: greybus: enable compile testing of arche driver drivers/staging/greybus/Kconfig | 10 +++ drivers/staging/greybus/Makefile

[PATCH v2 2/2] staging: greybus: enable compile testing of arche driver

2017-05-16 Thread Johan Hovold
Add Arche platform-driver config option and allow the driver to be compile tested also without the out-of-tree usb3613 driver. Signed-off-by: Johan Hovold --- drivers/staging/greybus/Kconfig | 10 ++ drivers/staging/greybus/Makefile | 2 +- drivers/staging/greybus

[PATCH v2 1/2] staging: greybus: arche: remove timesync remains

2017-05-16 Thread Johan Hovold
Remove the remaining timesync bits that were left in the arche platform driver and which prevented the driver from being compiled. Fixes: bdfb95c4baab ("staging: greybus: remove timesync protocol support") Signed-off-by: Johan Hovold --- drivers/staging/greybus/arche-apb-ct

Re: [PATCH] staging: greybus: mark PM functions as __maybe_unused

2017-05-18 Thread Johan Hovold
ybus: enable compile testing of arche > driver") > Signed-off-by: Arnd Bergmann Acked-by: Johan Hovold Thanks for fixing this. Johan ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: greybus: don't print on ENOMEM

2016-12-06 Thread Johan Hovold
module: remove redundant OOM message"). Fix that up and you can add my Acked-by: Johan Hovold Thanks, Johan ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2] staging: greybus: audio_module: remove redundant OOM message

2016-12-06 Thread Johan Hovold
On Tue, Dec 06, 2016 at 07:39:36PM +0530, Srikant Ritolia wrote: > All kmalloc-based functions print enough information on failure > > Signed-off-by: Srikant Ritolia Acked-by: Johan Hovold > --- > Changes in v2: > - Added driver name in the subject for better readabil

Re: [greybus-dev] [PATCH 1/2] staging: greybus: loopback: use gb_loopback_async_wait_all don't spin

2016-12-20 Thread Johan Hovold
On Tue, Dec 20, 2016 at 01:12:08AM +, Bryan O'Donoghue wrote: > Currently the greybus-loopback thread logic spins around waiting for > send_count == iteration_max which on real hardware doesn't make a > difference to us but in simulation is excruciatingly slow, anti-social and > bad manners. Us

Re: [PATCH] staging: greybus: Fix static array of pointers declaration as static const.

2016-12-22 Thread Johan Hovold
On Wed, Dec 21, 2016 at 04:38:26PM +0100, Emmanuil Chatzipetru wrote: > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - "WARNING: char * array declaration might be better as static const" > > Signed-off-by: Emmanuil Chatzipetru > --- > drivers/staging

Re: [PATCH] greybus: timesync: replace init_timer with setup_timer

2017-01-02 Thread Johan Hovold
e). > timesync_svc->ktime_timer.expires = jiffies + GB_TIMESYNC_KTIME_UPDATE; > - timesync_svc->ktime_timer.data = (unsigned long)timesync_svc; > add_timer(×ync_svc->ktime_timer); > done: > mutex_unlock(&gb_timesync_svc_list_mutex); When rese

Re: [PATCH] staging: greybus: arche-apb-ctrl: fix unused warnings on resume/suspend

2017-01-02 Thread Johan Hovold
trl_suspend(struct device *dev) > ^~ > > Adding __maybe_unused to the declaration of these functions removes the > warnings. > > Signed-off-by: Jérémy Lefaure Acked-by: Johan Hovold Thanks, Johan ___

Re: [PATCH] staging: greybus: add host device function pointer checks

2017-01-02 Thread Johan Hovold
arious other function pointers. Yeah, I allowed for some inconsistency here given that these callbacks are mandatory on our current platform. No harm in checking this way though (well, at least as long as we remember to set the pointers). > Signed-off-by: Jason Hrycay Acked-by: Johan Hovold

Re: [PATCH v2] staging: greybus: svc_watchdog: Fix spaces on a single definition statement

2017-01-02 Thread Johan Hovold
On Thu, Dec 22, 2016 at 04:22:02PM +0100, Emmanuil Chatzipetru wrote: > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - "CHECK: spaces preferred around that '*' (ctx:VxV) " > > Signed-off-by: Emmanuil Chatzipetru

Re: [PATCH v2] staging: greybus: svc_watchdog: replace printk() with pr_err()

2017-01-02 Thread Johan Hovold
o printk(KERN_ERR ." > > Signed-off-by: Emmanuil Chatzipetru > --- > v2: Add svc_watchdog to the subject line Thanks for the update. Acked-by: Johan Hovold > drivers/staging/greybus/svc_watchdog.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH v2 1/2] staging: greybus: loopback: use gb_loopback_async_wait_all don't spin

2017-01-02 Thread Johan Hovold
l and > bad manners. Use the existing gb_loopback_async_wait_all() function to gate > continuing when the send_count == iteration_max and go to sleep until > there's something worthwhile to-do. > > Signed-off-by: Bryan O'Donoghue Reviewed-by: Johan Hovold _

Re: [PATCH v2 2/2] staging: greybus: loopback_test: Fix race preventing test completion

2017-01-02 Thread Johan Hovold
Adding Axel on CC. On Thu, Dec 22, 2016 at 12:37:29AM +, Bryan O'Donoghue wrote: > commit 9250c0ee2626 ("greybus: Loopback_test: use poll instead of > inotify") changes the flow of determining when to break out of a loop > polling for loopback test completion. > > The clause is_complete() whi

Re: [PATCH v2 1/5] staging: greybus: operation: add asynchronous gb_operation_cancel

2017-01-02 Thread Johan Hovold
On Tue, Dec 27, 2016 at 01:01:35PM +, Bryan O'Donoghue wrote: > Later patches don't want or need to serialize the cancellation of an > operation. This patch adds gb_operation_cancel_async() as a simple subset > of the existing gb_operation_cancel() sans the synchronous wait on the > cancellatio

Re: [PATCH v2 1/5] staging: greybus: operation: add asynchronous gb_operation_cancel

2017-01-03 Thread Johan Hovold
On Tue, Jan 03, 2017 at 09:23:29AM +, Bryan O'Donoghue wrote: > On 02/01/17 16:16, Johan Hovold wrote: > > On Tue, Dec 27, 2016 at 01:01:35PM +, Bryan O'Donoghue wrote: > >> Later patches don't want or need to serialize the cancellation of a

Re: [PATCH 01/14] staging: greybus: arche-apb-ctrl: Remove multiple blank lines.

2017-01-03 Thread Johan Hovold
On Tue, Jan 03, 2017 at 03:33:03PM +0100, chatzi.eman...@gmail.com wrote: > From: Emmanuil Chatzipetru > > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - CHECK: Please don't use multiple blank lines > > Signed-off-by: Emmanuil Chatzipetru > --- > d

Re: [PATCH 02/14] staging: greybus: arche-apb-ctrl: Fix open parenthesis alignment.

2017-01-03 Thread Johan Hovold
On Tue, Jan 03, 2017 at 03:33:04PM +0100, chatzi.eman...@gmail.com wrote: > From: Emmanuil Chatzipetru > > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - CHECK: Alignment should match open parenthesis This is not even a warning (hint: "CHECK") and no

Re: [PATCH 03/14] staging: greybus: arche-platform: Fix typo in the comments.

2017-01-03 Thread Johan Hovold
On Tue, Jan 03, 2017 at 03:33:05PM +0100, chatzi.eman...@gmail.com wrote: > From: Emmanuil Chatzipetru > > This warning is caught by checkpatch.pl: > - CHECK: 'begining' may be misspelled - perhaps 'beginning'? > > Signed-off-by: Emmanui

Re: [PATCH 06/14] staging: greybus: bootrom: Fix line over 80 characters warning.

2017-01-03 Thread Johan Hovold
hatzipetru Acked-by: Johan Hovold ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 08/14] staging: greybus: camera: Fix NULL comparison to preferred style.

2017-01-03 Thread Johan Hovold
On Tue, Jan 03, 2017 at 03:33:10PM +0100, chatzi.eman...@gmail.com wrote: > From: Emmanuil Chatzipetru > > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - CHECK: Comparison to NULL could be written "!token" Again, not a warning, and something that is

Re: [PATCH 10/14] staging: greybus: connection: Remove multiple blank lines

2017-01-03 Thread Johan Hovold
On Tue, Jan 03, 2017 at 03:33:12PM +0100, chatzi.eman...@gmail.com wrote: > From: Emmanuil Chatzipetru > > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - CHECK: Please don't use multiple blank lines Again not a warning, and perfectly valid. Please dr

Re: [PATCH 14/14] staging: greybus: core: Fix NULL comparison to preferred style.

2017-01-03 Thread Johan Hovold
On Tue, Jan 03, 2017 at 03:33:16PM +0100, chatzi.eman...@gmail.com wrote: > From: Emmanuil Chatzipetru > > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - CHECK: Comparison to NULL could be written "!id" Current code is fine. Johan __

Re: [PATCH] staging: greybus: add host device function pointer checks

2017-01-04 Thread Johan Hovold
On Tue, Jan 03, 2017 at 01:46:09PM -0600, Jason Hrycay wrote: > On Mon, Jan 02, 2017 at 02:54:37PM +0100, Johan Hovold wrote: > > On Tue, Dec 20, 2016 at 02:49:27PM -0600, Jason Hrycay wrote: > > > Add sanity checks for cport_quiesce and cport_clear before invoking the > &

Re: [PATCH 1/2] staging: greybus: audio_topology: Fix spaces between operator and string

2017-01-04 Thread Johan Hovold
On Wed, Jan 04, 2017 at 03:07:31PM +0100, Emmanuil Chatzipetru wrote: > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - "CHECK: spaces preferred around that '*' (ctx:VxV) " > > Signed-off-by: Emmanuil C

Re: [PATCH 2/2] staging: greybus: log: Fix line over 80 characters.

2017-01-04 Thread Johan Hovold
On Wed, Jan 04, 2017 at 03:07:32PM +0100, Emmanuil Chatzipetru wrote: > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - CHECK: WARNING: line over 80 characters > > Signed-off-by: Emmanuil Chatzipetru > --- > drivers/staging/greybus/log.c | 2 +- > 1 f

Re: [PATCH v2] staging: greybus: log: Fix line over 80 characters.

2017-01-04 Thread Johan Hovold
On Wed, Jan 04, 2017 at 04:14:45PM +0100, Emmanuil Chatzipetru wrote: > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - CHECK: WARNING: line over 80 characters This commit message should be expanded to explain how this is done (e.g. "by dropping a redun

Re: [PATCH v3 1/2] staging: greybus: audio_topology: Fix spaces between operator and string

2017-01-04 Thread Johan Hovold
On Wed, Jan 04, 2017 at 05:08:18PM +0100, Emmanuil Chatzipetru wrote: > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - "CHECK: spaces preferred around that '*' (ctx:VxV) " > > Signed-off-by: Emmanuil C

Re: [PATCH v3 2/2] staging: greybus: log: Fix line over 80 characters.

2017-01-04 Thread Johan Hovold
specifier > in dev_err(); to "%zu" instead of "%d", in order to silence the warnings of > the > compiler. > > Also, while at it, drop the redundant cast in the comparison as well to > maintain > consistency. > > Signed-off-by: Emmanuil Chatzipetru

Re: [PATCH] staging: greybus: remove timesync protocol support

2017-01-06 Thread Johan Hovold
from. > > Signed-off-by: Greg Kroah-Hartman Reviewed-by: Johan Hovold > Note, there are some remants in the arche-platform driver, but that's > probably next on the chopping block, so I didn't unwind it from there as > it's a bit more complex, and it never gets

Re: [PATCH] MAINTAINERS: add greybus subsystem mailing list

2017-01-06 Thread Johan Hovold
On Fri, Jan 06, 2017 at 08:20:03AM +0100, Greg Kroah-Hartman wrote: > From: Greg Kroah-Hartman > > The Greybus driver subsystem has a mailing list, so list it in the > MAINTAINERS file so that people know to send patches there as well. > > Signed-off-by: Greg Kroah-Hartman

Re: [PATCH 1/2] staging: greybus: loopback: fix gb_pm_runtime_get_sync error handling

2017-01-09 Thread Johan Hovold
On Sun, Jan 08, 2017 at 03:27:18PM +, Bryan O'Donoghue wrote: > commit e854ff58ed70 ("greybus: loopback: add runtime pm support") > introduces pm runtime support to the loopback code. If a > gb_pm_runtime_get_sync() fails, currently we immediately return from the > loopback thread. > > Alexand

Re: [PATCH 2/2] staging: greybus: loopback: fix oops on rmmod gb_loopback

2017-01-09 Thread Johan Hovold
On Sun, Jan 08, 2017 at 03:27:19PM +, Bryan O'Donoghue wrote: > Doing an rmmod gb_loopback will cause an oops with the following backtrace. > > Call Trace: > debugfs_remove+0xaf/0x180 > gb_loopback_disconnect+0x36/0x160 [gb_loopback] > greybus_remove+0x87/0x1a0 [greybus] > device_release_d

Re: [PATCH 1/2] staging: greybus: loopback: fix gb_pm_runtime_get_sync error handling

2017-01-09 Thread Johan Hovold
On Mon, Jan 09, 2017 at 11:29:50AM +, Bryan O'Donoghue wrote: > On January 9, 2017 11:19:09 AM GMT+00:00, Johan Hovold > wrote: > >On Sun, Jan 08, 2017 at 03:27:18PM +, Bryan O'Donoghue wrote: > >> commit e854ff58ed70 ("greybus: loopback: add run

Re: [PATCH v2] Staging: greybus: style fix, permissions as octal

2017-01-09 Thread Johan Hovold
On Fri, Jan 06, 2017 at 08:43:57PM +1300, Derek Robson wrote: > Changed permissions to be in octal style. > Found by checkpatch. > > Signed-off-by: Derek Robson > --- > > This version of patch also make the file type part of the mask with the > permissions, as per recommendation from Greg K-H >

Re: [PATCH] greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-10 Thread Johan Hovold
On Tue, Jan 10, 2017 at 05:21:24PM +0100, Roman Sommer wrote: > From: Christian Bewermeyer > > Note that this patch does not fix all checkpatch warnings for > gpio.c Fair enough, but you are fixing all of these new "unsigned int" warnings in that driver, right? How about fixing the sole remaini

Re: [PATCH] staging: greybus: loopback_test: fix checkpatch bad function definition error

2017-01-11 Thread Johan Hovold
On Wed, Jan 11, 2017 at 01:29:36AM +, Abdul Rauf wrote: > Fix the following Errors: > Bad function definition - void abort() should probably be void abort(void) > > Signed-off-by: Abdul Rauf Acked-by: Johan Hovold ___ devel mai

Re: [PATCH v2] greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-11 Thread Johan Hovold
On Wed, Jan 11, 2017 at 02:48:38PM +0100, Roman Sommer wrote: > Note that this patch does not fix all checkpatch warnings for the > affected files. > > Signed-off-by: Christian Bewermeyer > Signed-off-by: Roman Sommer You forgot to fix the Subject prefix ("staging: greybus: "). Care to fix tha

Re: [PATCH v3] staging: greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-11 Thread Johan Hovold
your subject since that's not a (greybus) component. You could have rephrased the summary as "fix checkpatch unsigned warnings" or similar instead. Reviewed-by: Johan Hovold Thanks, Johan ___ devel mailing list de...@linuxdriverproject.org

Re: [PATCH v3] staging: greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-12 Thread Johan Hovold
On Thu, Jan 12, 2017 at 10:05:10AM +0300, Dan Carpenter wrote: > On Wed, Jan 11, 2017 at 04:00:35PM +0100, Roman Sommer wrote: > > Note that this patch does not fix all checkpatch warnings for the > > affected files. > > > > A lot of ways that display git commits put the changelog and the summary

Re: [PATCH RESEND] Staging: greybus: style fix, permissions as octal

2017-01-12 Thread Johan Hovold
On Thu, Jan 12, 2017 at 05:59:40PM +1300, Derek Robson wrote: > Changed permissions to be in octal style. > Found by checkpatch. > > Signed-off-by: Derek Robson > --- Acked-by: Johan Hovold Next time, please include a module prefix in your Subject (i.e. "staging: greybus:

Re: [PATCH] staging: greybus: fix checkpatch unsigned warnings

2017-01-16 Thread Johan Hovold
r > Signed-off-by: Roman Sommer Reviewed-by: Johan Hovold Thanks, Johan ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [greybus-dev] [PATCH] staging: greybus: loopback_test: use octal permissions instead of symbolic

2017-01-19 Thread Johan Hovold
On Wed, Jan 18, 2017 at 06:21:23PM -0800, Igor Pylypiv wrote: > checkpatch.pl warning: > Symbolic permissions are not preferred. Consider using octal permissions. > > Signed-off-by: Igor Pylypiv Reviewed-by: Johan Hovold ___ devel mai

Re: [PATCH v3 0/4] drivers/staging/greybus: add async operations

2017-01-19 Thread Johan Hovold
On Thu, Jan 19, 2017 at 10:07:42AM +0100, Greg Kroah-Hartman wrote: > On Wed, Jan 04, 2017 at 12:11:17AM +, Bryan O'Donoghue wrote: > > V3: > > Picard: "Let's make sure history never forgets the name ... Enterprise." > > Drop gb_operation_cancel_async. The sync version works just as well - Joha

Re: [PATCH v3 1/4] staging: greybus: operation: add generic asynchronous timeout operation support

2017-01-23 Thread Johan Hovold
On Wed, Jan 04, 2017 at 12:11:18AM +, Bryan O'Donoghue wrote: > This patch adds a generic mechanism for handling timeouts of asynchronous > operations to operation.c. After doing a gb_operation_request_send() it > schedules a delayed worker. When the delayed worker's timer expires the > worker

Re: [PATCH v3 3/4] staging: greybus: loopback: convert loopback to use generic async operations

2017-01-23 Thread Johan Hovold
On Wed, Jan 04, 2017 at 12:11:20AM +, Bryan O'Donoghue wrote: > Loopback has its own internal method for tracking and timing out > asynchronous operations however previous patches make it possible to use > functionality provided by operation.c to do this instead. Using the code in > operation.c

Re: [PATCH v3 4/4] staging: greybus: loopback: convert to use msecs internally

2017-01-23 Thread Johan Hovold
> microseconds-to-milliseconds. The new minimum timeout will be one > millisecond as opposed to one jiffy. You also reduced the maximum in a similar way (1 ms <= 1 jiffie). You could mention that here as well. > Signed-off-by: Bryan O'Donoghue Reviewed-by: Johan Hovold &

[PATCH] staging: greybus: operation: add generic timeout support

2017-01-23 Thread Johan Hovold
Add a struct timer_list to struct gb_operation and use that to implement generic operation timeouts. This simplifies the synchronous operation handling somewhat while also providing a generic timeout mechanism that drivers can use for asynchronous operations. Signed-off-by: Johan Hovold

Re: [PATCH v3 2/4] staging: greybus: operation: add private data with get/set accessors

2017-01-23 Thread Johan Hovold
on.h and get/set s/operation.h/struct gb_operation/ > methods to access that pointer. > > Signed-off-by: Bryan O'Donoghue Reviewed-by: Johan Hovold > --- > drivers/staging/greybus/operation.h | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/drivers/

Re: [PATCH] staging: greybus: operation: add generic timeout support

2017-01-23 Thread Johan Hovold
On Mon, Jan 23, 2017 at 02:32:48PM +, Bryan O'Donoghue wrote: > On 23/01/17 12:04, Johan Hovold wrote: > > > +static void gb_operation_timeout(unsigned long arg) > > +{ > > + struct gb_operation *operation = (void *)arg; > > + > > + if (gb_o

Re: [PATCH] staging: greybus: timesync: validate platform state callback

2017-01-23 Thread Johan Hovold
On Mon, Jan 23, 2017 at 02:22:44PM +, Rui Miguel Silva wrote: > When tearingdown timesync, and not in arche platform, the state platform > callback is not initialized. That will trigger the following NULL > dereferencing. > CallTrace: > > ? gb_timesync_platform_unlock_bus+0x11/0x20 [greybus]

Re: [PATCH v2] staging: greybus: timesync: validate platform state callback

2017-01-23 Thread Johan Hovold
_work+0x3b0/0x3b0 > kthread+0xc4/0xe0 > ? kthread_park+0xb0/0xb0 > ret_from_fork+0x22/0x30 > > So, fix that by adding checks before use the callback. > > Fixes: 970dc85bd95d ("greybus: timesync: Add timesync core driver") > Cc: # 4.9.x > Signed-off-by: Rui Miguel S

Re: [PATCH] staging: greybus: operation: add generic timeout support

2017-01-23 Thread Johan Hovold
On Mon, Jan 23, 2017 at 03:39:43PM +, Bryan O'Donoghue wrote: > On 23/01/17 15:13, Johan Hovold wrote: > > On Mon, Jan 23, 2017 at 02:32:48PM +, Bryan O'Donoghue wrote: > >> On 23/01/17 12:04, Johan Hovold wrote: > >> > >>> +s

Re: [PATCH] staging: greybus: operation: add generic timeout support

2017-01-24 Thread Johan Hovold
On Mon, Jan 23, 2017 at 05:50:23PM +0100, Johan Hovold wrote: > On Mon, Jan 23, 2017 at 03:39:43PM +, Bryan O'Donoghue wrote: > > Have you run this through loopback without any # of in-flight operations > > constrained ? > > No, not yet as that would require also yo

[PATCH] staging: greybus: uart: fix TIOCGSERIAL flags

2017-01-25 Thread Johan Hovold
This driver does not have a low-latency mode and should not report anything else. Also drop the skip-test flag which isn't used either. Signed-off-by: Johan Hovold --- drivers/staging/greybus/uart.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/greybus/uart.c b/dr

[PATCH] staging: greybus: loopback: fix broken udelay

2017-01-26 Thread Johan Hovold
oseconds") Signed-off-by: Johan Hovold --- drivers/staging/greybus/loopback.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index 6c2a41c638c3..a8329daf1e57 100644 --- a/drivers/st

Re: [PATCH] greybus: Fix coding stye error

2017-01-27 Thread Johan Hovold
On Fri, Jan 27, 2017 at 03:29:30PM +0300, Dan Carpenter wrote: > On Fri, Jan 27, 2017 at 11:11:21AM +0100, mrossibel...@gmail.com wrote: > > From: Maxime Rossi Bellom > > > > Split line before funtion argument. > > > > Error was reported by checkpatch.pl as > > WARNING: line over 80 characters >

Re: [PATCH] greybus: Fix coding stye error

2017-01-27 Thread Johan Hovold
On Fri, Jan 27, 2017 at 03:47:21PM +0300, Dan Carpenter wrote: > The name sucks is what I'm saying. Please fix it eventually. I disagree. The name uses a common prefix that reflects the object it is working on. This should not be changed. As it is currently named, the function is also self-docume

Re: [PATCH] greybus: Fix coding stye error

2017-01-27 Thread Johan Hovold
On Fri, Jan 27, 2017 at 04:24:47PM +0300, Dan Carpenter wrote: > On Fri, Jan 27, 2017 at 02:08:06PM +0100, Johan Hovold wrote: > > On Fri, Jan 27, 2017 at 03:47:21PM +0300, Dan Carpenter wrote: > > > The name sucks is what I'm saying. Please fix it eventually. > > &g

Re: [PATCH] staging: greybus: operation: add generic timeout support

2017-02-07 Thread Johan Hovold
On Mon, Jan 23, 2017 at 01:04:14PM +0100, Johan Hovold wrote: > Add a struct timer_list to struct gb_operation and use that to implement > generic operation timeouts. > > This simplifies the synchronous operation handling somewhat while also > providing a generic timeout mechani

Re: [PATCH] staging: greybus: operation: add generic timeout support

2017-02-08 Thread Johan Hovold
On Tue, Feb 07, 2017 at 02:31:04PM +, Bryan O'Donoghue wrote: > On 07/02/17 14:19, Johan Hovold wrote: > > On Mon, Jan 23, 2017 at 01:04:14PM +0100, Johan Hovold wrote: > >> Add a struct timer_list to struct gb_operation and use that to implement > >> generic op

Re: [PATCH] staging: greybus: operation: add generic timeout support

2017-02-08 Thread Johan Hovold
On Wed, Feb 08, 2017 at 11:43:57AM +, Bryan O'Donoghue wrote: > On 08/02/17 09:43, Johan Hovold wrote: > > On Tue, Feb 07, 2017 at 02:31:04PM +, Bryan O'Donoghue wrote: > >> On 07/02/17 14:19, Johan Hovold wrote: > >>> On Mon, Jan 23, 2017

Re: [PATCH] staging: greybus: operation: add generic timeout support

2017-02-08 Thread Johan Hovold
On Wed, Feb 08, 2017 at 02:05:15PM +, Bryan O'Donoghue wrote: > On 08/02/17 11:55, Johan Hovold wrote: > > On Wed, Feb 08, 2017 at 11:43:57AM +, Bryan O'Donoghue wrote: > >> On 08/02/17 09:43, Johan Hovold wrote: > >>> On Tue, Feb 07, 2017 at

Re: [PATCH] staging: greybus: uart: fix uninitialized newline.flow_control

2017-02-09 Thread Johan Hovold
On Thu, Feb 09, 2017 at 01:01:18PM +, Colin King wrote: > From: Colin Ian King > > Currently newline.flow_control is uninitialized, so it can contain > any garbage from the stack. I believe it should be initialized with > GB_SERIAL_AUTO_RTSCTS_EN enabled if the termios c_cflag is CRTSCTS > e

Re: [PATCH] staging: greybus: arpc.h: remove duplicate line.

2017-02-13 Thread Johan Hovold
On Fri, Feb 10, 2017 at 11:16:37PM -0500, Nathan Howard wrote: > Fix checkpatch.pl issue of the form: > "CHECK: Please don't use multiple blank lines". Don't take checkpatch too seriously. Using double blank lines as a separator is perfectly fine. Thanks, Johan ___

Re: [PATCH v4] staging: greybus: Fix a commit coding style issue.

2016-10-03 Thread Johan Hovold
On Mon, Oct 03, 2016 at 04:21:09PM +0530, Sidhant Gupta wrote: > Fixes a comment coding style warning by adding 2 blank lines. Issue > found by checkpatch. > > Signed-off-by: Sidhant Gupta Acked-by: Johan Hovold Thanks, Johan ___ devel

Re: [PATCH] staging: greybus: fix block comment

2016-10-04 Thread Johan Hovold
; + * and then enter FW flashing state > + */ > poweroff_seq(pdev); > ret = fw_flashing_seq(pdev); > } else { Patch looks fine, but note that someone just sent a patch for this second chunk the other day. Acked-by: Joha

Re: [patch] greybus: fix a leak on error in gb_module_create()

2016-10-15 Thread Johan Hovold
On Fri, Oct 14, 2016 at 10:18:21PM +0300, Dan Carpenter wrote: > We should release ->interfaces[0] as well. Indeed. Thanks for the fix. > Fixes: b15d97d77017 ("greybus: core: add module abstraction") > Signed-off-by: Dan Carpenter Acked-by

Re: [PATCH] Staging: greybus: uart: constify tty_port_operations structure

2016-10-15 Thread Johan Hovold
5682142016 drivers/staging/greybus/uart.o > > File size after: >text data bss dec hex filename >7710 448 5682142016 drivers/staging/greybus/uart.o > > Signed-off-by: Bhumika Goyal Acked-by: Johan Hovold > --- >

Re: [PATCH v2] RFC: staging: greybus: shape up greybus GPIO

2016-10-15 Thread Johan Hovold
On Mon, Oct 10, 2016 at 10:39:32AM +0200, Linus Walleij wrote: > Greybus GPIO seems to reimplement the already existing generic > gpiolib irqchip. Also use gpiochip_get_data(). Also use > devm_gpiochip_add_data(). > > Cc: Viresh Kumar > Cc: Axel Haslam > Cc: Johan Hovold

Re: [PATCH 1/2] Staging: greybus: gpio: Use gbphy_dev->dev instead of bundle->dev

2016-10-15 Thread Johan Hovold
On Wed, Oct 12, 2016 at 08:02:21AM +0530, Viresh Kumar wrote: > Some of the print messages are using the incorrect device pointer, fix > them. > > Signed-off-by: Viresh Kumar Acked-by: Johan Hovold ___ devel mailing list de...@linuxdrive

Re: [PATCH 2/2] Staging: greybus: uart: Use gbphy_dev->dev instead of bundle->dev

2016-10-15 Thread Johan Hovold
On Wed, Oct 12, 2016 at 08:02:22AM +0530, Viresh Kumar wrote: > Some of the print messages are using the incorrect device pointer, fix > them. > > Signed-off-by: Viresh Kumar Acked-by: Johan Hovold ___ devel mailing list de...@linuxdrive

Re: [PATCH] staging: greybus: es2: Use kmemdup instead of kmalloc and memcpy

2016-10-17 Thread Johan Hovold
[+CC: staging list ] On Sun, Oct 16, 2016 at 02:19:48PM +0530, sayli karnik wrote: > This patch replaces kmalloc and memcpy with kmemdup for duplication of > memory. > > Signed-off-by: sayli karnik Acked-by: Johan Hovold > --- > drivers/staging/greybus/es2.c | 3 +-- &g

Re: [PATCH] staging: greybus: audio: Rename cport with intf_id

2016-10-17 Thread Johan Hovold
On Sun, Oct 16, 2016 at 03:29:14PM +0530, Pankaj Bharadiya wrote: > gb_audio_manager_module_descriptor's cport field is actually used to > manage and pass interface id to user space. > > Thus rename gb_audio_manager_module_descriptor's 'cport' field and > few other things to avoid confusion. Plea

Re: [PATCH -next] greybus: arche-platform: Add missing of_node_put() in arche_platform_change_state()

2016-10-17 Thread Johan Hovold
inelle semantic patch. > > Signed-off-by: Wei Yongjun This code is going away eventually, but still. Acked-by: Johan Hovold Thanks, Johan ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

<    1   2   3   >