All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/1] iio:pressure:ms5611: fix and enhancements
@ 2016-03-09 11:34 ` Gregor Boirie
  0 siblings, 0 replies; 10+ messages in thread
From: Gregor Boirie @ 2016-03-09 11:34 UTC (permalink / raw)
  To: linux-iio-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, Tomasz Duszynski, Daniel Baluta,
	Krzysztof Kozlowski, Mark Brown, Andrew F. Davis, Rob Herring,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Gregor Boirie

Changes since v1:
* temperature compensation fix:
    * reword commit message
    * remove useless parenthesis
* power regulator: reword commit message
* add oversampling rate support

Changes since v2:
* remove non printable characters from commit messages

Changes since v3:
* drop first 3 patches since applied onto testing
* fix oops at regulator probing time if regulator support not compiled-in
* complete device-tree support and documentation
* remove continuous sampling support (see Jonathan's "kthread tight loop
  trigger" proposal)
* checkpatch'ed

Changes since v4:
* drop first 2 patches since applied
* amend commit to include "Fixes" tag

Changes since v5:
* reword patch subject line and include "Fixes" tag in commit message

Gregor Boirie (1):
  iio:pressure:ms5611: fix crash when probing regulator

 drivers/iio/pressure/ms5611_core.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v6 0/1] iio:pressure:ms5611: fix and enhancements
@ 2016-03-09 11:34 ` Gregor Boirie
  0 siblings, 0 replies; 10+ messages in thread
From: Gregor Boirie @ 2016-03-09 11:34 UTC (permalink / raw)
  To: linux-iio, devicetree
  Cc: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, Tomasz Duszynski, Daniel Baluta,
	Krzysztof Kozlowski, Mark Brown, Andrew F. Davis, Rob Herring,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Gregor Boirie

Changes since v1:
* temperature compensation fix:
    * reword commit message
    * remove useless parenthesis
* power regulator: reword commit message
* add oversampling rate support

Changes since v2:
* remove non printable characters from commit messages

Changes since v3:
* drop first 3 patches since applied onto testing
* fix oops at regulator probing time if regulator support not compiled-in
* complete device-tree support and documentation
* remove continuous sampling support (see Jonathan's "kthread tight loop
  trigger" proposal)
* checkpatch'ed

Changes since v4:
* drop first 2 patches since applied
* amend commit to include "Fixes" tag

Changes since v5:
* reword patch subject line and include "Fixes" tag in commit message

Gregor Boirie (1):
  iio:pressure:ms5611: fix crash when probing regulator

 drivers/iio/pressure/ms5611_core.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

-- 
2.1.4


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v6 1/1] iio:pressure:ms5611: fix crash when probing regulator
  2016-03-09 11:34 ` Gregor Boirie
@ 2016-03-09 11:34     ` Gregor Boirie
  -1 siblings, 0 replies; 10+ messages in thread
From: Gregor Boirie @ 2016-03-09 11:34 UTC (permalink / raw)
  To: linux-iio-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, Tomasz Duszynski, Daniel Baluta,
	Krzysztof Kozlowski, Mark Brown, Andrew F. Davis, Rob Herring,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Gregor Boirie

When not compiled-in, regulator layer will return a NULL pointer when
trying to get a reference to any regulator using devm_regulator_get().  As
IS_ERR() does not consider this an error, the ms5611 probing operation will
try to enable a NULL regulator, which will invariably cause a kernel
crash.
This patch fixes this situation by using devm_regulator_get_optional()
instead of devm_regulator_get().

Fixes: 3145229f9191 ("iio:pressure:ms5611: power regulator support")
Signed-off-by: Gregor Boirie <gregor.boirie-ITF29qwbsa/QT0dZR+AlfA@public.gmane.org>
---
 drivers/iio/pressure/ms5611_core.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/pressure/ms5611_core.c b/drivers/iio/pressure/ms5611_core.c
