Re: [PATCH 04/29] drivers: base: add notifier for failed driver bind

2014-08-26 Thread Marek Szyprowski
Hello, On 2014-08-25 22:05, Greg Kroah-Hartman wrote: On Tue, Aug 05, 2014 at 12:47:32PM +0200, Marek Szyprowski wrote: This patch adds support for getting a notify for failed device driver bind, so all the items done in BUS_NOTIFY_BIND_DRIVER event can be cleaned if the driver fails to bind.

Re: [PATCH 04/29] drivers: base: add notifier for failed driver bind

2014-08-26 Thread Marek Szyprowski
Hello, On 2014-08-25 23:18, Joerg Roedel wrote: On Tue, Aug 05, 2014 at 12:47:32PM +0200, Marek Szyprowski wrote: + if (failed dev-bus) + blocking_notifier_call_chain(dev-bus-p-bus_notifier, +BUS_NOTIFY_DRVBIND_FAILED, dev); +

Re: [PATCH 04/29] drivers: base: add notifier for failed driver bind

2014-08-25 Thread Greg Kroah-Hartman
On Tue, Aug 05, 2014 at 12:47:32PM +0200, Marek Szyprowski wrote: This patch adds support for getting a notify for failed device driver bind, so all the items done in BUS_NOTIFY_BIND_DRIVER event can be cleaned if the driver fails to bind. But doesn't the bus know if the driver fails to bind,

Re: [PATCH 04/29] drivers: base: add notifier for failed driver bind

2014-08-25 Thread Joerg Roedel
On Tue, Aug 05, 2014 at 12:47:32PM +0200, Marek Szyprowski wrote: + if (failed dev-bus) + blocking_notifier_call_chain(dev-bus-p-bus_notifier, + BUS_NOTIFY_DRVBIND_FAILED, dev); + Why can't you just use the notifier for

Re: [PATCH 04/29] drivers: base: add notifier for failed driver bind

2014-08-21 Thread Laurent Pinchart
Hi Marek, Thank you for the patch. On Tuesday 05 August 2014 12:47:32 Marek Szyprowski wrote: This patch adds support for getting a notify for failed device driver bind, so all the items done in BUS_NOTIFY_BIND_DRIVER event can be cleaned if the driver fails to bind. Signed-off-by: Marek

[PATCH 04/29] drivers: base: add notifier for failed driver bind

2014-08-05 Thread Marek Szyprowski
This patch adds support for getting a notify for failed device driver bind, so all the items done in BUS_NOTIFY_BIND_DRIVER event can be cleaned if the driver fails to bind. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/base/dd.c | 10 +++---