From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] fdt: Fix handling of paths with options in them
Date: Fri, 24 Apr 2015 15:34:09 +0200 [thread overview]
Message-ID: <553A4651.7030203@redhat.com> (raw)
In-Reply-To: <CAPnjgZ1y6M_MLqV-_DoT8-S6ikXrYvorJcm6th+_fCwFYTM6sA@mail.gmail.com>
Hi,
On 24-04-15 14:42, Simon Glass wrote:
> Hi Hans,
>
> On 23 April 2015 at 10:15, Simon Glass <sjg@chromium.org> wrote:
>> Hi Hans,
>>
>> On 23 April 2015 at 00:55, Hans de Goede <hdegoede@redhat.com> wrote:
>>> Hi,
>>>
>>>
>>> On 22-04-15 19:20, Simon Glass wrote:
>>>>
>>>> Hi Hans,
>>>>
>>>> On 20 April 2015 at 12:10, Hans de Goede <hdegoede@redhat.com> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> On 20-04-15 17:39, Simon Glass wrote:
>>>>>>
>>>>>>
>>>>>> Hi Hans,
>>>>>>
>>>>>> On 20 April 2015 at 03:13, Hans de Goede <hdegoede@redhat.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>> After syncing the sunxi dts files with the upstream kernel dm/fdt sunxi
>>>>>>> builds would no longer boot.
>>>>>>>
>>>>>>> The problem is that stdout-path is now set like this in the upstream
>>>>>>> dts
>>>>>>> files: stdout-path = "serial0:115200n8". The use of options in
>>>>>>> of-paths,
>>>>>>> either after an alias name, or after a full path, e.g. stdout-path =
>>>>>>> "/soc at 01c00000/serial at 01c28000:115200", is standard of usage, but
>>>>>>> something
>>>>>>> which the u-boot dts code so far did not handle.
>>>>>>>
>>>>>>> This commit fixes this, adding support for both path formats.
>>>>>>>
>>>>>>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>>>>>>> ---
>>>>>>> arch/arm/dts/sun7i-a20-pcduino3.dts | 2 +-
>>>>>>> lib/libfdt/fdt_ro.c | 25 ++++++++++++++++++++++---
>>>>>>
>>>>>>
>>>>>>
>>>>>> I haven't looked. but is this change in dtc upstream or just in the
>>>>>> kernel?
>>>>>
>>>>>
>>>>>
>>>>> This is just a change in the dts files shipped with the kernel not in
>>>>> dtc,
>>>>> the dts files for sunxi used to not set stdout-path, and you patched in
>>>>> a stdout-path setting for u-boot:
>>>>
>>>>
>>>> In that case, can we change this in the fdt support /fdtdec code,
>>>> instead of making a change to libfdt that will never go upstream?
>>>>
>>>> If that doesn't work or is too painful, then we should take this patch.
>>>
>>>
>>> Actually I started with fixing this the fdtdev level, but then I noticed
>>> that the kernel does this at the of_find_node_by_path level, so if we
>>> fix this for stdout-path only (which a fdtdec patch would do) then we may
>>> get bit by this again later.
>>>
>>> Also fixing it at the fdtdec level means adding a strdup + error checking
>>> since then we need to pass a truncated (options removed) copy of the path
>>> to fdt_path_offset(), while with the current patch we can keep using
>>> read only access to the fdt.
>>>
>>> So I've a slight preference for going this way. Why would libfdt upstream
>>> not
>>> take this patch ?
>>
>> I'm not sure, but please go ahead and send it upstream. Thanks for the
>> explanation, I'll pick this up.
>>
>> Acked-by: Simon Glass <sjg@chromium.org>
>>
>
> Can I just check if you are OK to send this upstream? We don't need to
> wait for it to be accepted, just want to know it will be sent.
Yes I will submit this upstream.
Regards,
Hans
next prev parent reply other threads:[~2015-04-24 13:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-20 9:13 [U-Boot] [PATCH 0/1] fdt: Fix handling of paths with options in them Hans de Goede
2015-04-20 9:13 ` [U-Boot] [PATCH] " Hans de Goede
2015-04-20 14:58 ` Hans de Goede
2015-04-20 15:39 ` Simon Glass
2015-04-20 18:10 ` Hans de Goede
2015-04-22 17:20 ` Simon Glass
2015-04-23 6:55 ` Hans de Goede
2015-04-23 16:15 ` Simon Glass
2015-04-24 12:42 ` Simon Glass
2015-04-24 13:34 ` Hans de Goede [this message]
2015-04-28 23:29 ` Simon Glass
2015-07-14 19:49 ` Simon Glass
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=553A4651.7030203@redhat.com \
--to=hdegoede@redhat.com \
--cc=u-boot@lists.denx.de \
/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