Skip to content
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

Update soundwire: mipi-disco: add new properties from 2.0 spec #5173

Merged
merged 4 commits into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions drivers/soundwire/mipi_disco.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,15 +471,8 @@ int sdw_slave_read_prop(struct sdw_slave *slave)
device_property_read_u32(dev, "mipi-sdw-sdca-interrupt-register-list",
&prop->sdca_interrupt_register_list);

/*
* The specification defines the property value as boolean, but
* the value can be defined as zero. This is not aligned the
* implementation of device_property_read_bool() which only checks
* the presence of the property.
* Let's use read_u8 to work-around this conceptual disconnect.
*/
device_property_read_u8(dev, "mipi-sdw-commit-register-supported",
&prop->commit_register_supported);
prop->commit_register_supported = mipi_device_property_read_bool(dev,
"mipi-sdw-commit-register-supported");

/*
* Read dp0 properties - we don't rely on the 'mipi-sdw-dp-0-supported'
Expand Down
Loading