[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200906171008.58382.marc.pignat@hevs.ch>
Date: Wed, 17 Jun 2009 10:08:57 +0200
From: Marc Pignat <marc.pignat@...s.ch>
To: linux-arm-kernel@...ts.arm.linux.org.uk
Cc: Rob Emanuele <rob@...nuele.us>, nicolas.ferre@...el.com,
haavard.skinnemoen@...el.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/6] atmel-mci: Power control option for each MMC Slot
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists