linux/drivers/mmc/host
Anton Vorontsov 08f80bb519 mmc: change .get_ro() callback semantics
Now get_ro() callback must return 0/1 values for its logical states, and
negative errno values in case of error. If particular host instance doesn't
support RO/WP switch, it should return -ENOSYS.

This patch changes some hosts in two ways:

1. Now functions should be smart to not return negative values in
   "RO asserted" case (particularly gpio_ calls could return negative
   values for the outermost GPIOs).

   Also, board code usually passes get_ro() callbacks that directly return
   gpioreg & bit result, so at91_mci, imxmmc, pxamci and mmc_spi's get_ro()
   handlers need take special care when returning platform's values to the
   mmc core.

2. In case of host instance didn't implement get_ro() callback, it should
   really return -ENOSYS and let the mmc core decide what to do about it
   (mmc core thinks the same way as the hosts, so it isn't functional
   change).

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
2008-07-15 14:14:41 +02:00
..
at91_mci.c mmc: change .get_ro() callback semantics 2008-07-15 14:14:41 +02:00
au1xmmc.c mmc: fix platform driver hotplug/coldplug 2008-04-15 19:35:40 -07:00
au1xmmc.h mmc: Move host and card drivers to subdirs 2007-05-01 13:04:17 +02:00
imxmmc.c mmc: change .get_ro() callback semantics 2008-07-15 14:14:41 +02:00
imxmmc.h mmc: Move host and card drivers to subdirs 2007-05-01 13:04:17 +02:00
Kconfig sdhci: move pci stuff to separate module 2008-07-15 14:14:39 +02:00
Makefile sdhci: move pci stuff to separate module 2008-07-15 14:14:39 +02:00
mmc_spi.c mmc: change .get_ro() callback semantics 2008-07-15 14:14:41 +02:00
mmci.c [ARM] 5024/1: Fix some minor clk issues in the MMCI PL18x driver 2008-05-04 11:06:05 +01:00
mmci.h mmc: fix sg->page fallout 2007-10-23 20:37:24 +02:00
omap.c mmc: Fix omap compile by replacing dev_name with dma_dev_name 2008-05-14 21:00:53 +02:00
pxamci.c mmc: change .get_ro() callback semantics 2008-07-15 14:14:41 +02:00
pxamci.h [ARM] pxa: mmc: add 1st host controller support for pxa3xx 2008-01-26 15:07:53 +00:00
ricoh_mmc.c mmc: extend ricoh_mmc to support Ricoh RL5c476 2008-02-08 09:02:47 +01:00
sdhci-pci.c sdhci-pci: unaligned data with ricoh controllers 2008-07-15 14:14:40 +02:00
sdhci.c sdhci: handle hot-remove 2008-07-15 14:14:40 +02:00
sdhci.h sdhci: handle hot-remove 2008-07-15 14:14:40 +02:00
tifm_sd.c tifm_sd: DATA_CARRY is not boolean in tifm_sd_transfer_data() 2008-03-15 09:24:21 -07:00
wbsd.c mmc: change .get_ro() callback semantics 2008-07-15 14:14:41 +02:00
wbsd.h mmc: update header file paths 2007-07-26 01:53:31 +02:00