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:
parent
869dc35888
commit
47e2d9f6e5
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue