[RFC PATCH v3 2/2] dt: add custom device creation to platform bus scan

Arnd Bergmann arnd at arndb.de
Thu May 26 23:11:23 EST 2011


On Wednesday 25 May 2011, Rob Herring wrote:
> 
> From: Rob Herring <rob.herring at calxeda.com>
> 
> Add support to the platform bus scanning to call custom device creation
> functions. This enables creation of non-platform devices like amba_bus.
> 
> Cc: Jeremy Kerr <jeremy.kerr at canonical.com>
> Cc: Grant Likely <grant.likely at secretlab.ca>
> Cc: linux at arm.linux.org.uk
> Cc: arnd at arndb.de
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Signed-off-by: Rob Herring <rob.herring at calxeda.com>

This creates a confusing mix of match table entries: Normally,
all entries in the match table are meant to identify child buses,
but if I read your patch correctly, you now also need to match
on the amba devices themselves, including the creation of
platform devices for each child device node under an amba
device.

I don't think that was the intention. Maybe we need to pass
two match tables into of_platform_bus_probe() instead:
one to identify the buses, and another one that is used
to create the actual devices.

	Arnd


More information about the devicetree-discuss mailing list