MMC core:
- Fix block status codes MMC host: - sdhci-xenon: Fix SD bus voltage select -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJZqUGTAAoJEP4mhCVzWIwpcI8P/idJgq9fZzCrxboXlzvQbIX3 RuOM6xDAALLI1ovGJen93kA4WG8cFDKufs9e8mDWHWduFCU+Zpbnm7ZKwuwu4dvj 4NuQQXOtKA4CTn6VH4vMlIMmL+nNakwYypHkj/uiWNX96P/3dzplcG8+uZOkEgdV 9NJk1df5qmRAaolXP57X6uDdlA8hHrau4w11Ge2ezViYee5tuYfyrFoaFeq1bcdV oe90uHOBbyz5+91QS8hOKWBpoEoL2GmxEoo43xVWMUCyLRsSWZL5J+EAHUQuleH+ PX4iLVUqDwb2D5nR14VeLdfngB9sDKljhPt7YML7GO+mmXkji9g/aA7DrcAjBhhY 5XuTkNONcbOCpFiyTI8SffOG+Pl48rEtPvYdZ9xyt4P1tgX8bPfTR3mzfSwrq/f1 o+/77LX4ob1Q9OzpCnNOmvqcwzOePjy8N7zGBO0H901wk8jI70hgQ7LbahkDrgHn bwAS3iyyw8nOQM7WLxelmVacjqnoqNqoQnd8Qqaw0RI9rPEaQx2UeKQ+GPFVF08q WCLsXjwS+mgsoWIwH9+05SnV0znYqyPlFXthiZipUSJ1kTYaAJb6wo0vqDkjPHDY p0DRaXIaytwhTOb3rpJ6QT1MTyaJmsM74iJ+lxb+BBjUNAtr1IaBeXZ4QJRHjtpH HEGexceLQDBvQPb7w/zx =ZvUz -----END PGP SIGNATURE----- Merge tag 'mmc-v4.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc Pull two more MMC fixes from Ulf Hansson: "MMC core: - Fix block status codes MMC host: - sdhci-xenon: Fix SD bus voltage select" * tag 'mmc-v4.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: mmc: sdhci-xenon: add set_power callback mmc: block: Fix block status codes
This commit is contained in:
Коммит
d7e44b86a6
|
@ -1213,7 +1213,7 @@ static void mmc_blk_issue_drv_op(struct mmc_queue *mq, struct request *req)
|
|||
break;
|
||||
}
|
||||
mq_rq->drv_op_result = ret;
|
||||
blk_end_request_all(req, ret);
|
||||
blk_end_request_all(req, ret ? BLK_STS_IOERR : BLK_STS_OK);
|
||||
}
|
||||
|
||||
static void mmc_blk_issue_discard_rq(struct mmc_queue *mq, struct request *req)
|
||||
|
@ -1718,9 +1718,9 @@ static bool mmc_blk_rw_cmd_err(struct mmc_blk_data *md, struct mmc_card *card,
|
|||
if (err)
|
||||
req_pending = old_req_pending;
|
||||
else
|
||||
req_pending = blk_end_request(req, 0, blocks << 9);
|
||||
req_pending = blk_end_request(req, BLK_STS_OK, blocks << 9);
|
||||
} else {
|
||||
req_pending = blk_end_request(req, 0, brq->data.bytes_xfered);
|
||||
req_pending = blk_end_request(req, BLK_STS_OK, brq->data.bytes_xfered);
|
||||
}
|
||||
return req_pending;
|
||||
}
|
||||
|
|
|
@ -210,8 +210,27 @@ static void xenon_set_uhs_signaling(struct sdhci_host *host,
|
|||
sdhci_writew(host, ctrl_2, SDHCI_HOST_CONTROL2);
|
||||
}
|
||||
|
||||
static void xenon_set_power(struct sdhci_host *host, unsigned char mode,
|
||||
unsigned short vdd)
|
||||
{
|
||||
struct mmc_host *mmc = host->mmc;
|
||||
u8 pwr = host->pwr;
|
||||
|
||||
sdhci_set_power_noreg(host, mode, vdd);
|
||||
|
||||
if (host->pwr == pwr)
|
||||
return;
|
||||
|
||||
if (host->pwr == 0)
|
||||
vdd = 0;
|
||||
|
||||
if (!IS_ERR(mmc->supply.vmmc))
|
||||
mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
|
||||
}
|
||||
|
||||
static const struct sdhci_ops sdhci_xenon_ops = {
|
||||
.set_clock = sdhci_set_clock,
|
||||
.set_power = xenon_set_power,
|
||||
.set_bus_width = sdhci_set_bus_width,
|
||||
.reset = xenon_reset,
|
||||
.set_uhs_signaling = xenon_set_uhs_signaling,
|
||||
|
|
Загрузка…
Ссылка в новой задаче