index 37dbc04..a2a871b 100644
--- a/drivers/iio/pressure/ms5611_core.c
+++ b/drivers/iio/pressure/ms5611_core.c
@@ -387,8 +387,8 @@ static const struct iio_info ms5611_info = {
 static int ms5611_init(struct iio_dev *indio_dev)
 {
 	int ret;
-	struct regulator *vdd = devm_regulator_get(indio_dev->dev.parent,
-	                                           "vdd");
+	struct regulator *vdd =
+		devm_regulator_get_optional(indio_dev->dev.parent, "vdd");
 
 	/* Enable attached regulator if any. */
 	if (!IS_ERR(vdd)) {
@@ -398,6 +398,10 @@ static int ms5611_init(struct iio_dev *indio_dev)
 			        "failed to enable Vdd supply: %d\n", ret);
 			return ret;
 		}
+	} else {
+		ret = PTR_ERR(vdd);
+		if (ret != -ENODEV)
+			return ret;
 	}
 
 	ret = ms5611_reset(indio_dev);
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v6 1/1] iio:pressure:ms5611: fix crash when probing regulator
@ 2016-03-09 11:34     ` Gregor Boirie
  0 siblings, 0 replies; 10+ messages in thread
From: Gregor Boirie @ 2016-03-09 11:34 UTC (permalink / raw)
  To: linux-iio, devicetree
  Cc: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, Tomasz Duszynski, Daniel Baluta,
	Krzysztof Kozlowski, Mark Brown, Andrew F. Davis, Rob Herring,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Gregor Boirie

When not compiled-in, regulator layer will return a NULL pointer when
trying to get a reference to any regulator using devm_regulator_get().  As
IS_ERR() does not consider this an error, the ms5611 probing operation will
try to enable a NULL regulator, which will invariably cause a kernel
crash.
This patch fixes this situation by using devm_regulator_get_optional()
instead of devm_regulator_get().

Fixes: 3145229f9191 ("iio:pressure:ms5611: power regulator support")
Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
---
 drivers/iio/pressure/ms5611_core.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/pressure/ms5611_core.c b/drivers/iio/pressure/ms5611_core.c
index 37dbc04..a2a871b 100644
--- a/drivers/iio/pressure/ms5611_core.c
+++ b/drivers/iio/pressure/ms5611_core.c
@@ -387,8 +387,8 @@ static const struct iio_info ms5611_info = {
 static int ms5611_init(struct iio_dev *indio_dev)
 {
 	int ret;
-	struct regulator *vdd = devm_regulator_get(indio_dev->dev.parent,
-	                                           "vdd");
+	struct regulator *vdd =
+		devm_regulator_get_optional(indio_dev->dev.parent, "vdd");
 
 	/* Enable attached regulator if any. */
 	if (!IS_ERR(vdd)) {
@@ -398,6 +398,10 @@ static int ms5611_init(struct iio_dev *indio_dev)
 			        "failed to enable Vdd supply: %d\n", ret);
 			return ret;
 		}
+	} else {
+		ret = PTR_ERR(vdd);
+		if (ret != -ENODEV)
+			return ret;
 	}
 
 	ret = ms5611_reset(indio_dev);
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH v6 0/1] iio:pressure:ms5611: fix and enhancements
  2016-03-09 11:34 ` Gregor Boirie
@ 2016-03-10  0:07     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2016-03-10  0:07 UTC (permalink / raw)
  To: Gregor Boirie, linux-iio-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, Tomasz Duszynski, Daniel Baluta, Mark Brown,
	Andrew F. Davis, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala

On 09.03.2016 20:34, Gregor Boirie wrote:
> Changes since v1:
> * temperature compensation fix:
>     * reword commit message
>     * remove useless parenthesis
> * power regulator: reword commit message
> * add oversampling rate support
> 
> Changes since v2:
> * remove non printable characters from commit messages
> 
> Changes since v3:
> * drop first 3 patches since applied onto testing
> * fix oops at regulator probing time if regulator support not compiled-in
> * complete device-tree support and documentation
> * remove continuous sampling support (see Jonathan's "kthread tight loop
>   trigger" proposal)
> * checkpatch'ed
> 
> Changes since v4:
> * drop first 2 patches since applied
> * amend commit to include "Fixes" tag
> 
> Changes since v5:
> * reword patch subject line and include "Fixes" tag in commit message
> 
> Gregor Boirie (1):
>   iio:pressure:ms5611: fix crash when probing regulator
> 
>  drivers/iio/pressure/ms5611_core.c | 8 ++++++--

Really, how the heck you connected my humble person with this file?
get_maintainer.pl does not print me. Even when run with --git argument.

BR,
Krzysztof

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v6 0/1] iio:pressure:ms5611: fix and enhancements
@ 2016-03-10  0:07     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2016-03-10  0:07 UTC (permalink / raw)
  To: Gregor Boirie, linux-iio, devicetree
  Cc: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, Tomasz Duszynski, Daniel Baluta, Mark Brown,
	Andrew F. Davis, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala

