Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 470718bf authored by Venkat Gopalakrishnan's avatar Venkat Gopalakrishnan Committed by Gerrit - the friendly Code Review server
Browse files

mmc: sdhci_msm: keep a reference to the sdhc host instance



Keep a reference to the sdhc host instance to retrieve all the
necessary data structures in case of a crash for debugging.

Change-Id: Ic8d696d53cf48290dbcc92f1567650989dd45755
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent 85125f66
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -207,6 +207,9 @@ static const u32 tuning_block_128[] = {
	0xFFFFBBBB, 0xFFFF77FF, 0xFF7777FF, 0xEEDDBB77
};

/* global to hold each slot instance for debug */
static struct sdhci_msm_host *sdhci_slot[2];

static int disable_slots;
/* root can write, others read */
module_param(disable_slots, int, S_IRUGO|S_IWUSR);
@@ -3823,6 +3826,9 @@ static int sdhci_msm_probe(struct platform_device *pdev)
			goto pltfm_free;
		}

		if (ret <= 2)
			sdhci_slot[ret-1] = msm_host;

		msm_host->pdata = sdhci_msm_populate_pdata(&pdev->dev,
							   msm_host);
		if (!msm_host->pdata) {