Re: [PATCH v2 21/21] memblock: drop memblock_alloc_*_nopanic() variants

2019-01-30 Thread Petr Mladek
t; include/linux/memblock.h | 35 --- > kernel/dma/swiotlb.c | 2 +- > kernel/printk/printk.c | 9 +---- For printk: Reviewed-by: Petr Mladek Acked-by: Petr Mladek Best Regards, Petr > mm/memblock.c | 35 --

Re: [PATCH 21/21] memblock: drop memblock_alloc_*_nopanic() variants

2019-01-17 Thread Petr Mladek
On Wed 2019-01-16 15:44:21, Mike Rapoport wrote: > As all the memblock allocation functions return NULL in case of error > rather than panic(), the duplicates with _nopanic suffix can be removed. [...] > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > index c4f0a41..ae65221 100644

Re: [PATCH] usb: host: xhci: add mutex for non-thread-safe data

2015-04-29 Thread Petr Mladek
On Wed 2015-04-29 09:18:50, Chris Bainbridge wrote: > Regression in commit 638139eb95d2d241781330a321e88c8dafe46078 > Author: Petr Mladek > Date: Fri Sep 19 17:32:24 2014 +0200 > > usb: hub: allow to process more usb hub events in parallel Anyway, I would suggest to revert

Re: [PATCH -next 1/2] seq_puts: Convert to return void and convert uses too.

2014-11-11 Thread Petr Mladek
On Mon 2014-11-10 10:58:56, Joe Perches wrote: > diff --git a/ipc/util.c b/ipc/util.c > index 106bed0..4f726b7 100644 > --- a/ipc/util.c > +++ b/ipc/util.c > @@ -837,8 +837,10 @@ static int sysvipc_proc_show(struct seq_file *s, void > *it) > struct ipc_proc_iter *iter = s->private; > s

[PATCH v3 0/6] usb: hub: convert khubd into workqueue

2014-09-19 Thread Petr Mladek
Linus' tree or linux-next. Petr Mladek (6): usb: hub: keep hub->dev reference all the time when struct usb_hub lives usb: hub: rename hub_events() to hub_event() and handle only one event there usb: hub: convert khubd into workqueue usb: hub: rename usb_kick_khubd() to u

[PATCH v3 3/6] usb: hub: convert khubd into workqueue

2014-09-19 Thread Petr Mladek
h. This patch already is complex enough. Thanks a lot Alan Stern for code review, many useful tips and guidance. Also thanks to Tejun Heo for hints how to allocate the workqueue. Signed-off-by: Petr Mladek --- drivers/usb/core/hub.c | 143 + driv

[PATCH v3 6/6] usb: hub: allow to process more usb hub events in parallel

2014-09-19 Thread Petr Mladek
It seems that only choose_devnum() was not ready to process more hub events at the same time. All should be fine if we take bus->usb_address0_mutex there. It will make sure that more devnums will not be chosen for the given bus and the related devices at the same time. Signed-off-by: Petr Mla

[PATCH v3 5/6] usb: hub: rename khubd to hub_wq in documentation and comments

2014-09-19 Thread Petr Mladek
anges can be found in the following files: Documentation/usb/hotplug.txt drivers/net/usb/usbnet.c drivers/usb/core/hcd.c drivers/usb/host/ohci-hcd.c drivers/usb/host/xhci.c Signed-off-by: Petr Mladek --- Documentation/DocBook/usb.tmpl

[PATCH v3 4/6] usb: hub: rename usb_kick_khubd() to usb_kick_hub_wq()

2014-09-19 Thread Petr Mladek
USB hub started to use a workqueue instead of kthread. Let's make it clear from the function names. Signed-off-by: Petr Mladek --- drivers/usb/core/hcd.c | 4 ++-- drivers/usb/core/hub.c | 2 +- drivers/usb/core/usb.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --

[PATCH v3 1/6] usb: hub: keep hub->dev reference all the time when struct usb_hub lives

2014-09-19 Thread Petr Mladek
ased. By other words, we could handle it the same way as the reference for hub->intfdev. The motivation is that it will make the life easier when switching from khubd kthread to a workqueue. Suggested-by: Alan Stern Signed-off-by: Petr Mladek --- drivers/usb/core/hub.c | 6 +++--- 1 file

[PATCH v3 2/6] usb: hub: rename hub_events() to hub_event() and handle only one event there

2014-09-19 Thread Petr Mladek
hub_event(), removes the while cycle, and renames the goto targets from loop* to out*. When touching the code, it fixes also formatting of dev_err() and dev_dbg() calls to make checkpatch.pl happy :-) Signed-off-by: Petr Mladek --- drivers/usb/core/hub.c | 236

[PATCH v2 2/4] usb: hub: remove obsolete while cycle in hub_event()

