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: Venkat Gopalakrishnan <venkatg@codeaurora.org>
This commit is contained in:
parent
38c20819fc
commit
4c7ffe38b3
1 changed files with 6 additions and 0 deletions
|
@ -212,6 +212,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);
|
||||
|
@ -3852,6 +3855,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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue