Skip to content

Commit

Permalink
soundwire: intel_ace2x: add more traces around sync_arm/sync_go
Browse files Browse the repository at this point in the history
We want to make sure the sync_go does happen after the last write

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
  • Loading branch information
plbossart committed Jun 7, 2024
1 parent d2ab3e1 commit d3085ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/soundwire/intel_ace2x.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,19 +222,27 @@ static void intel_sync_arm(struct sdw_intel *sdw)

mutex_lock(sdw->link_res->shim_lock);

dev_info(sdw->cdns.dev, "%s: started\n", __func__);

hdac_bus_eml_sdw_sync_arm_unlocked(sdw->link_res->hbus, link_id);

dev_info(sdw->cdns.dev, "%s: done\n", __func__);

mutex_unlock(sdw->link_res->shim_lock);
}

static int intel_sync_go_unlocked(struct sdw_intel *sdw)
{
int ret;

dev_info(sdw->cdns.dev, "%s: started\n", __func__);

ret = hdac_bus_eml_sdw_sync_go_unlocked(sdw->link_res->hbus);
if (ret < 0)
dev_err(sdw->cdns.dev, "%s: SyncGO clear failed: %d\n", __func__, ret);

dev_info(sdw->cdns.dev, "%s: done\n", __func__);

return ret;
}

Expand Down

0 comments on commit d3085ee

Please sign in to comment.