Pierre Ossman wrote: > On Wed, 14 Oct 2009 09:56:28 +0200 > Ohad Ben-Cohen <ohad@xxxxxxxxxx> wrote: > >> On Tue, Oct 13, 2009 at 4:39 AM, Philip Langdale <philipl@xxxxxxxxx> wrote: >>> Interesting. But that means that Ohad's patch doesn't make much sense; >>> his uses the MMC low voltage OCR bit in an SDIO context. So either, the >>> patch is wrong, or he's dealing with out-of-spec hardware. >> Yes, the hardware is out-of-spec. It uses the undefined low voltage >> OCR bit to achieve 1.8V SDIO voltage. By removing the MMC_VDD_165_195 >> restriction, commit 27cce39f555def6f5ebe7f03d69ccc44ab25f0b2 makes it >> possible for the hardware to work with unpatched kernels. >> >> Philip, David, Pierre - would you like to remove the MMC_VDD_165_195 >> restriction differently ? maybe to revive the MMC_CAP_VDD_165_195 host >> capability patch in some way (see >> http://www.mail-archive.com/linux-mmc@xxxxxxxxxxxxxxx/msg00386.html) ? >> > > Since this is out-of-spec and therefore possibly dangerous behaviour, > I'd like it to be opt-in for the user. And since it's so early in the > init process, we can't automate it based on card id. It can be done per-card, the switch to the lower voltage just needs to be deferred. Initially set the voltage to a standard one that's supported by the card and host. After the card is fully initialized and enumerated, have a hook for per-card fixups. For the particular non-standard card in question, this would then reduce the voltage to 1.8V. Alternatively, if this is for a chip hardwired to the controller then some board-specific data for the SD controller can be used to always set the voltage correctly. e.g., always run at 1.8V regardless of what the stack says. Obviously, this strategy won't work with removable cards. David -- David Vrabel, Senior Software Engineer, Drivers CSR, Churchill House, Cambridge Business Park, Tel: +44 (0)1223 692562 Cowley Road, Cambridge, CB4 0WZ http://www.csr.com/ Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom -- 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