Re: [RFC PATCH 1/2] mmc_spi: export probe and remove functions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Anton Vorontsov
Date: Monday, June 2, 2008 - 5:53 am

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] OpenFirmware bindings for the MMC-over-SPI driver, Anton Vorontsov, (Fri May 23, 11:27 am)
[RFC PATCH 1/2] mmc_spi: export probe and remove functions, Anton Vorontsov, (Fri May 23, 11:28 am)
Re: [RFC] OpenFirmware bindings for the MMC-over-SPI driver, David Brownell, (Sat May 24, 12:56 pm)
Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the ..., Segher Boessenkool, (Sat May 24, 4:06 pm)
Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the ..., Segher Boessenkool, (Sat May 24, 4:14 pm)
Re: [RFC PATCH 1/2] mmc_spi: export probe and remove functions, Anton Vorontsov, (Mon Jun 2, 5:53 am)