Re: [PATCH 02/17] ASoC: cs42l42: Use new SoundWire enumeration helper

Mark Brown
2026-05-06T00:13:57Z

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

On Tue, May 05, 2026 at 05:47:52PM +0100, Charles Keepax wrote:
> Update the driver to use the new core helper that waits for the device
> to enumerate on SoundWire and be initialised by the SoundWire core.

> static int cs42l42_sdw_handle_unattach(struct cs42l42_private *cs42l42)
> {

> - if (!peripheral->unattach_request)
> - return 0;

...

>
> /*
> * After a bus reset there must be a reconfiguration reset to

We now always fall through to this block of code instead of exiting
early if the device wasn't actually reset, the new helper doesn't
distinguish between no reset and successfully waited for reset.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]