Thread (1 message) 1 message, 1 author, 2015-07-17

Re: Duplicated device tree and Dynamic symbols

From: Pantelis Antoniou <hidden>
Date: 2015-07-17 10:19:56

Hi Ricardo,
On Jul 16, 2015, at 23:11 , Ricardo Ribalda Delgado [off-list ref] wrote:

Ping?
On vacations, but take a look at:

https://github.com/pantoniou/dtc

Regards

— Pantelis
On Fri, Jun 12, 2015 at 11:53 PM, Ricardo Ribalda Delgado
[off-list ref] wrote:
quoted
Hello Pantelis

Thanks for your patches, I will try to test it during the next week.
Just one question.

Where can I find the dtc with support for __fixup__ and __local_fixups__ ?

Seems that is its not part of /scripts/dtc or
https://git.kernel.org/cgit/utils/dtc/dtc.git/log/

Thanks!

On Fri, Jun 12, 2015 at 10:06 PM, Pantelis Antoniou
[off-list ref] wrote:
quoted
Hi Ricardo,
quoted
On Jun 8, 2015, at 23:14 , Ricardo Ribalda Delgado [off-list ref] wrote:

Hello Pantelis

Any progress here?
I just posted a bunch of patches that make possible using PCI with device tree.
Perhaps you’d like to take a look.
quoted
Thanks
Regards

— Pantelis
quoted
On Tue, Apr 28, 2015 at 10:36 AM, Pantelis Antoniou
[off-list ref] wrote:
quoted
Hi Ricardo,
quoted
On Apr 28, 2015, at 11:16 , Ricardo Ribalda Delgado [off-list ref] wrote:

Hello

I have an X86 platform with device tree support. It has multiple pci
slots with a custom board that is described with a device tree.

When the pci device is probed, the driver fetches a device tree from
the firmware infrastructure, patches the range property based on the
bar address and adds the device to the main device tree.

This works perfectly fine with only one card, but when the second card
is connected: Here be dragons :)

The main issue is that of_find_node_by_phandle always resolves to the
first connected card. I fixed this by creating a new function.
of_find_node_by_phandle_family() that chooses the closest phandle on
the tree, not just the first one.

By reading the "Dynamic Symbols support and fixup support"
here:
http://events.linuxfoundation.org/sites/events/files/slides/dynamic-dt-elce14.pdf
and here
https://lwn.net/Articles/616859/

It seemed that the patch would fix my issue and it would be already
merged, but I cannot find the patch here
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git
or here
https://git.kernel.org/cgit/linux/kernel/git/jdl/dtc.git

So I am wondering some stuff:

Would a patch adding my of_find_node_by_phandle_family() would be accepted.?

Will Dynamic symbols fix my issue?

What is the status of Dynamic symbol support?

Thanks!
You’ll find it hard to believe but there’s someone using something similar.

I’m trying to figure out how to make it work; hang on to your horses. I’ll CC you
when I post the patches.

quoted
--
Ricardo Ribalda
Regards

— Pantelis


--
Ricardo Ribalda


--
Ricardo Ribalda


-- 
Ricardo Ribalda
--
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
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help