Files
kernel_arpi/include/linux
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
..
2008-06-19 10:42:17 +10:00
2008-06-19 10:42:17 +10:00
2008-07-03 13:21:14 +02:00
2008-06-06 11:29:10 -07:00
2008-07-04 09:52:13 +02:00
2008-07-04 10:40:05 -07:00
2008-07-04 10:40:09 -07:00
2008-07-08 17:55:41 +02:00
2008-07-14 15:29:34 -06:00
2008-07-11 15:49:21 +02:00
2008-07-01 22:38:18 +02:00
2008-06-30 09:25:12 -04:00
2008-06-11 19:13:46 -04:00
2008-07-10 08:17:14 +02:00
2008-07-04 10:40:05 -07:00
2008-07-08 12:48:27 +02:00
2008-06-06 11:29:12 -07:00
2008-06-16 11:21:27 +02:00
2008-06-12 10:12:42 +02:00
2008-07-04 10:40:07 -07:00
2008-07-04 10:40:04 -07:00
2008-07-04 10:40:04 -07:00
2008-06-20 14:05:53 -06:00
2008-06-12 10:48:00 +02:00
2008-05-29 14:46:30 +02:00