2014-09-17 Thread Petr Mladek
of dev_err() and dev_dbg() calls to make checkpatch.pl happy :-) Signed-off-by: Petr Mladek --- drivers/usb/core/hub.c | 199 - 1 file changed, 96 insertions(+), 103 deletions(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index

[PATCH v2 4/4] usb: hub: rename khubd to hub_wq in documentation and comments

2014-09-17 Thread Petr Mladek
anges can be found in the following files: Documentation/usb/hotplug.txt drivers/net/usb/usbnet.c drivers/usb/core/hcd.c drivers/usb/host/ohci-hcd.c drivers/usb/host/xhci.c Signed-off-by: Petr Mladek --- Documentation/DocBook/usb.tmpl

[PATCH v2 3/4] usb: hub: rename usb_kick_khubd() to usb_kick_hub_wq()

2014-09-17 Thread Petr Mladek
USB hub started to use a workqueue instead of kthread. Let's make it clear from the function names. Signed-off-by: Petr Mladek --- drivers/usb/core/hcd.c | 4 ++-- drivers/usb/core/hub.c | 2 +- drivers/usb/core/usb.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --

[PATCH v2 1/4] usb: hub: convert khubd into workqueue

2014-09-17 Thread Petr Mladek
ts() when needed. Note that the source file is still full of the obsolete "khubd" strings. Let's remove them in a follow up patch. This patch already is complex enough. Thanks a lot Alan Stern for very useful tips and guidance. Signed-off-by: Petr Mladek --- driv

[PATCH v2 0/4] usb: hub: convert khubd into workqueue

2014-09-17 Thread Petr Mladek
ore the thread is scheduled. This is why I kept the order of patches as is to do not break bisection. Thanks a lot Alan Stern for hint and guidance. The patches can be applied either against Linus' tree or linux-next. Petr Mladek (4): usb: hub: convert khubd into workqueue usb: hub

Re: [PATCH 1/4] usb: hub: convert khubd into workqueue

2014-09-12 Thread Petr Mladek
On Fri 2014-09-12 10:16:21, Alan Stern wrote: > On Fri, 12 Sep 2014, Petr Mladek wrote: > > > There is no need to have separate kthread for handling USB hub events. > > It is more elegant to use the workqueue framework. > > > > The workqueue is allocated as unbound

Re: [PATCH] usb: hub: wrong order of putting interfaces when processing hub events

2014-09-12 Thread Petr Mladek
On Fri 2014-09-12 10:06:03, Alan Stern wrote: > On Fri, 12 Sep 2014, Petr Mladek wrote: > > > usb_autopm_put_interface() must be called only when > > usb_autopm_get_interface() > > succeeded before. There was wrong ordering of the goto targets. > > No, you are wro

[PATCH 4/4] usb: hub: rename khubd to hub_wq in documentation and comments

2014-09-12 Thread Petr Mladek
anges can be found in the following files: Documentation/usb/hotplug.txt drivers/net/usb/usbnet.c drivers/usb/core/hcd.c drivers/usb/host/ohci-hcd.c drivers/usb/host/xhci.c Signed-off-by: Petr Mladek --- Documentation/DocBook/usb.tmpl

[PATCH 3/4] usb: hub: rename *kick_khubd to *kick_hub_wq

2014-09-12 Thread Petr Mladek
USB hub started to use a workqueue instead of kthread. Let's make it clear from the function names. Signed-off-by: Petr Mladek --- drivers/usb/core/hcd.c | 4 ++-- drivers/usb/core/hub.c | 16 drivers/usb/core/usb.h | 2 +- 3 files changed, 11 insertions(+), 11 dele

[PATCH 2/4] usb: hub: remove obsolete while cycle in hub_event()

2014-09-12 Thread Petr Mladek
from "loop*" to "out*". When touching the code, it fixes also formatting of dev_err() and dev_dbg() calls to make checkpatch.pl happy :-) Signed-off-by: Petr Mladek --- drivers/usb/core/hub.c | 199 +++-- 1 file changed, 95 insertio

[PATCH 1/4] usb: hub: convert khubd into workqueue

2014-09-12 Thread Petr Mladek
straightforward. Note that the source file is still full of the obsolete "khubd" strings. Let's remove them in a follow up patch to keep this one "simple". Signed-off-by: Petr Mladek --- drivers/usb/core/hub.c | 114 + drivers/usb/cor

[PATCH 0/4] usb: hub: convert khubd into workqueue

2014-09-12 Thread Petr Mladek
when processing" that was sent few minutes before. It can be applied also on Linus' tree but you need to apply the commit c605f3cdff53a743f6d875 ("usb: hub: take hub->hdev reference when processing from eventlist") first. Petr Mladek (4): usb: hub: convert khubd into workq

[PATCH] usb: hub: wrong order of putting interfaces when processing hub events

2014-09-12 Thread Petr Mladek
usb_autopm_put_interface() must be called only when usb_autopm_get_interface() succeeded before. There was wrong ordering of the goto targets. The funny thing is that the names of the goto targets and the related comments were correct. Signed-off-by: Petr Mladek --- drivers/usb/core/hub.c | 4