mmc select voltage functionality
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · On Thu, 22 Nov 2007 05:34:11 -0800 (PST) Madhusudhan C <[email protected]>…
Hi Pierre,
I have a question on the
mmc_select_voltagefn of the mmc core filedrivers/mmc/core/core.c.During the power up sequence the
mmc_power_upfn sets the OCR bit to setup 3V. Subsequentely themmc_select_voltagefn selects the lowest voltage
the card can support.Thehost->ios.power_modeis not changed toMMC_POWER_UPbefore callingmmc_set_iosfrom this function hence thepower_moderemains inMMC_POWER_ONstate.So my question is, how should the controller driver handle this change in volatge. Under which case of power mode should the controller driver change the voltage again when a dual voltage card is detected?
To be completely correct, the MMC layer should probably power down the card first, yes. Right now most drivers will handle all of these things as they see fit. Haven't seen a single bug report about it yet so...
Just change the voltage in whatever way makes sense for your controller.
Rgds
Signature · 5 lines
-- Pierre Ossman Linux kernel, MMC maintainer http://www.kernel.org PulseAudio, core developer http://pulseaudio.org rdesktop, core developer http://www.rdesktop.org