On 09.03.2016 20:34, Gregor Boirie wrote:
> Changes since v1:
> * temperature compensation fix:
>     * reword commit message
>     * remove useless parenthesis
> * power regulator: reword commit message
> * add oversampling rate support
> 
> Changes since v2:
> * remove non printable characters from commit messages
> 
> Changes since v3:
> * drop first 3 patches since applied onto testing
> * fix oops at regulator probing time if regulator support not compiled-in
> * complete device-tree support and documentation
> * remove continuous sampling support (see Jonathan's "kthread tight loop
>   trigger" proposal)
> * checkpatch'ed
> 
> Changes since v4:
> * drop first 2 patches since applied
> * amend commit to include "Fixes" tag
> 
> Changes since v5:
> * reword patch subject line and include "Fixes" tag in commit message
> 
> Gregor Boirie (1):
>   iio:pressure:ms5611: fix crash when probing regulator
> 
>  drivers/iio/pressure/ms5611_core.c | 8 ++++++--

Really, how the heck you connected my humble person with this file?
get_maintainer.pl does not print me. Even when run with --git argument.

BR,
Krzysztof



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v6 0/1] iio:pressure:ms5611: fix and enhancements
  2016-03-10  0:07     ` Krzysztof Kozlowski
  (?)
@ 2016-03-10  9:52     ` Gregor Boirie
  -1 siblings, 0 replies; 10+ messages in thread
From: Gregor Boirie @ 2016-03-10  9:52 UTC (permalink / raw)
  To: Krzysztof Kozlowski, linux-iio

You appeared since get_maintainer.pl printed your address for v3
of this patch modifying drivers/iio/pressure/ms5611_i2c.c
because of 215597 ("iio: Drop owner assignment from i2c_driver").

I did not take time to update addresses list for later versions.
Sorry about that. I took you out of CC list.
Regards

On 03/10/2016 01:07 AM, Krzysztof Kozlowski wrote:
> On 09.03.2016 20:34, Gregor Boirie wrote:
>> Changes since v1:
>> * temperature compensation fix:
>>      * reword commit message
>>      * remove useless parenthesis
>> * power regulator: reword commit message
>> * add oversampling rate support
>>
>> Changes since v2:
>> * remove non printable characters from commit messages
>>
>> Changes since v3:
>> * drop first 3 patches since applied onto testing
>> * fix oops at regulator probing time if regulator support not compiled-in
>> * complete device-tree support and documentation
>> * remove continuous sampling support (see Jonathan's "kthread tight loop
>>    trigger" proposal)
>> * checkpatch'ed
>>
>> Changes since v4:
>> * drop first 2 patches since applied
>> * amend commit to include "Fixes" tag
>>
>> Changes since v5:
>> * reword patch subject line and include "Fixes" tag in commit message
>>
>> Gregor Boirie (1):
>>    iio:pressure:ms5611: fix crash when probing regulator
>>
>>   drivers/iio/pressure/ms5611_core.c | 8 ++++++--
> Really, how the heck you connected my humble person with this file?
> get_maintainer.pl does not print me. Even when run with --git argument.
>
> BR,
> Krzysztof
>
>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v6 1/1] iio:pressure:ms5611: fix crash when probing regulator
  2016-03-09 11:34     ` Gregor Boirie
@ 2016-03-12 11:04         ` Jonathan Cameron
  -1 siblings, 0 replies; 10+ messages in thread
From: Jonathan Cameron @ 2016-03-12 11:04 UTC (permalink / raw)
  To: Gregor Boirie, linux-iio-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald,
	Tomasz Duszynski, Daniel Baluta, Krzysztof Kozlowski, Mark Brown,
	Andrew F. Davis, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala

On 09/03/16 11:34, Gregor Boirie wrote:
> When not compiled-in, regulator layer will return a NULL pointer when
> trying to get a reference to any regulator using devm_regulator_get().  As
> IS_ERR() does not consider this an error, the ms5611 probing operation will
> try to enable a NULL regulator, which will invariably cause a kernel
> crash.
> This patch fixes this situation by using devm_regulator_get_optional()
> instead of devm_regulator_get().
> 
> Fixes: 3145229f9191 ("iio:pressure:ms5611: power regulator support")
> Signed-off-by: Gregor Boirie <gregor.boirie-ITF29qwbsa/QT0dZR+AlfA@public.gmane.org>

I've been thinking a bit more about these cases and think we are missusing
the optional regulators.  If regulator support is present and a non optional
register is requested then it will feed a dummy regulator back. 
The intent of this is to handle the case where an non optional regulator is
needed, but not specified (typically because it is always on).

So the question is how should we handle the regulators not built in case.
If you do call devm_regulator_get you'll get a null pointer.
Without regulators built in regulator_enable will be fine (returns 0)
as does regulator disable.

So I'm unclear on where the crash is coming from.

