Re: [PATCH] iio: core: Propagate error codes from OF layer to client drivers

2014-08-27 Thread Jonathan Cameron
On 27/08/14 16:59, Adam Thomson wrote: > On August 26, 2014 15:36, Adam Thomson wrote: > >> On August 26, 2014 14:48, Ivan T. Ivanov wrote: >> >>> On Tue, 2014-08-26 at 06:25 -0700, Guenter Roeck wrote: On 08/26/2014 12:51 AM, Ivan T. Ivanov wrote: > Hi, > [ ... ] > > Ano

RE: [PATCH] iio: core: Propagate error codes from OF layer to client drivers

2014-08-27 Thread Adam Thomson
On August 26, 2014 15:36, Adam Thomson wrote: > On August 26, 2014 14:48, Ivan T. Ivanov wrote: > > > On Tue, 2014-08-26 at 06:25 -0700, Guenter Roeck wrote: > > > On 08/26/2014 12:51 AM, Ivan T. Ivanov wrote: > > > > Hi, > > > > > > > [ ... ] > > > > > > > > Another, less intrusive, solution will

RE: [PATCH] iio: core: Propagate error codes from OF layer to client drivers

2014-08-26 Thread Opensource [Adam Thomson]
On August 26, 2014 14:48, Ivan T. Ivanov wrote: > On Tue, 2014-08-26 at 06:25 -0700, Guenter Roeck wrote: > > On 08/26/2014 12:51 AM, Ivan T. Ivanov wrote: > > > Hi, > > > > > [ ... ] > > > > > > Another, less intrusive, solution will be if we revert last patch and > > > explicitly > > > check fo

Re: [PATCH] iio: core: Propagate error codes from OF layer to client drivers

2014-08-26 Thread Ivan T. Ivanov
On Tue, 2014-08-26 at 06:25 -0700, Guenter Roeck wrote: > On 08/26/2014 12:51 AM, Ivan T. Ivanov wrote: > > Hi, > > > [ ... ] > > > > Another, less intrusive, solution will be if we revert last patch and > > explicitly > > check for EPROBE_DEFER on of_ by_name() return. How this sounds? > > > How

Re: [PATCH] iio: core: Propagate error codes from OF layer to client drivers

2014-08-26 Thread Guenter Roeck
On 08/26/2014 12:51 AM, Ivan T. Ivanov wrote: Hi, [ ... ] Another, less intrusive, solution will be if we revert last patch and explicitly check for EPROBE_DEFER on of_ by_name() return. How this sounds? How is that different to the just accepted patch ? Guenter -- To unsubscribe from thi

Re: [PATCH] iio: core: Propagate error codes from OF layer to client drivers

2014-08-26 Thread Ivan T. Ivanov
Hi, On Mon, 2014-08-25 at 09:54 -0700, Guenter Roeck wrote: > On Mon, Aug 25, 2014 at 05:10:31PM +0100, Jonathan Cameron wrote: > > On 25/08/14 13:57, Ivan T. Ivanov wrote: > > > Do not overwrite error codes returned from of_iio_channel_get(). > > > Error codes are used to distinguish between "io-

Re: [PATCH] iio: core: Propagate error codes from OF layer to client drivers

2014-08-25 Thread Guenter Roeck
On Mon, Aug 25, 2014 at 05:10:31PM +0100, Jonathan Cameron wrote: > On 25/08/14 13:57, Ivan T. Ivanov wrote: > > Do not overwrite error codes returned from of_iio_channel_get(). > > Error codes are used to distinguish between "io-channel-names" > > not present in DT bindings, property is optional,

Re: [PATCH] iio: core: Propagate error codes from OF layer to client drivers

2014-08-25 Thread Jonathan Cameron
On 25/08/14 13:57, Ivan T. Ivanov wrote: > Do not overwrite error codes returned from of_iio_channel_get(). > Error codes are used to distinguish between "io-channel-names" > not present in DT bindings, property is optional, and IIO channel > provider driver still not being loaded, defer probe. >

[PATCH] iio: core: Propagate error codes from OF layer to client drivers

2014-08-25 Thread Ivan T. Ivanov
Do not overwrite error codes returned from of_iio_channel_get(). Error codes are used to distinguish between "io-channel-names" not present in DT bindings, property is optional, and IIO channel provider driver still not being loaded, defer probe. Signed-off-by: Ivan T. Ivanov --- drivers/iio/ink