mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
fix bug:It did not respond with the removal of card at the first time if you reboot device with card present.
This commit is contained in:
@@ -3046,7 +3046,14 @@ static int rk29_sdmmc_probe(struct platform_device *pdev)
|
||||
|
||||
if(RK29_CTRL_SDMMC_ID== host->pdev->id)
|
||||
{
|
||||
clear_bit(RK29_SDMMC_CARD_PRESENT, &host->flags);
|
||||
if(rk29_sdmmc_get_cd(host->mmc))
|
||||
{
|
||||
set_bit(RK29_SDMMC_CARD_PRESENT, &host->flags);
|
||||
}
|
||||
else
|
||||
{
|
||||
clear_bit(RK29_SDMMC_CARD_PRESENT, &host->flags);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user