Also interesting is this driver enables the regulator but never disables
it (which it should).   I was clearly half asleep when reviewing this.
Sorry!

Jonathan


> ---
>  drivers/iio/pressure/ms5611_core.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/iio/pressure/ms5611_core.c b/drivers/iio/pressure/ms5611_core.c
> index 37dbc04..a2a871b 100644
> --- a/drivers/iio/pressure/ms5611_core.c
> +++ b/drivers/iio/pressure/ms5611_core.c
> @@ -387,8 +387,8 @@ static const struct iio_info ms5611_info = {
>  static int ms5611_init(struct iio_dev *indio_dev)
>  {
>  	int ret;
> -	struct regulator *vdd = devm_regulator_get(indio_dev->dev.parent,
> -	                                           "vdd");
> +	struct regulator *vdd =
> +		devm_regulator_get_optional(indio_dev->dev.parent, "vdd");
>  
>  	/* Enable attached regulator if any. */
>  	if (!IS_ERR(vdd)) {
> @@ -398,6 +398,10 @@ static int ms5611_init(struct iio_dev *indio_dev)
>  			        "failed to enable Vdd supply: %d\n", ret);
>  			return ret;
>  		}
> +	} else {
> +		ret = PTR_ERR(vdd);
> +		if (ret != -ENODEV)
> +			return ret;
>  	}
>  
>  	ret = ms5611_reset(indio_dev);
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v6 1/1] iio:pressure:ms5611: fix crash when probing regulator
@ 2016-03-12 11:04         ` Jonathan Cameron
  0 siblings, 0 replies; 10+ messages in thread
From: Jonathan Cameron @ 2016-03-12 11:04 UTC (permalink / raw)
  To: Gregor Boirie, linux-iio, devicetree
  Cc: Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald,
	Tomasz Duszynski, Daniel Baluta, Krzysztof Kozlowski, Mark Brown,
	Andrew F. Davis, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala

On 09/03/16 11:34, Gregor Boirie wrote:
> When not compiled-in, regulator layer will return a NULL pointer when
> trying to get a reference to any regulator using devm_regulator_get().  As
> IS_ERR() does not consider this an error, the ms5611 probing operation will
> try to enable a NULL regulator, which will invariably cause a kernel
> crash.
> This patch fixes this situation by using devm_regulator_get_optional()
> instead of devm_regulator_get().
> 
> Fixes: 3145229f9191 ("iio:pressure:ms5611: power regulator support")
> Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>

I've been thinking a bit more about these cases and think we are missusing
the optional regulators.  If regulator support is present and a non optional
register is requested then it will feed a dummy regulator back. 
The intent of this is to handle the case where an non optional regulator is
needed, but not specified (typically because it is always on).

So the question is how should we handle the regulators not built in case.
If you do call devm_regulator_get you'll get a null pointer.
Without regulators built in regulator_enable will be fine (returns 0)
as does regulator disable.

So I'm unclear on where the crash is coming from.

Also interesting is this driver enables the regulator but never disables
it (which it should).   I was clearly half asleep when reviewing this.
Sorry!

Jonathan


> ---
>  drivers/iio/pressure/ms5611_core.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/iio/pressure/ms5611_core.c b/drivers/iio/pressure/ms5611_core.c
> index 37dbc04..a2a871b 100644
> --- a/drivers/iio/pressure/ms5611_core.c
> +++ b/drivers/iio/pressure/ms5611_core.c
> @@ -387,8 +387,8 @@ static const struct iio_info ms5611_info = {
>  static int ms5611_init(struct iio_dev *indio_dev)
>  {
>  	int ret;
> -	struct regulator *vdd = devm_regulator_get(indio_dev->dev.parent,
> -	                                           "vdd");
> +	struct regulator *vdd =
> +		devm_regulator_get_optional(indio_dev->dev.parent, "vdd");
>  
>  	/* Enable attached regulator if any. */
>  	if (!IS_ERR(vdd)) {
> @@ -398,6 +398,10 @@ static int ms5611_init(struct iio_dev *indio_dev)
>  			        "failed to enable Vdd supply: %d\n", ret);
>  			return ret;
>  		}
> +	} else {
> +		ret = PTR_ERR(vdd);
> +		if (ret != -ENODEV)
> +			return ret;
>  	}
>  
>  	ret = ms5611_reset(indio_dev);
> 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v6 1/1] iio:pressure:ms5611: fix crash when probing regulator
  2016-03-12 11:04         ` Jonathan Cameron
  (?)
