Date:2012-06-03 13:07:19 (8 years 5 months ago)
Author:Paul Cercueil
Commit:f8afdf18bc8ad142376a23b05e4e32b62cfeb090
Message:MMC: JZ4740: Fix handling of read errors.

For no reason, the code handling write errors was implemented while
the code handling read errors was missing.
Files: drivers/mmc/host/jz4740_mmc.c (1 diff)

Change Details

drivers/mmc/host/jz4740_mmc.c
232232            host->req->cmd->error = -EIO;
233233            data->error = -EIO;
234234        }
235    } else if (status & JZ_MMC_STATUS_READ_ERROR_MASK) {
236        if (status & (JZ_MMC_STATUS_TIMEOUT_READ)) {
237            host->req->cmd->error = -ETIMEDOUT;
238            data->error = -ETIMEDOUT;
239        } else {
240            host->req->cmd->error = -EIO;
241            data->error = -EIO;
242        }
235243    }
236244}
237245

Archive Download the corresponding diff file



interactive