devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Martin Kelly <mkelly@xevo.com>
To: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>,
	Jonathan Cameron <jic23@kernel.org>
Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v5 1/2] iio:imu: inv_mpu6050: support more interrupt types
Date: Tue, 17 Apr 2018 11:14:22 -0700	[thread overview]
Message-ID: <ca4ac214-d85f-bf9a-07db-31f72afbb95b@xevo.com> (raw)
In-Reply-To: <f4c27917-80e7-340d-6f51-42a44f161777@invensense.com>

On 04/17/2018 07:10 AM, Jean-Baptiste Maneyrol wrote:
> 
> 
> On 15/04/2018 21:05, Martin Kelly wrote:
>> On 04/15/2018 10:43 AM, Jonathan Cameron wrote:
>>> On Wed, 11 Apr 2018 09:42:14 -0700
>>> Martin Kelly <mkelly@xevo.com> wrote:
>>>
>>>> On 04/11/2018 12:01 AM, Jean-Baptiste Maneyrol wrote:
>>>>> This is OK for me.
>>>>>
>>>>> Jonathan will tell us about EBUSY error code for sure if it is not 
>>>>> correct.
>>>>>
>>>>> JB
>>>>
>>>> Sounds good; once we hear from Jonathan, I will submit the next 
>>>> revision.
>>> Optimists.  I can never make my mind up on some of the error codes.
>>>
>>> It's not totally silly so I'm happy with EBUSY or ENODEV as you wish.
>>>
>>> Jonathan
>>>
>>
>> OK, then I will defer to Jean-Baptiste on this. Shall we go with ENODEV?
> 
> After looking into the irq kernel code, I think perhaps the best value 
> should be EINVAL. What it really means, is that configuration is missing 
> in the dts file where it shouldn't. Incorrect value seams more 
> meaningful in this case.
> 
> Do you agree?
> 
> JB

Yes, EINVAL is fine with me. I didn't use it because there was a note in 
the aforementioned document saying that it's best to use a more specific 
error code. However, none of these error codes have a clear case for 
their use, and it's all a bit muddled, as Jonathan mentioned. I'll send 
a revision with EINVAL later this week when I'm back to my desk with 
hardware to test.

      reply	other threads:[~2018-04-17 18:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-09 20:21 [PATCH v5 1/2] iio:imu: inv_mpu6050: support more interrupt types Martin Kelly
2018-04-09 20:21 ` [PATCH v5 2/2] dt-bindings: iio:imu:mpu6050: " Martin Kelly
2018-04-13 13:43   ` Rob Herring
2018-04-10  9:06 ` [PATCH v5 1/2] iio:imu: inv_mpu6050: " Jean-Baptiste Maneyrol
2018-04-10 18:08   ` Martin Kelly
2018-04-11  7:01     ` Jean-Baptiste Maneyrol
2018-04-11 16:42       ` Martin Kelly
2018-04-12 15:01         ` Jean-Baptiste Maneyrol
2018-04-12 18:16           ` Martin Kelly
2018-04-13  9:25             ` Jean-Baptiste Maneyrol
2018-04-13 16:19               ` Martin Kelly
2018-04-15 17:50                 ` Jonathan Cameron
2018-04-15 17:43         ` Jonathan Cameron
2018-04-15 19:05           ` Martin Kelly
2018-04-17 14:10             ` Jean-Baptiste Maneyrol
2018-04-17 18:14               ` Martin Kelly [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ca4ac214-d85f-bf9a-07db-31f72afbb95b@xevo.com \
    --to=mkelly@xevo.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jic23@kernel.org \
    --cc=jmaneyrol@invensense.com \
    --cc=linux-iio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).