mmc: Merge branch fixes into next
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2023 23:19:41 +0000 (00:19 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2023 23:19:41 +0000 (00:19 +0100)
Merge the mmc fixes for v6.2-rc[n] into the next branch, to allow them to
get tested together with the new mmc changes that are targeted for v6.3.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1  2 
drivers/mmc/host/meson-gx-mmc.c

@@@ -1195,20 -1198,32 +1198,25 @@@ static int meson_mmc_probe(struct platf
        host->vqmmc_enabled = false;
        ret = mmc_regulator_get_supply(mmc);
        if (ret)
 -              goto free_host;
 +              return ret;
  
        ret = mmc_of_parse(mmc);
 -      if (ret) {
 -              if (ret != -EPROBE_DEFER)
 -                      dev_warn(&pdev->dev, "error parsing DT: %d\n", ret);
 -              goto free_host;
 -      }
 +      if (ret)
 +              return dev_err_probe(&pdev->dev, ret, "error parsing DT\n");
  
+       mmc->caps |= MMC_CAP_CMD23;
+       if (mmc->caps & MMC_CAP_SDIO_IRQ)
+               mmc->caps2 |= MMC_CAP2_SDIO_IRQ_NOTHREAD;
        host->data = (struct meson_mmc_data *)
                of_device_get_match_data(&pdev->dev);
 -      if (!host->data) {
 -              ret = -EINVAL;
 -              goto free_host;
 -      }
 +      if (!host->data)
 +              return -EINVAL;
  
        ret = device_reset_optional(&pdev->dev);
 -      if (ret) {
 -              dev_err_probe(&pdev->dev, ret, "device reset failed\n");
 -              goto free_host;
 -      }
 +      if (ret)
 +              return dev_err_probe(&pdev->dev, ret, "device reset failed\n");
  
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        host->regs = devm_ioremap_resource(&pdev->dev, res);