lkml.org 
[lkml]   [2009]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 5/6] atmel-mci: Power control option for each MMC Slot
Date
Hi!

On Wednesday 17 June 2009 02:54:38 Rob Emanuele wrote:
> Add support to the atmel-mci driver for a VCC pin in order to conserve power by removing power from an MMC Slot.
...

> @@ -1544,6 +1544,13 @@ static int __init atmci_init_slot(struct atmel_mci *host,
> }
> }
>
> + if (gpio_is_valid(slot->vcc_pin)) {
> + if (gpio_request(slot->vcc_pin, "mmc_pow")) {

gpio_request will check for "gpio_is_valid" so this is not necessary.

> + dev_dbg(&mmc->class_dev, "no power pin available\n");
> + slot->vcc_pin = -EBUSY;
> + }
> + }
> +
...

Best regards

Marc


\
 
 \ /
  Last update: 2009-06-17 10:31    [from the cache]
©2003-2011 Jasper Spaans