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


Groups > linux.kernel > #1415926

Re: [PATCH v3 06/12] power: pwrseq: simple: Add support for regulator and generic property

From Krzysztof Kozlowski <k.kozlowski@samsung.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 06/12] power: pwrseq: simple: Add support for regulator and generic property
Date 2016-06-07 11:30 +0200
Message-ID <rHluH-Te-39@gated-at.bofh.it> (permalink)
References <rF9nX-5Ug-7@gated-at.bofh.it> <rF9xD-5Xn-3@gated-at.bofh.it> <rFMIG-5xl-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 06/03/2016 04:02 AM, Rob Herring wrote:
>>  Optional properties:
>>  - reset-gpios : contains a list of GPIO specifiers. The reset GPIOs are asserted
>> @@ -16,6 +22,7 @@ Optional properties:
>>    See ../clocks/clock-bindings.txt for details.
>>  - clock-names : Must include the following entry:
>>    "ext_clock" (External clock provided to the card).
>> +- ext-supply : External regulator supply
> 
> What happens when there are 2 supplies?
> 
> I'd prefer the name not be genericish and use the real supply names. 
> Then the power seq code should just turn on all supplies it finds. If 
> the order or timing to turn on matters, then sorry, no generic sequence.

I think the generic part for regulators might be a problem. Regulator
API requires a name for the supply... it cannot get "something" or
"everything".

The driver could attach itself to any kind of node (where power-sequence
property exists) so the supply name depends on the bindings of device
(not bindings of power sequence driver).

The power sequence driver could however iterate over child properties
and get the names of all supplies. It is a little bit ugly...

Best regards,
Krzysztof

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


Thread

[PATCH v3 00/12] usb/mmc/power: Generic power sequence (and fix  USB/LAN when TFTP booting) Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-01 10:10 +0200
  [PATCH v3 02/12] MAINTAINERS: Retain Ulf Hansson as the same  maintainer of pwrseq Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-01 10:20 +0200
  [PATCH v3 06/12] power: pwrseq: simple: Add support for regulator and  generic property Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-01 10:20 +0200
    Re: [PATCH v3 06/12] power: pwrseq: simple: Add support for  regulator and generic property Rob Herring <robh@kernel.org> - 2016-06-03 04:10 +0200
      Re: [PATCH v3 06/12] power: pwrseq: simple: Add support for regulator  and generic property Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-03 14:40 +0200
        Re: [PATCH v3 06/12] power: pwrseq: simple: Add support for  regulator and generic property Peter Chen <hzpeterchen@gmail.com> - 2016-06-06 05:30 +0200
      Re: [PATCH v3 06/12] power: pwrseq: simple: Add support for regulator  and generic property Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-07 11:30 +0200
        Re: [PATCH v3 06/12] power: pwrseq: simple: Add support for  regulator and generic property Rob Herring <robh@kernel.org> - 2016-06-08 21:10 +0200
          Re: [PATCH v3 06/12] power: pwrseq: simple: Add support for regulator  and generic property Chen-Yu Tsai <wens@csie.org> - 2016-06-09 04:40 +0200
            Re: [PATCH v3 06/12] power: pwrseq: simple: Add support for regulator  and generic property Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-09 07:20 +0200
  [PATCH v3 10/12] EXAMPLE CODE: usb: hub: Power sequence the ports on  activation Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-01 10:20 +0200
  [PATCH v3 04/12] power: pwrseq: Remove mmc prefix from mmc_pwrseq Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-01 10:20 +0200
  [PATCH v3 03/12] power: pwrseq: Enable COMPILE_TEST for drivers Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-01 10:20 +0200
  Re: [PATCH v3 00/12] usb/mmc/power: Generic power sequence (and fix USB/LAN when TFTP booting) Heiko Stübner <heiko@sntech.de> - 2016-06-06 22:50 +0200
    Re: [PATCH v3 00/12] usb/mmc/power: Generic power sequence (and fix  USB/LAN when TFTP booting) Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-07 08:10 +0200

csiph-web