Skip to content

RFC MMC SPI support for OpenFirmware platforms

Anton Vorontsov linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3powerpc: Add mmc-spi-slot bindingsDocumentation/powerpc/dts-bindings/mmc-spi-slot.txt drivers/of/base.c+24 -04 replies
2/3mmc: Add mmc_vddrange_to_ocrmask() helper functiondrivers/mmc/core/core.c include/linux/mmc/core.h+58 -05 replies
3/3mmc_spi: Add support for OpenFirmware bindingsdrivers/mmc/host/Makefile drivers/mmc/host/mmc_spi.c drivers/mmc/host/of_mmc_spi.c +1 more+161 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3 RFC] MMC SPI support for OpenFirmware platforms

Hi all,

Here are the bindings, again. Still RFC.

This patch series depends on:
http://lkml.org/lkml/2008/10/16/250
http://lkml.org/lkml/2008/10/24/416
+ of_gpio_flags enum (Trent Piepho will post an updated patch soon, I believe).

Pierre, the approach is somewhat similar to this one:
http://lkml.org/lkml/2008/5/26/135
Posted few months ago.

I know you don't like it, but I ask you to reconsider it. The I2C and SPI cases are similar, and recently we tried to write bindings for some I2C GPIO controllers.

There we've learned that we:

1. Don't like the bus notifiers approach b/c we can't place the OF code into the module.
http://lkml.org/lkml/2008/10/21/425
Hacks are possible, but they're are ugly.
2. Don't want to write new drivers to solely handle the platform data:
http://lkml.org/lkml/2008/10/28/257
http://lkml.org/lkml/2008/10/28/268

And personally I don't want to do refactoring for every driver that we'd want to use with the OpenFirmware...

If I understood correctly, for GPIO controllers David agreed that we can live with the platform data accessors, at least for now:
http://lkml.org/lkml/2008/10/23/24

And when/if we'll find something better I'll be the first who will offer help to convert the bindings code to this "something better".

Thanks,

Signature · 3 lines
Anton Vorontsov
email: [email protected]
irc://irc.freenode.net/bd2