On Thu, Jun 23, 2011 at 10:29 PM, Daniel Drake <dsd@xxxxxxxxxx> wrote: > On 19 June 2011 14:10, zhangfei gao <zhangfei.gao@xxxxxxxxx> wrote: >> How do you power off 8686 now? >> Use RESETn, PDn, or directly control regulator? >> Assume RESETn is kept high as Ohad mentioned before, do you control PDn? > > We use mmc_power_off(), which calls mmc_set_ios() which is implemented by sdhci. > > We don't make any effort to control the specific pins, we just rely on > what sdhci does for us, which presumably is a standard way of removing > power from SD cards. > > Thanks, > Daniel Thanks Daniel, But mmc_set_ios does not mean can't access PDn pin. At least, in drivers/mmc/host/omap.c, set_ios->set_power->pdata->set_power. Whatever, if directly controller regulator, the time is required for voltage go to certain level. /Zhangfei -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html