From: Daniel Ribeiro <drwyrm@gmail.com>
To: Tony Lindgren <tony@atomide.com>
Cc: linux-arm-kernel@lists.arm.linux.org.uk,
David Brownell <dbrownell@users.sourceforge.net>,
linux-omap@vger.kernel.org, Pierre Ossman <drzeus-list@drzeus.cx>
Subject: Re: [PATCH 1/8] ARM: OMAP3: mmc-twl4030 uses regulator framework
Date: Mon, 25 May 2009 19:47:30 -0300 [thread overview]
Message-ID: <1243291650.10927.15.camel@brutus> (raw)
In-Reply-To: <20090525174821.19679.1412.stgit@localhost>
Em Seg, 2009-05-25 às 10:48 -0700, Tony Lindgren escreveu:
> + /* UGLY HACK: workaround regulator framework bugs.
> + * When the bootloader leaves a supply active, it's
> + * initialized with zero usecount ... and we can't
> + * disable it without first disabling it. Until the
> + * framework is fixed, we need a workaround like this
> + * (which is safe for MMC, but not in general).
> + */
> + if (regulator_is_enabled(hsmmc[i].vcc) > 0) {
> + regulator_enable(hsmmc[i].vcc);
> + regulator_disable(hsmmc[i].vcc);
> + }
> + if (hsmmc[i].vcc_aux) {
> + if (regulator_is_enabled(reg) > 0) {
> + regulator_enable(reg);
> + regulator_disable(reg);
> + }
> + }
> +
This hack would look less ugly on twl4030reg_probe(). There you can
disable the regulator without first enabling it.
(btw, there is a typo in the comment: "disable it without first
disabling it").
--
Daniel Ribeiro
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-05-25 22:47 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-25 17:46 [PATCH 0/8] omap3 board updates for merge window after 2.6.30 Tony Lindgren
2009-05-25 17:48 ` [PATCH 1/8] ARM: OMAP3: mmc-twl4030 uses regulator framework Tony Lindgren
2009-05-25 22:47 ` Daniel Ribeiro [this message]
2009-05-26 12:59 ` Mark Brown
2009-05-27 16:55 ` [PATCH 1/8] ARM: OMAP3: mmc-twl4030 uses regulator framework, v2 Tony Lindgren
2009-05-25 17:49 ` [PATCH 2/8] ARM: OMAP3: Initialize regulators for Beagle and Overo Tony Lindgren
2009-05-28 16:20 ` Russell King - ARM Linux
2009-05-28 17:33 ` Tony Lindgren
2009-05-28 18:00 ` Mark Brown
2009-05-28 19:48 ` Russell King - ARM Linux
2009-05-29 10:05 ` Mark Brown
2009-05-25 17:51 ` [PATCH 3/8] ARM: OMAP3: pandora: setup regulator framework for MMC Tony Lindgren
2009-05-25 17:52 ` [PATCH 4/8] ARM: OMAP3: RX51: Connect VAUX3 to MMC2 Tony Lindgren
2009-05-25 17:53 ` [PATCH 5/8] ARM: OMAP3: Add support for OMAP3 Zoom2 board Tony Lindgren
2009-05-28 16:05 ` Russell King - ARM Linux
2009-05-28 21:13 ` [PATCH 5/8] ARM: OMAP3: Add support for OMAP3 Zoom2 board, v2 Tony Lindgren
2009-05-28 21:16 ` Russell King - ARM Linux
2009-05-28 21:39 ` Tony Lindgren
2009-05-25 17:55 ` [PATCH 6/8] ARM: OMAP3: Defconfig for Zoom2 board Tony Lindgren
2009-05-25 17:56 ` [PATCH 7/8] ARM: OMAP3: Add omap3 EVM support Tony Lindgren
2009-05-28 16:06 ` Russell King - ARM Linux
2009-05-28 21:14 ` [PATCH 7/8] ARM: OMAP3: Add omap3 EVM support, v2 Tony Lindgren
2009-05-25 17:57 ` [PATCH 8/8] ARM: OMAP3: Add omap3 EVM defconfig Tony Lindgren
2009-05-27 19:47 ` [PATCH] ARM: OMAP3: pandora: add support for mode devices Grazvydas Ignotas
2009-05-27 20:24 ` Tony Lindgren
2009-05-27 23:39 ` [PATCH 0/8] omap3 board updates for merge window after 2.6.30 Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1243291650.10927.15.camel@brutus \
--to=drwyrm@gmail.com \
--cc=dbrownell@users.sourceforge.net \
--cc=drzeus-list@drzeus.cx \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox