-Added support to parse the broken-cd property
using sdhci_tegra_dt_parse_pdata function.
-Removed the mmc_of_parse function call from probe,
which was added as a part of Bug
1765751
Bug
200224838
Change-Id: I30a875ecb0b0802e40215893d12bbebdb6797733
Signed-off-by: Anubhav Jain <anubhavj@nvidia.com>
Reviewed-on: http://git-master/r/
1196753
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
struct platform_device *pdev)
{
int val;
- int ret;
+ int ret, len;
struct tegra_sdhci_platform_data *plat;
struct device_node *np = pdev->dev.of_node;
+ struct sdhci_host *host = platform_get_drvdata(pdev);
u32 bus_width;
int i;
char label[12];
plat->bcm_sdio_suppress_kso_dump =
of_property_read_bool(np, "nvidia,bcm-sdio-suppress-kso-dump");
+ if (of_find_property(np, "broken-cd", &len))
+ host->mmc->caps |= MMC_CAP_NEEDS_POLL;
return plat;
}
tegra_host->dbg_cfg.clk_ungated =
plat->disable_clock_gate;
#endif
- mmc_of_parse(host->mmc);
return 0;
err_cd_irq_req: