[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <545d3463-ce56-41d5-9d95-55764c448c09@sirena.org.uk>
Date: Mon, 5 Jun 2023 15:44:37 +0100
From: Mark Brown <broonie@...nel.org>
To: Raag Jadav <raagjadav@...il.com>
Cc: Liam Girdwood <lgirdwood@...il.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] regulator: act8945a: rely on hardware for operating
mode
On Mon, Jun 05, 2023 at 08:01:03PM +0530, Raag Jadav wrote:
> On Mon, Jun 05, 2023 at 01:16:33PM +0100, Mark Brown wrote:
> > On Mon, Jun 05, 2023 at 04:18:29PM +0530, Raag Jadav wrote:
> > > Convert ->get_mode() and ->set_mode() hooks to read/write operating mode
> > > from/to hardware instead of relying on driver memory.
> > Why is this change being made - what is the benefit here?
> Original implementation uses drvdata to load/store
> operating mode for the regulator.
> This change doesn't really add anything new.
> It is just to make sure that the driver is in sync
> with the current state of affairs in the hardware
> instead of relying on locally stored status in the memory.
It's also removing a cache so we need to talk to the hardware more often
which doesn't seem like a win. If there's a bootstapping problem then
shouldn't we just read once at startup? If there's no problem what's
the advantage?
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists