All of lore.kernel.org
 help / color / mirror / Atom feed
From: ulf.hansson@linaro.org (Ulf Hansson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/2] ARM: vexpress: Enable regulator framework when MMCI is in use
Date: Tue, 19 Mar 2013 08:46:49 +0100	[thread overview]
Message-ID: <CAPDyKFpOSEERW5piVRh8b0Zx0Bj6KpXiXD8MHR8yvco9BMM6MA@mail.gmail.com> (raw)
In-Reply-To: <201303182140.23623.arnd@arndb.de>

On 18 March 2013 22:40, Arnd Bergmann <arnd@arndb.de> wrote:
> On Monday 18 March 2013, Russell King - ARM Linux wrote:
>> On Mon, Mar 18, 2013 at 06:16:57PM +0000, Pawel Moll wrote:
>> >
>> > Reverting it will not change anything as the driver had the same
>> > dependency before, just using :
>>
>> Umm.  If CONFIG_REGULATOR is not set with the patch reverted, the
>> regulator support is not used at all, and the ocrmask comes from
>> the platform data.
>
> I think the point is that case of DT booting, the platform data has
> a zero ocrmask, because Versatile Express has no auxdata to set
> a platform_data pointer for the mmci device, and the default allocated
> mmci device driver does not initialize the ocrmask unless the
> regulator API is used.
>
> This took me a while to figure out, the point being that this is not
> actually a regression, it never worked as far as I can tell.
>
> I don't think that selecting the regulator API is a good idea, for
> the reasons that you mentioned, and I still wouldn't take the
> patch. In theory we could do a workaround by adding a DT property
> to the mmci node that describes the fixed voltage supplied to the
> card if there are no regulators, but then again we already describe
> the voltage using the regulator binding and I would not want to
> duplicate that information.
>
> What I think we should have though is a better diagnostic here:
> If neither the platform data nor the DT contain a valid description
> of the voltage supplied to the card, the probe should fail saying
> that the information is missing, not that the card is incompatible.
>
>         Arnd

I agree Arnd.

If mmci during probe, don't get a regulator and don't have an OCR mask
from dt/platform data, probe should fail.

Kind regards
Ulf Hansson

  reply	other threads:[~2013-03-19  7:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-15 16:38 [PATCH 0/2] Versatile Express fixes Pawel Moll
2013-03-15 16:38 ` [PATCH 1/2] ARM: vexpress: Enable regulator framework when MMCI is in use Pawel Moll
2013-03-15 18:16   ` Russell King - ARM Linux
2013-03-18 18:00     ` [PATCH v2 " Pawel Moll
2013-03-18 18:03       ` Russell King - ARM Linux
2013-03-18 18:16         ` Pawel Moll
2013-03-18 18:54           ` Russell King - ARM Linux
2013-03-18 21:40             ` Arnd Bergmann
2013-03-19  7:46               ` Ulf Hansson [this message]
2013-03-15 16:39 ` [PATCH 2/2] ARM: vexpress: Remove A9 compatible value for V2P-CA5s PMU node Pawel Moll

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=CAPDyKFpOSEERW5piVRh8b0Zx0Bj6KpXiXD8MHR8yvco9BMM6MA@mail.gmail.com \
    --to=ulf.hansson@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.