mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixed the sdc linux bug which preventing loading the driver. The irq lock was not correctly initalized.
This commit is contained in:
parent
c60d56a1a5
commit
d73e3cccb2
@ -272,6 +272,8 @@ static void sdc_reset(struct mmc_host * mmc) {
|
|||||||
struct sdc_host * host = mmc_priv(mmc);
|
struct sdc_host * host = mmc_priv(mmc);
|
||||||
uint32_t card_detect = 0;
|
uint32_t card_detect = 0;
|
||||||
|
|
||||||
|
spin_lock_init(&host->lock);
|
||||||
|
|
||||||
spin_lock_irq(&host->lock);
|
spin_lock_irq(&host->lock);
|
||||||
|
|
||||||
sdc_set_clock(host, 400000);
|
sdc_set_clock(host, 400000);
|
||||||
@ -462,7 +464,7 @@ static int axi_sdc_probe(struct platform_device * pdev) {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
spin_lock_init(&host->lock);
|
//spin_lock_init(&host->lock);
|
||||||
|
|
||||||
platform_set_drvdata(pdev, host);
|
platform_set_drvdata(pdev, host);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user