Re: [PATCH 3/6] ASoC: codecs: wcd938x: Check for enumeration before using TX device

From: Mark Brown
Date: Thu Apr 20 2023 - 13:20:08 EST


On Thu, Apr 20, 2023 at 09:18:15AM -0500, Pierre-Louis Bossart wrote:
> On 4/20/23 05:16, Krzysztof Kozlowski wrote:

> > + /*
> > + * Before any TX slave regmap usage, be sure the TX slave is actually
> > + * enumerated.
> > + */

> the alternative is to move regmap to be cache-only in the probe and
> remove the cache-only property when the device is enumerated.

Right, it's generally a better approach unless you need the hardware to
actually do something immediately - if you're just setting up what's
needed whenver things actually get started then using cache only mode is
much less complicated.

Attachment: signature.asc
Description: PGP signature