-
Notifications
You must be signed in to change notification settings - Fork 132
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
ALSA/hda: intel-sdw-acpi: Correct sdw_intel_acpi_scan() function para… #5279
base: topic/sof-dev
Are you sure you want to change the base?
ALSA/hda: intel-sdw-acpi: Correct sdw_intel_acpi_scan() function para… #5279
Conversation
…meter The acpi_handle should be just a handle and not a pointer in sdw_intel_acpi_scan() parameter list. It is called with 'acpi_handle handle' as parameter and it is passing it to acpi_walk_namespace, which also expects acpi_handle and not acpi_handle* Signed-off-by: Peter Ujfalusi <[email protected]>
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 change looks correct to me though I have no idea how it works today.
@@ -365,7 +365,7 @@ struct sdw_intel_res { | |||
* on e.g. which machine driver to select (I2S mode, HDaudio or | |||
* SoundWire). | |||
*/ | |||
int sdw_intel_acpi_scan(acpi_handle *parent_handle, |
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.
@ujfalusi can you please give a little more info on how you identified and fixed this?
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.
We have encountered a kernel crash on a developer setup. It might be caused by incorrect ACPI information. The kernel should never crash even if the ACPI information is incorrect.
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.
ok thanks!
SOFI TEST |
SOFCI TEST |
…meter
The acpi_handle should be just a handle and not a pointer in sdw_intel_acpi_scan() parameter list.
It is called with 'acpi_handle handle' as parameter and it is passing it to acpi_walk_namespace, which also expects acpi_handle and not acpi_handle*