- Subject: Re: [PATCH v4] mmc: add a function to get regulators, supplying card's power
- From: Chris Ball <cjb@xxxxxxxxxx>
- Date: Wed, 13 Jun 2012 05:40:04 -0400
- Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxxxxxx>, "linux-mmc\@vger.kernel.org" <linux-mmc@xxxxxxxxxxxxxxx>, "linux-sh\@vger.kernel.org" <linux-sh@xxxxxxxxxxxxxxx>, Adrian Hunter <adrian.hunter@xxxxxxxxx>, Philip Rakity <prakity@xxxxxxxxxxx>, Ulf Hansson <ulf.hansson@xxxxxxxxxx>, Magnus Damm <magnus.damm@xxxxxxxxx>, Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- In-reply-to: <Pine.LNX.4.64.1206131024300.17854@axis700.grange> (Guennadi Liakhovetski's message of "Wed, 13 Jun 2012 10:28:22 +0200 (CEST)")
- References: <Pine.LNX.4.64.1206121743260.6800@axis700.grange> <4FD84DAA.30201@stericsson.com> <Pine.LNX.4.64.1206131024300.17854@axis700.grange>
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux)
Hi,
On Wed, Jun 13 2012, Guennadi Liakhovetski wrote:
>> > +struct mmc_supply {
>> > + struct regulator *vmmc; /* Card power supply */
>> > + struct regulator *vqmmc; /* Optional Vccq supply */
>> > +};
>>
>> I believe your intention is to provide this functionality for the host drivers
>> as the common way of handling card regulators. Then, I would suggest to
>> include these two new regulators in the mmc_host struct, instead of having
>> this in a separate struct, which then also needs to be handled by every host
>> driver.
>
> I have no strong preference about this. Having an additional struct is how
> I interpreted Mark's proposal:
>
> http://thread.gmane.org/gmane.linux.kernel.mmc/14624/focus=14876
>
> but I'm also fine with putting it in mmc_host. Chris, what's your
> preference?
I think Mark was just trying to help with your observation that the
changes are messy. I don't see any compelling reasons to avoid adding
these to mmc_host -- does anyone else feel strongly?
So, I'd say go ahead and post an updated patch that uses mmc_host,
and we can see if Mark has any thoughts.
Thanks,
- Chris.
--
Chris Ball <cjb@xxxxxxxxxx> <http://printf.net/>
One Laptop Per Child
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux OMAP]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]