History

Merge tag 'mmc-v4.19-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc

Ulf writes: "MMC core: - Avoid fragile multiblock reads for the last sector in SPI mode WIFI/SDIO: - libertas: Fixup suspend sequence for the SDIO card" * tag 'mmc-v4.19-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: libertas: call into generic suspend code before turning off power mmc: block: avoid multiblock reads for the last sector in SPI mode

Greg Kroah-Hartman committed 8 years ago

Commit 4ea07ab2 parents 60bd7be 4f666672 files · +14 −0Browse files

Unified · Split

2 files
  1. drivers/mmc/core/block.c +10 −0
  2. drivers/net/wireless/marvell/libertas/if_sdio.c +4 −0
drivers/mmc/core/block.c+10−0
@@ -1370,6 +1370,16 @@ static void mmc_blk_data_prep(struct mmc_queue *mq, struct mmc_queue_req *mqrq, · 1369 unmodified lines
1370 brq->data.blocks = card->host->max_blk_count;1370 brq->data.blocks = card->host->max_blk_count;
1371 1371
1372 if (brq->data.blocks > 1) {1372 if (brq->data.blocks > 1) {
1373 /*
1374 * Some SD cards in SPI mode return a CRC error or even lock up
1375 * completely when trying to read the last block using a
1376 * multiblock read command.
1377 */
1378 if (mmc_host_is_spi(card->host) && (rq_data_dir(req) == READ) &&
1379 (blk_rq_pos(req) + blk_rq_sectors(req) ==
1380 get_capacity(md->disk)))
1381 brq->data.blocks--;
1382
1373 /*1383 /*
1374 * After a read error, we redo the request one sector1384 * After a read error, we redo the request one sector
1375 * at a time in order to accurately determine which1385 * at a time in order to accurately determine which
drivers/net/wireless/marvell/libertas/if_sdio.c+4−0
@@ -1317,6 +1317,10 @@ static int if_sdio_suspend(struct device *dev) · 1316 unmodified lines
1317 if (priv->wol_criteria == EHS_REMOVE_WAKEUP) {1317 if (priv->wol_criteria == EHS_REMOVE_WAKEUP) {
1318 dev_info(dev, "Suspend without wake params -- powering down card\n");1318 dev_info(dev, "Suspend without wake params -- powering down card\n");
1319 if (priv->fw_ready) {1319 if (priv->fw_ready) {
1320 ret = lbs_suspend(priv);
1321 if (ret)
1322 return ret;
1323
1320 priv->power_up_on_resume = true;1324 priv->power_up_on_resume = true;
1321 if_sdio_power_off(card);1325 if_sdio_power_off(card);
1322 }1326 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t