@ 2016-03-14 10:49         ` Gregor Boirie
  -1 siblings, 0 replies; 10+ messages in thread
From: Gregor Boirie @ 2016-03-14 10:49 UTC (permalink / raw)
  To: linux-iio


On 03/12/2016 12:04 PM, Jonathan Cameron wrote:
> On 09/03/16 11:34, Gregor Boirie wrote:
>> When not compiled-in, regulator layer will return a NULL pointer when
>> trying to get a reference to any regulator using devm_regulator_get().  As
>> IS_ERR() does not consider this an error, the ms5611 probing operation will
>> try to enable a NULL regulator, which will invariably cause a kernel
>> crash.
>> This patch fixes this situation by using devm_regulator_get_optional()
>> instead of devm_regulator_get().
>>
>> Fixes: 3145229f9191 ("iio:pressure:ms5611: power regulator support")
>> Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
> I've been thinking a bit more about these cases and think we are missusing
> the optional regulators.  If regulator support is present and a non optional
> register is requested then it will feed a dummy regulator back.
> The intent of this is to handle the case where an non optional regulator is
> needed, but not specified (typically because it is always on).
My intent was:
* if regulator support not built-in, keep going ;
* else :
   * if regulator not declared (platform or device tree), keep going ;
   * else :
     * if regulator not properly declared, error ;
     * else enable it, then go one initializing.

So, I suppose dummy regulators should be allowed to support all
possible cases (use devm_regulator_get()).
Have I missed something ?
> So the question is how should we handle the regulators not built in case.
> If you do call devm_regulator_get you'll get a null pointer.
> Without regulators built in regulator_enable will be fine (returns 0)
> as does regulator disable.
>
> So I'm unclear on where the crash is coming from.
Probably from the fact that I use an up to date IIO subsystem ported onto
an old kernel (3.10.x), which rather complicates testing with regard to
other subsystem dependencies.

> Also interesting is this driver enables the regulator but never disables
> it (which it should).
Right. I thought regulator_put() implicitly disabled the regulator, which
is wrong...
>     I was clearly half asleep when reviewing this.
> Sorry!
Well, I wasn't that awake either. Sorry for the noise.
Grégor.
>
> Jonathan
>
>
>> ---
>>   drivers/iio/pressure/ms5611_core.c | 8 ++++++--
>>   1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/iio/pressure/ms5611_core.c b/drivers/iio/pressure/ms5611_core.c
>> index 37dbc04..a2a871b 100644
>> --- a/drivers/iio/pressure/ms5611_core.c
>> +++ b/drivers/iio/pressure/ms5611_core.c
>> @@ -387,8 +387,8 @@ static const struct iio_info ms5611_info = {
>>   static int ms5611_init(struct iio_dev *indio_dev)
>>   {
>>   	int ret;
>> -	struct regulator *vdd = devm_regulator_get(indio_dev->dev.parent,
>> -	                                           "vdd");
>> +	struct regulator *vdd =
>> +		devm_regulator_get_optional(indio_dev->dev.parent, "vdd");
>>
>>   	/* Enable attached regulator if any. */
>>   	if (!IS_ERR(vdd)) {
>> @@ -398,6 +398,10 @@ static int ms5611_init(struct iio_dev *indio_dev)
>>   			        "failed to enable Vdd supply: %d\n", ret);
>>   			return ret;
>>   		}
>> +	} else {
>> +		ret = PTR_ERR(vdd);
>> +		if (ret != -ENODEV)
>> +			return ret;
>>   	}
>>
>>   	ret = ms5611_reset(indio_dev);
>>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-03-14 10:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-09 11:34 [PATCH v6 0/1] iio:pressure:ms5611: fix and enhancements Gregor Boirie
2016-03-09 11:34 ` Gregor Boirie
     [not found] ` <cover.1457522751.git.gregor.boirie-ITF29qwbsa/QT0dZR+AlfA@public.gmane.org>
2016-03-09 11:34   ` [PATCH v6 1/1] iio:pressure:ms5611: fix crash when probing regulator Gregor Boirie
2016-03-09 11:34     ` Gregor Boirie
     [not found]     ` <7767ba4decd3938eb1b37990f707b016228e0ef5.1457522751.git.gregor.boirie-ITF29qwbsa/QT0dZR+AlfA@public.gmane.org>
2016-03-12 11:04       ` Jonathan Cameron
2016-03-12 11:04         ` Jonathan Cameron
2016-03-14 10:49         ` Gregor Boirie
2016-03-10  0:07   ` [PATCH v6 0/1] iio:pressure:ms5611: fix and enhancements Krzysztof Kozlowski
2016-03-10  0:07     ` Krzysztof Kozlowski
2016-03-10  9:52     ` Gregor Boirie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.