-
Notifications
You must be signed in to change notification settings - Fork 143
ASoC: SOF: add SOF_DBG_CHECK_SDW_PERIPHERAL debug flag #5741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: topic/sof-dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1306,6 +1306,8 @@ static struct snd_soc_acpi_adr_device *find_acpi_adr_device(struct device *dev, | |||||||||
| return adr_dev; | ||||||||||
| } | ||||||||||
|
|
||||||||||
| #define ENUMERATION_TIMEOUT 3000 | ||||||||||
|
||||||||||
| #define ENUMERATION_TIMEOUT 3000 | |
| #define ENUMERATION_TIMEOUT 3000 /* milliseconds, used with msecs_to_jiffies() for HDA SoundWire enumeration */ |
Copilot
AI
Apr 20, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning message is too generic to diagnose which ACPI-described peripheral was missing. Include identifying information (e.g. link_id, mfg_id/part_id/unique_id or dev_name) so users can correlate the warning with the ACPI table entry.
| dev_warn(&slave->dev, "SoundWire peripheral is not present\n"); | |
| dev_warn(&slave->dev, | |
| "SoundWire peripheral is not present on link %d (dev %s)\n", | |
| slave->bus->link_id, dev_name(&slave->dev)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The device information is already included in slave->dev.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ENUMERATION_TIMEOUTis a very generic macro name and doesn’t document the unit. Rename it to something scoped (e.g.SOF_SDW_ENUMERATION_TIMEOUT_MS) and/or add a_MSsuffix so it’s clear this value is in milliseconds.