Re: [PATCH 1/1] of: to support binding numa node to root subnode(non-bus)

2015-08-25 Thread Rob Herring
On Mon, Aug 24, 2015 at 9:24 PM, Leizhen (ThunderTown) wrote: > > > On 2015/8/24 21:25, Rob Herring wrote: >> +benh >> >> On Mon, Aug 24, 2015 at 7:30 AM, Zhen Lei wrote: >>> If use of_platform_populate to scan dt-nodes and add devices, the >>> subnode of root(such as /smmu), when being scanned

Re: [PATCH 1/1] of: to support binding numa node to root subnode(non-bus)

2015-08-25 Thread Rob Herring
On Mon, Aug 24, 2015 at 9:24 PM, Leizhen (ThunderTown) thunder.leiz...@huawei.com wrote: On 2015/8/24 21:25, Rob Herring wrote: +benh On Mon, Aug 24, 2015 at 7:30 AM, Zhen Lei thunder.leiz...@huawei.com wrote: If use of_platform_populate to scan dt-nodes and add devices, the subnode of

Re: [PATCH 1/1] of: to support binding numa node to root subnode(non-bus)

2015-08-24 Thread Leizhen (ThunderTown)
On 2015/8/24 21:25, Rob Herring wrote: > +benh > > On Mon, Aug 24, 2015 at 7:30 AM, Zhen Lei wrote: >> If use of_platform_populate to scan dt-nodes and add devices, the >> subnode of root(such as /smmu), when being scanned and invoke > > You should have a bus as the sub-node of root rather

Re: [PATCH 1/1] of: to support binding numa node to root subnode(non-bus)

2015-08-24 Thread Rob Herring
+benh On Mon, Aug 24, 2015 at 7:30 AM, Zhen Lei wrote: > If use of_platform_populate to scan dt-nodes and add devices, the > subnode of root(such as /smmu), when being scanned and invoke You should have a bus as the sub-node of root rather than devices directly off of root. You still have a

[PATCH 1/1] of: to support binding numa node to root subnode(non-bus)

2015-08-24 Thread Zhen Lei
If use of_platform_populate to scan dt-nodes and add devices, the subnode of root(such as /smmu), when being scanned and invoke of_device_add, the ofdev->dev.parent is always equal _bus. So that, function set_dev_node will not be called. And in device_add, dev_to_node(parent) always return

Re: [PATCH 1/1] of: to support binding numa node to root subnode(non-bus)

2015-08-24 Thread Rob Herring
+benh On Mon, Aug 24, 2015 at 7:30 AM, Zhen Lei thunder.leiz...@huawei.com wrote: If use of_platform_populate to scan dt-nodes and add devices, the subnode of root(such as /smmu), when being scanned and invoke You should have a bus as the sub-node of root rather than devices directly off of

[PATCH 1/1] of: to support binding numa node to root subnode(non-bus)

2015-08-24 Thread Zhen Lei
If use of_platform_populate to scan dt-nodes and add devices, the subnode of root(such as /smmu), when being scanned and invoke of_device_add, the ofdev-dev.parent is always equal platform_bus. So that, function set_dev_node will not be called. And in device_add, dev_to_node(parent) always return

Re: [PATCH 1/1] of: to support binding numa node to root subnode(non-bus)

2015-08-24 Thread Leizhen (ThunderTown)
On 2015/8/24 21:25, Rob Herring wrote: +benh On Mon, Aug 24, 2015 at 7:30 AM, Zhen Lei thunder.leiz...@huawei.com wrote: If use of_platform_populate to scan dt-nodes and add devices, the subnode of root(such as /smmu), when being scanned and invoke You should have a bus as the sub-node