Re: [PATCH] sdio: fix runtime PM anomalies by introducing MMC_CAP_POWER_OFF_CARD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ohad,

On Fri, Nov 19, 2010 at 09:29:09AM +0200, Ohad Ben-Cohen wrote:
> Some board/card/host configurations are not capable of powering off the
> card after boot.
> 
> To support such configurations, and to allow smoother transition to
> runtime PM behavior, MMC_CAP_POWER_OFF_CARD is added, so hosts need to
> explicitly indicate whether it's OK to power off their cards after boot.
> 
> SDIO core will enable runtime PM for a card only if that cap is set.
> As a result, the card will be powered down after boot, and will only
> be powered up again when a driver is loaded (and then it's up to the
> driver to decide whether power will be kept or not).
> 
> This will prevent sdio_bus_probe() failures with setups that do not
> support powering off the card.
> 
> Reported-and-tested-by: Daniel Drake <dsd@xxxxxxxxxx>
> Reported-and-tested-by: Arnd Hannemann <arnd@xxxxxxxxxx>
> Signed-off-by: Ohad Ben-Cohen <ohad@xxxxxxxxxx>

Thanks for doing this.  Pushed to for-linus/mmc-next for 2.6.37; I'll
send a pull request once we have the fix for the 8-bit MMC regression
lined up too.

-- 
Chris Ball   <cjb@xxxxxxxxxx>   <http://printf.net/>
One Laptop Per Child
--
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


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux