Return-Path: Subject: Re: [PATCH] regulator: gpio: Reword the binding document References: <20190216174859.15738-1-marek.vasut@gmail.com> <83550921-b0ec-fa34-b120-2dd159f256d8@gmail.com> <75846117-242c-6861-ace5-dccf88711208@gmail.com> <7a993282-9137-caf4-ca0b-b2c01ea9959c@gmail.com> <72363317-8259-eda2-4cd8-4f336f0c155f@gmail.com> From: Marek Vasut Message-ID: Date: Sat, 2 Mar 2019 15:55:53 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit To: Harald Geyer Cc: devicetree@vger.kernel.org, Marek Vasut , Kuninori Morimoto , Linus Walleij , Mark Brown , Rob Herring , linux-renesas-soc@vger.kernel.org List-ID: On 2/19/19 11:10 AM, Harald Geyer wrote: > Marek Vasut writes: >> On 2/18/19 11:18 PM, Harald Geyer wrote: >>> From the explanations provided by Mark it is clear that this property >>> is an artifact of the implementation in linux. I think we should document >>> is as such. How about: >>> >>> gpios-states : On operating systems, that don't support reading back gpio >>> values in output mode (most notably linux), this array >>> provides the state of GPIO pins set when requesting them >>> from the gpio controller. >> >> That's good. >> >>> Systems, that are capable of >>> preserving state when requesting the lines, are free to >>> ignore this property. >> >> Are they ? > > I think so. Also this seems to be what Mark wrote yesterday: > > | With the GPIO API as it stands it is unfortunately not possible to > | preserve the state, if the API were fixed we'd preserve state. > >> I think there are systems which depend on preconfiguring the >> GPIO according to this property. > > These systems need to preconfigure the GPIOs in firmware anyway, so > they should be fine so long as the driver preserves state. > > Since the original wording doesn't give any guarantees, I think the > new wording doesn't change anything. It just makes it clearer, that > there are no guarantees and that some drivers will happily overwrite > state when this property is absent. OK, so how can we move forward with this ? We discussed a lot, but I don't know what we should do about the patch. -- Best regards, Marek Vasut