Re: [PATCH v7 03/16] power: sequencing: Add pwrseq_get_state()

Manivannan Sadhasivam <[email protected]>
Newsgroups org.infradead.lists.linux-mediatek,dev.linux.lists.driver-core,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-acpi,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm,org.kernel.vger.linux-usb
Message-ID <5kvmepqjoeh4igu3q3xovgimqunz4e6z3h35gqq6p2runsab5c@an2sg7ltp4p4>
On Fri, Jul 24, 2026 at 04:43:12PM +0800, Chen-Yu Tsai wrote:
> The power sequencing consumer API already does power on state tracking
> internally. Expose the state to consumers through pwrseq_get_state()
> so that they don't have to reimplement it locally.
> 
> Instead of just on/off and error codes, the function can also return

'can' -> in the future? I don't see a value in adding it, but not a concern.

> "unknown" state. This is in anticipation for "uncontrollable" power
> sequencers (such as GPIOs left unconnected).
> 
> Acked-by: Bartosz Golaszewski <[email protected]>
> Signed-off-by: Chen-Yu Tsai <[email protected]>

Reviewed-by: Manivannan Sadhasivam <[email protected]>

- Mani

-- 
மணிவண்ணன் சதாசிவம்
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.