From: galak@codeaurora.org (Kumar Gala)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] Documentation: devicetree: root node serial-number property documentation
Date: Thu, 16 Apr 2015 13:54:25 -0500 [thread overview]
Message-ID: <B1128C28-AC17-47F6-A64A-FD3197112751@codeaurora.org> (raw)
In-Reply-To: <1429208077.2563.14.camel@collins>
> On Apr 16, 2015, at 1:14 PM, Paul Kocialkowski <contact@paulk.fr> wrote:
>
> Le jeudi 16 avril 2015 ? 10:53 -0500, Kumar Gala a ?crit :
>>> On Apr 16, 2015, at 10:45 AM, Paul Kocialkowski <contact@paulk.fr> wrote:
>>>
>>> Le jeudi 16 avril 2015 ? 10:23 -0500, Kumar Gala a ?crit :
>>>>> On Apr 16, 2015, at 9:36 AM, Rob Herring <robherring2@gmail.com> wrote:
>>>>>
>>>>> On Thu, Apr 16, 2015 at 4:10 AM, Paul Kocialkowski <contact@paulk.fr> wrote:
>>>>>> Le jeudi 16 avril 2015 ? 09:56 +0200, Stefan Agner a ?crit :
>>>>>>> On 2015-03-28 18:39, Paul Kocialkowski wrote:
>>>>>>>> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
>>>>>>>
>>>>>>> I think this is a worthwhile standardization.
>>>>>>>
>>>>>>> Acked-by: Stefan Agner <stefan@agner.ch>
>>>>>>
>>>>>> Thanks! I should also add a commit message in v2 mentioning that this is
>>>>>> already used in open firmware and reported by lshw.
>>>>>
>>>>> With that,
>>>>>
>>>>> Acked-by: Rob Herring <robh@kernel.org>
>>>
>>> [snip]
>>>
>>>> I feel like this is a little lite either in the doc or commit message.
>>>> Is the string completely arbitrary? Is it meant to match labeling on
>>>> a board or case? Is this meant to be used by the kernel at all?
>>>
>>> I guess it doesn't really matter what it is, as long as it's a string.
>>> The kernel does not suggest any use for it either, it's just made
>>> available to userspace through cpuinfo.
>>>
>>> Now if there is a particular use for this in user-space, it would have
>>> to match some standards. For instance, it Android, ro.serialno is
>>> usually a 16-bytes (plus one null byte) representation of a 64 bit
>>> number. For USB, I recall it is usually a 32 bytes string (including the
>>> null byte), but may be extended to more.
>>>
>>> What the string actually represents depends and some SOCs have serial
>>> number bytes (I know that omap and sunxi have some for instance, that
>>> are usually used) while other devices may take it from somewhere else.
>>> In any case, it doesn't really matter and is not up to the kernel anyway
>>> since it is just passed through from the bootloader.
>>>
>>> Thus, I don't think it's very relevant to mention it in either the
>>> documentation or the commit message.
>>
>> So you say ?board? in the patch, since it could be SoC specific, we
>> should probably clean up the wording a bit.
>
> It really doesn't matter where the string comes from, what it contains
> or whether some SoCs have provisions to generate one.
> I think board is one the most common words that we can use to describe
> devices. "devices" is also fine, I could go with it if you prefer, but I
> don't really see what it changes.
Lets go with device instead of board.
>
>> I?m just saying when someone reads this 6 months or a year later and
>> tries to figure out what the purpose of the property is they don?t
>> really have enough info. Putting some examples in the commit message
>> of what possibly usages is I think a reasonable thing.
>
> Okay, that would make sense. Still, the purpose of this is to pass the
> serial number string from the bootloader to userspace. All of the
> discussion about where to grab the serial from and what it should look
> like is not relevant to the kernel. Instead, it's up to the bootloader
> that is in charge of generating the serial string, so the discussion
> should happen there.
Again, I?ve got no issues with the property and its purpose to be used by user space, just saying we need to convey more of the intent via commit message or updating the doc.
- k
--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
WARNING: multiple messages have this Message-ID (diff)
From: Kumar Gala <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
To: Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org>
Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>,
Ian Campbell
<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
Stefan Agner <stefan-XLVq0VzYD2Y@public.gmane.org>,
Hans De Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>
Subject: Re: [PATCH 1/2] Documentation: devicetree: root node serial-number property documentation
Date: Thu, 16 Apr 2015 13:54:25 -0500 [thread overview]
Message-ID: <B1128C28-AC17-47F6-A64A-FD3197112751@codeaurora.org> (raw)
In-Reply-To: <1429208077.2563.14.camel@collins>
> On Apr 16, 2015, at 1:14 PM, Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org> wrote:
>
> Le jeudi 16 avril 2015 à 10:53 -0500, Kumar Gala a écrit :
>>> On Apr 16, 2015, at 10:45 AM, Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org> wrote:
>>>
>>> Le jeudi 16 avril 2015 à 10:23 -0500, Kumar Gala a écrit :
>>>>> On Apr 16, 2015, at 9:36 AM, Rob Herring <robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>>>>
>>>>> On Thu, Apr 16, 2015 at 4:10 AM, Paul Kocialkowski <contact@paulk.fr> wrote:
>>>>>> Le jeudi 16 avril 2015 à 09:56 +0200, Stefan Agner a écrit :
>>>>>>> On 2015-03-28 18:39, Paul Kocialkowski wrote:
>>>>>>>> Signed-off-by: Paul Kocialkowski <contact-W9ppeneeCTY@public.gmane.org>
>>>>>>>
>>>>>>> I think this is a worthwhile standardization.
>>>>>>>
>>>>>>> Acked-by: Stefan Agner <stefan-XLVq0VzYD2Y@public.gmane.org>
>>>>>>
>>>>>> Thanks! I should also add a commit message in v2 mentioning that this is
>>>>>> already used in open firmware and reported by lshw.
>>>>>
>>>>> With that,
>>>>>
>>>>> Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
>>>
>>> [snip]
>>>
>>>> I feel like this is a little lite either in the doc or commit message.
>>>> Is the string completely arbitrary? Is it meant to match labeling on
>>>> a board or case? Is this meant to be used by the kernel at all?
>>>
>>> I guess it doesn't really matter what it is, as long as it's a string.
>>> The kernel does not suggest any use for it either, it's just made
>>> available to userspace through cpuinfo.
>>>
>>> Now if there is a particular use for this in user-space, it would have
>>> to match some standards. For instance, it Android, ro.serialno is
>>> usually a 16-bytes (plus one null byte) representation of a 64 bit
>>> number. For USB, I recall it is usually a 32 bytes string (including the
>>> null byte), but may be extended to more.
>>>
>>> What the string actually represents depends and some SOCs have serial
>>> number bytes (I know that omap and sunxi have some for instance, that
>>> are usually used) while other devices may take it from somewhere else.
>>> In any case, it doesn't really matter and is not up to the kernel anyway
>>> since it is just passed through from the bootloader.
>>>
>>> Thus, I don't think it's very relevant to mention it in either the
>>> documentation or the commit message.
>>
>> So you say ‘board’ in the patch, since it could be SoC specific, we
>> should probably clean up the wording a bit.
>
> It really doesn't matter where the string comes from, what it contains
> or whether some SoCs have provisions to generate one.
> I think board is one the most common words that we can use to describe
> devices. "devices" is also fine, I could go with it if you prefer, but I
> don't really see what it changes.
Lets go with device instead of board.
>
>> I’m just saying when someone reads this 6 months or a year later and
>> tries to figure out what the purpose of the property is they don’t
>> really have enough info. Putting some examples in the commit message
>> of what possibly usages is I think a reasonable thing.
>
> Okay, that would make sense. Still, the purpose of this is to pass the
> serial number string from the bootloader to userspace. All of the
> discussion about where to grab the serial from and what it should look
> like is not relevant to the kernel. Instead, it's up to the bootloader
> that is in charge of generating the serial string, so the discussion
> should happen there.
Again, I’ve got no issues with the property and its purpose to be used by user space, just saying we need to convey more of the intent via commit message or updating the doc.
- k
--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-04-16 18:54 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-28 17:39 [PATCH 1/2] Documentation: devicetree: root node serial-number property documentation Paul Kocialkowski
2015-03-28 17:39 ` Paul Kocialkowski
2015-03-28 17:39 ` [PATCH 2/2] arch: arm: Show the serial number from devicetree in cpuinfo Paul Kocialkowski
2015-03-28 17:39 ` Paul Kocialkowski
2015-04-16 9:46 ` Russell King - ARM Linux
2015-04-16 9:46 ` Russell King - ARM Linux
2015-04-16 10:23 ` Paul Kocialkowski
2015-04-16 10:23 ` Paul Kocialkowski
2015-04-16 14:37 ` Rob Herring
2015-04-16 16:05 ` Russell King - ARM Linux
2015-04-16 16:05 ` Russell King - ARM Linux
2015-04-14 14:31 ` [PATCH 1/2] Documentation: devicetree: root node serial-number property documentation Paul Kocialkowski
2015-04-14 14:31 ` Paul Kocialkowski
2015-04-16 7:56 ` Stefan Agner
2015-04-16 7:56 ` Stefan Agner
2015-04-16 9:10 ` Paul Kocialkowski
2015-04-16 9:10 ` Paul Kocialkowski
2015-04-16 14:36 ` Rob Herring
2015-04-16 14:36 ` Rob Herring
2015-04-16 15:23 ` Kumar Gala
2015-04-16 15:23 ` Kumar Gala
2015-04-16 15:45 ` Paul Kocialkowski
2015-04-16 15:45 ` Paul Kocialkowski
2015-04-16 15:53 ` Kumar Gala
2015-04-16 15:53 ` Kumar Gala
2015-04-16 18:14 ` Paul Kocialkowski
2015-04-16 18:14 ` Paul Kocialkowski
2015-04-16 18:54 ` Kumar Gala [this message]
2015-04-16 18:54 ` Kumar Gala
2015-04-16 19:15 ` Paul Kocialkowski
2015-04-16 19:15 ` Paul Kocialkowski
2015-04-16 19:40 ` Stefan Agner
2015-04-16 19:40 ` Stefan Agner
2015-04-16 20:06 ` Paul Kocialkowski
2015-04-16 20:06 ` Paul Kocialkowski
2015-04-16 22:05 ` Stefan Agner
2015-04-16 22:05 ` Stefan Agner
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=B1128C28-AC17-47F6-A64A-FD3197112751@codeaurora.org \
--to=galak@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.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 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.