aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2007-07-22 16:18:46 -0400
committerPierre Ossman <drzeus@drzeus.cx>2007-09-23 02:46:48 -0400
commit17b0429dde9ab60f9cee8e07ab28c7dc6cfe6efd (patch)
tree9f87df1ffbeca4c6f828b7979f2e45ef898a3ef0 /include/linux/mmc
parentb7e113dc9d52c4a37d2da6fafe77959f3a28eccf (diff)
mmc: remove custom error codes
Convert the MMC layer to use standard error codes and not its own, incompatible values. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/core.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h
index 63a80ea61124..a2b79518f051 100644
--- a/include/linux/mmc/core.h
+++ b/include/linux/mmc/core.h
@@ -54,12 +54,19 @@ struct mmc_command {
54 unsigned int retries; /* max number of retries */ 54 unsigned int retries; /* max number of retries */
55 unsigned int error; /* command error */ 55 unsigned int error; /* command error */
56 56
57#define MMC_ERR_NONE 0 57/*
58#define MMC_ERR_TIMEOUT 1 58 * Standard errno values are used for errors, but some have specific
59#define MMC_ERR_BADCRC 2 59 * meaning in the MMC layer:
60#define MMC_ERR_FIFO 3 60 *
61#define MMC_ERR_FAILED 4 61 * ETIMEDOUT Card took too long to respond
62#define MMC_ERR_INVALID 5 62 * EILSEQ Basic format problem with the received or sent data
63 * (e.g. CRC check failed, incorrect opcode in response
64 * or bad end bit)
65 * EINVAL Request cannot be performed because of restrictions
66 * in hardware and/or the driver
67 * ENOMEDIUM Host can determine that the slot is empty and is
68 * actively failing requests
69 */
63 70
64 struct mmc_data *data; /* data segment associated with cmd */ 71 struct mmc_data *data; /* data segment associated with cmd */
65 struct mmc_request *mrq; /* associated request */ 72 struct mmc_request *mrq; /* associated request */