[PATCH 2/4] [OF] spi_of: add support for dedicated SPI constructors

Guennadi Liakhovetski g.liakhovetski at gmx.de
Thu May 22 03:51:00 EST 2008


On Wed, 21 May 2008, Grant Likely wrote:

> I concede that sometimes platform code just has to pass data to the
> driver that cannot be described in the device tree.  callback pointers
> being the most significant example and we do need a sane way to do so.

Sorry, I just cannot understand. So far my understanding was, that OF 
bindings were there to _completely_ describe hardware, that cannot be 
autoconfigured or probed. So a _generic_ driver gets all information it 
needs from the device tree and needs no additional information to handle 
the hardware.

Now if a driver needs additional information from "platform code" what's 
the purpose of partial data in the device tree at all? Just use board 
information as usual.

What good is an OF-binding if it doesn't provide complete information?

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer



More information about the Linuxppc-dev mailing list