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

Mark Brown
2023-04-20T17:20:46Z

[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]