Re: [PATCH] regulator: core: Allow for regulators that can't be read at bootup

2018-05-16 Thread David Collins
On 05/15/2018 03:07 PM, Douglas Anderson wrote: > As discussed in the patches to try to support the RPMh regulators [1], > the fact that regulators are write-only means that its driver's > get_voltage_sel() should return an error code if it's called before > any calls to set_voltage_sel(). This

Re: [PATCH] regulator: core: Allow for regulators that can't be read at bootup

2018-05-16 Thread David Collins
On 05/15/2018 03:07 PM, Douglas Anderson wrote: > As discussed in the patches to try to support the RPMh regulators [1], > the fact that regulators are write-only means that its driver's > get_voltage_sel() should return an error code if it's called before > any calls to set_voltage_sel(). This

[PATCH] regulator: core: Allow for regulators that can't be read at bootup

2018-05-15 Thread Douglas Anderson
Regulators attached via RPMh on Qualcomm sdm845 apparently are write-only. Specifically you can send a request for a certain voltage but you can't read back to see what voltage you've requested. What this means is that at bootup we have absolutely no idea what voltage we could be at. As

[PATCH] regulator: core: Allow for regulators that can't be read at bootup

2018-05-15 Thread Douglas Anderson
Regulators attached via RPMh on Qualcomm sdm845 apparently are write-only. Specifically you can send a request for a certain voltage but you can't read back to see what voltage you've requested. What this means is that at bootup we have absolutely no idea what voltage we could be at. As