Messages in this thread |  | | | From | Marc Pignat <> | | Subject | Re: [PATCH 5/6] atmel-mci: Power control option for each MMC Slot | | Date | Wed, 17 Jun 2009 10:08:57 +0200 |
| |
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
|  |