9
0
Fork 0

MCI/MXS: report a better matching error code when the transfer fails

EIO is a better error message to describe the data transfer to or from the SD cards has failed.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Juergen Beisert 2013-04-26 11:31:51 +02:00 committed by Sascha Hauer
parent 869dc35888
commit 47e2d9f6e5
1 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ static int mxs_mci_read_data(struct mxs_mci_host *mxs_mci, void *buffer, unsigne
if (length == 0)
return 0;
return -EINVAL;
return -EIO;
}
@ -222,7 +222,7 @@ static int mxs_mci_write_data(struct mxs_mci_host *mxs_mci, const void *buffer,
if (length == 0)
return 0;
return -EINVAL;
return -EIO;
}
/**