Re: [PATCH 5/6] atmel-mci: Power control option for each MMC Slot

From: Marc Pignat
Date: Wed Jun 17 2009 - 04:29:10 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/