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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pierre Ossman <drzeus-mmc@...>
Cc: David Brownell <dbrownell@...>, Grant Likely <grant.likely@...>, Gary Jennejohn <garyj@...>, Guennadi Liakhovetski <g.liakhovetski@...>, <linuxppc-dev@...>, <linux-kernel@...>
Date: Monday, June 2, 2008 - 8: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, 2:27 pm)
Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the m..., Segher Boessenkool, (Sat May 24, 7:06 pm)
Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the m..., Jochen Friedrich, (Sat May 24, 10:32 am)
Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the m..., Segher Boessenkool, (Sat May 24, 7:14 pm)
Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the m..., Stephen Rothwell, (Fri May 23, 10:35 pm)
[RFC PATCH 1/2] mmc_spi: export probe and remove functions, Anton Vorontsov, (Fri May 23, 2:28 pm)
Re: [RFC PATCH 1/2] mmc_spi: export probe and remove functions, Anton Vorontsov, (Mon Jun 2, 8:53 am)