OSDN Git Service

soundwire: intel/cadence: update hardware reset sequence
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 18 May 2023 02:41:18 +0000 (10:41 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 29 May 2023 05:19:47 +0000 (10:49 +0530)
commitffc363d970d1d04be0f12b2252aa21aaef3ecfd0
treef930ea2e26d7b3ce7db72b148bccb3743e05324d
parent46b56a5cd2ff496c0707ae3deae849f12b86e534
soundwire: intel/cadence: update hardware reset sequence

Combining hardware reset with the multi-link mode leads to a shortened
hardware reset pattern observed on the bus.

The updated hardware programming sequence is to first enable the clock
with the sync_arm/sync_go pattern, and only in a second step to issue
the hardware reset sequence. Since there is no longer a dependency
between sync_arm/sync_go and hw_reset, the behavior of
sdw_cdns_exit_reset() is changed to wait for the self-clearing
CONFIG_UPDATE to go back to zero,

Link: https://github.com/thesofproject/linux/issues/4170
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20230518024119.164160-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/cadence_master.c
drivers/soundwire/cadence_master.h
drivers/soundwire/intel_bus_common.c