Cc: David Brownell <dbrownell@...>, Grant Likely <grant.likely@...>, Gary Jennejohn <garyj@...>, Guennadi Liakhovetski <g.liakhovetski@...>, <linuxppc-dev@...>, <linux-kernel@...>
On Sun, Jun 01, 2008 at 12:18:41PM +0200, Pierre Ossman wrote:
This depends on the perception. :-)
Yes, by convention (or better, by design).
Yes, so far.
No, if designed/documented properly.
Just imagine this (100% similarity to USB code):
mmc_spi_create_hcd(&mmc_spi_driver, dev, dev->bus_id);
mmc_spi_add_hcd(dev, irq, irqflags);
platform_get_pin()? Um, maybe platform_get_gpio(), as _irq()? Yes,
this is doable (and someday this should be done). But this way we can
pass only GPIOs and then teach mmc_spi to work with them directly
(in addition to callbacks).
But this is not enough, there is still no way to pass real platform data,
such as: caps and ocr_mask. Any idea how to deliver these?
Thanks,
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
--