Skip to content

Commit b303c16

Browse files
committed
Merge branch 'fixes' into next
2 parents 9113207 + 202500d commit b303c16

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

drivers/mmc/core/block.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2484,8 +2484,8 @@ static int mmc_rpmb_chrdev_release(struct inode *inode, struct file *filp)
24842484
struct mmc_rpmb_data *rpmb = container_of(inode->i_cdev,
24852485
struct mmc_rpmb_data, chrdev);
24862486

2487-
put_device(&rpmb->dev);
24882487
mmc_blk_put(rpmb->md);
2488+
put_device(&rpmb->dev);
24892489

24902490
return 0;
24912491
}

drivers/mmc/host/sdhci.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4138,9 +4138,6 @@ int sdhci_setup_host(struct sdhci_host *host)
41384138
mmc_hostname(mmc), host->version);
41394139
}
41404140

4141-
if (host->quirks & SDHCI_QUIRK_BROKEN_CQE)
4142-
mmc->caps2 &= ~MMC_CAP2_CQE;
4143-
41444141
if (host->quirks & SDHCI_QUIRK_FORCE_DMA)
41454142
host->flags |= SDHCI_USE_SDMA;
41464143
else if (!(host->caps & SDHCI_CAN_DO_SDMA))
@@ -4669,6 +4666,12 @@ int __sdhci_add_host(struct sdhci_host *host)
46694666
struct mmc_host *mmc = host->mmc;
46704667
int ret;
46714668

4669+
if ((mmc->caps2 & MMC_CAP2_CQE) &&
4670+
(host->quirks & SDHCI_QUIRK_BROKEN_CQE)) {
4671+
mmc->caps2 &= ~MMC_CAP2_CQE;
4672+
mmc->cqe_ops = NULL;
4673+
}
4674+
46724675
host->complete_wq = alloc_workqueue("sdhci", flags, 0);
46734676
if (!host->complete_wq)
46744677
return -ENOMEM;

0 commit comments

Comments
 (0)