Skip to content

ASoC: SOF: add SOF_DBG_CHECK_SDW_PERIPHERAL debug flag#5741

Open
bardliao wants to merge 1 commit into
thesofproject:topic/sof-devfrom
bardliao:for-sdw-ghost
Open

ASoC: SOF: add SOF_DBG_CHECK_SDW_PERIPHERAL debug flag#5741
bardliao wants to merge 1 commit into
thesofproject:topic/sof-devfrom
bardliao:for-sdw-ghost

Conversation

@bardliao

Copy link
Copy Markdown
Collaborator

If the flag is set, the driver waits for and verifies the presence of SoundWire peripherals listed in the ACPI table. This prevents the system from probing non-existent (ghost) SoundWire devices.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new SOF debug flag to optionally wait for SoundWire enumeration and filter out “ghost” peripherals listed in ACPI, avoiding machine-driver selection based on non-existent devices.

Changes:

  • Introduces SOF_DBG_CHECK_SDW_PERIPHERAL debug flag.
  • Adds an optional enumeration wait/verification step in hda_sdw_machine_select() before generating ACPI link/ADR structures.
  • Adds a local enumeration timeout constant.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
sound/soc/sof/sof-priv.h Adds a new SOF debug flag definition controlling SoundWire peripheral presence checks.
sound/soc/sof/intel/hda.c Implements the optional wait-for-enumeration logic during SoundWire default machine selection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sound/soc/sof/intel/hda.c
Comment thread sound/soc/sof/intel/hda.c Outdated
Comment thread sound/soc/sof/sof-priv.h Outdated
Comment thread sound/soc/sof/intel/hda.c Outdated
Comment thread sound/soc/sof/intel/hda.c Outdated
Copilot AI review requested due to automatic review settings April 21, 2026 01:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sound/soc/sof/intel/hda.c Outdated
@bardliao bardliao force-pushed the for-sdw-ghost branch 2 times, most recently from c2f293d to 21ea49d Compare April 22, 2026 09:55
Copilot AI review requested due to automatic review settings April 22, 2026 09:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sound/soc/sof/intel/hda.c Outdated
Comment thread sound/soc/sof/sof-priv.h
Comment thread sound/soc/sof/intel/hda.c
If the flag is set, the driver waits for and verifies the presence of
SoundWire peripherals listed in the ACPI table. This prevents the system
from probing non-existent (ghost) SoundWire devices.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@bardliao

Copy link
Copy Markdown
Collaborator Author

@naveen-manohar @udaymb Could you check if this PR meet your requirement?

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.

2 participants