Re: [RFC PATCH 3/4] PLATFORM: Introduce async platform_data attachapi
From: Mark Brown
Date: Mon Mar 14 2011 - 17:10:47 EST
On Mon, Mar 14, 2011 at 01:54:32PM -0700, Greg KH wrote:
> On Mon, Mar 14, 2011 at 08:38:53AM +0000, Andy Green wrote:
> > For sure, in any other bus, we will never have this discussion about
> > if the device driver should use relevant platform_data to be guided
> > about what to do, that is what platform_data is for and it is very
> > widely used indeed.
> Are you sure? Try me on one of the other "real" busses out there like
> PCI and see how all of these same arguments are identical :)
You were asking for concrete examples up thread, and this brings one to
mind - I used to work on a system where we had to modify the PCI ethernet
controller driver to tell it that while it did have two PHYs attached to
the MDIO bus they were nothing to do with the data interface of the
ethernet controller which was instead directly wired to a fixed
configuration device. This sort of thing could be handled by the device
tree but...
> The abuse of platform_data today does not give you the right to persist
> in it. Look at the work of the device tree developers to fix this
> problem as proof of this.
...the problem with device tree is that it's only available on a limited
subset of architectures at the minute, with progress towards deploying
it more widely being somewhat slow.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/