sun60iw2: allow rfkill SDIO WiFi rescans

This commit is contained in:
Qubot 2026-06-06 22:22:50 +08:00
parent 68d509d476
commit ff205dd6b3

View File

@ -62,6 +62,13 @@ void sunxi_mmc_rescan_card(unsigned id)
return;
}
/*
* WiFi modules are described as non-removable SDIO devices, but their
* power can be controlled later by rfkill. If the first boot-time scan
* runs while the module is still off, MMC core marks the host as already
* scanned and ignores later rescans unless this flag is cleared.
*/
sunxi_hosts[id]->mmc->rescan_entered = 0;
mmc_detect_change(sunxi_hosts[id]->mmc, 0);
}
EXPORT_SYMBOL_GPL(sunxi_mmc_rescan_card);