• Adrian Hunter's avatar
    omap_hsmmc: put MMC regulator to sleep · 623821f7
    Adrian Hunter authored
    When a card is not in use, the voltage regulator can be put to sleep.
    This is an alternative to powering the card off, when powering off is not
    safe because the card might be replaced without the driver being aware of
    it.
    
    That situation happens if:
    	- the card is removable i.e. not eMMC
    	- and there is no card detect
    	- and there is a cover switch but the cover is open
    Signed-off-by: default avatarAdrian Hunter <adrian.hunter@nokia.com>
    Acked-by: default avatarMatt Fleming <matt@console-pimps.org>
    Cc: Ian Molton <ian@mnementh.co.uk>
    Cc: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
    Cc: Jarkko Lavinen <jarkko.lavinen@nokia.com>
    Cc: Denis Karpov <ext-denis.2.karpov@nokia.com>
    Cc: Pierre Ossman <pierre@ossman.eu>
    Cc: Philip Langdale <philipl@overt.org>
    Cc: "Madhusudhan" <madhu.cr@ti.com>
    Cc: <linux-mmc@vger.kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    623821f7
omap_hsmmc.c 45.6 KB