Skip to content

ASoC: da7219-aad: fix possible race condition in interrupt - #2749

Merged
plbossart merged 1 commit into
thesofproject:topic/sof-devfrom
plbossart:fix/da7219-aad-irq
May 4, 2021
Merged

plbossart merged 1 commit into
thesofproject:topic/sof-devfrom
plbossart:fix/da7219-aad-irq

Conversation

@plbossart

Copy link
Copy Markdown
Member

When the irq_thread deals with jack removal, it modifies DAPM pin states
and then wait for workqueues to complete.

The problem is that those workqueues also modify DAPM pin states, and
the DAPM pin states may be inconsistent.

This patch suggests first waiting for scheduled workqueues to
complete before changing the DAPM pin states.

Signed-off-by: Pierre-Louis Bossart pierre-louis.bossart@linux.intel.com

When the irq_thread deals with jack removal, it modifies DAPM pin states
and then wait for workqueues to complete.

The problem is that those workqueues also modify DAPM pin states, and
the DAPM pin states may be inconsistent.

This patch suggests first waiting for scheduled workqueues to
complete before changing the DAPM pin states.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@ranj063

ranj063 commented Feb 9, 2021

Copy link
Copy Markdown
Collaborator

looks like a legitimate fix to me!

@plbossart plbossart closed this Mar 9, 2021
@plbossart plbossart reopened this May 3, 2021
@plbossart

Copy link
Copy Markdown
Member Author

we should try to merge this and see if this makes #2676 go away for good.

@plbossart plbossart changed the title [TEST] ASoC: da7219-aad: fix possible race condition in interrupt ASoC: da7219-aad: fix possible race condition in interrupt May 3, 2021
@plbossart
plbossart merged commit c2d997a into thesofproject:topic/sof-dev May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants