Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1246499

Re: [PATCH RFC 1/2] dt-bindings: simplefb: Support a list of regulator supply properties

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH RFC 1/2] dt-bindings: simplefb: Support a list of regulator supply properties
Date 2015-10-14 12:40 +0200
Message-ID <qjrDs-4cL-15@gated-at.bofh.it> (permalink)
References <qiOLL-5l6-9@gated-at.bofh.it> <qiOLM-5l6-25@gated-at.bofh.it> <qiOVr-5wm-7@gated-at.bofh.it> <qiXvH-192-3@gated-at.bofh.it> <qj1SG-7Dx-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Oct 13, 2015 at 09:08:46AM +0200, Hans de Goede wrote:
> On 13-10-15 04:22, Chen-Yu Tsai wrote:
> >On Tue, Oct 13, 2015 at 1:10 AM, Mark Rutland <mark.rutland@arm.com> wrote:
> >>On Tue, Oct 13, 2015 at 01:04:17AM +0800, Chen-Yu Tsai wrote:

> >>>+- num-supplies : The number of regulators used by the framebuffer.
> >>>+- vinN-supply : The N-th (from 0) regulator used by the framebuffer.

> >>I don't see why you need num-supplies. Why not just try probing
> >>vin${N}-supply until such a property isn't present in the DT?

> +1 for this.

Even better would be to just enumerate all the properties on the node
and request anything with a FOO-supply name.  That way we can keep
using standard regulator bindings that name the supplies after their
actual names on the device.

> > That's doable. Though I'd add a hard limit on it. Does 16 seem
> > reasonable?

> I would not add a hard limit to the binding, you can use a fixed array in
> the code to make the code simpler. I would say 8 should be sufficient, since
> the limit will only be in the code we can always bump it when we need
> to.

Or just dynamically allocate the array and resize as needed if it starts
to get to be a problem.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH RFC 1/2] dt-bindings: simplefb: Support a list of regulator supply properties Chen-Yu Tsai <wens@csie.org> - 2015-10-12 19:10 +0200
  Re: [PATCH RFC 1/2] dt-bindings: simplefb: Support a list of  regulator supply properties Mark Rutland <mark.rutland@arm.com> - 2015-10-12 19:20 +0200
    Re: [PATCH RFC 1/2] dt-bindings: simplefb: Support a list of  regulator supply properties Chen-Yu Tsai <wens@csie.org> - 2015-10-13 04:30 +0200
      Re: [PATCH RFC 1/2] dt-bindings: simplefb: Support a list of  regulator supply properties Hans de Goede <hdegoede@redhat.com> - 2015-10-13 09:10 +0200
        Re: [PATCH RFC 1/2] dt-bindings: simplefb: Support a list of  regulator supply properties Mark Brown <broonie@kernel.org> - 2015-10-14 12:40 +0200

csiph-web