mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
MMC: AU1xMMC: Allow platforms to disable host capabilities
Although the hardware supports a 4/8bit SD interface and the driver unconditionally advertises all hardware caps to the MMC core, not all datalines may actually be wired up. This patch introduces another field to au1xmmc platform data allowing platforms to disable certain advanced host controller features. Signed-off-by: Manuel Lauss <[email protected]> To: [email protected] CC: Linux-MIPS <[email protected]> Patchwork: http://patchwork.linux-mips.org/patch/460/ Signed-off-by: Ralf Baechle <[email protected]>
This commit is contained in:
parent
92bbe1b988
commit
3b839070f1
2 changed files with 5 additions and 0 deletions
|
|
@ -1017,6 +1017,10 @@ static int __devinit au1xmmc_probe(struct platform_device *pdev)
|
|||
} else
|
||||
mmc->caps |= MMC_CAP_NEEDS_POLL;
|
||||
|
||||
/* platform may not be able to use all advertised caps */
|
||||
if (host->platdata)
|
||||
mmc->caps &= ~(host->platdata->mask_host_caps);
|
||||
|
||||
tasklet_init(&host->data_task, au1xmmc_tasklet_data,
|
||||
(unsigned long)host);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue