]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
soundwire: cadence: reduce timeout on transactions
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 15 Jan 2021 06:16:51 +0000 (14:16 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 19 Jan 2021 14:51:20 +0000 (20:21 +0530)
Currently the timeout for SoundWire individual transactions is 2s.

This is too large in comparison with the enumeration and completion
timeouts used in codec drivers.

A command will typically be handled in less than 100us, so 500ms for
the command completion is more than generous.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20210115061651.9740-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/cadence_master.c

index 9fa55164354a2245e0370d016fca8e2514e9a6b5..f0b0ec173f8b30595b2c9ff93c1f7e55771a74ba 100644 (file)
@@ -188,7 +188,7 @@ MODULE_PARM_DESC(cdns_mcp_int_mask, "Cadence MCP IntMask");
 #define CDNS_PDI_CONFIG_PORT                   GENMASK(4, 0)
 
 /* Driver defaults */
-#define CDNS_TX_TIMEOUT                                2000
+#define CDNS_TX_TIMEOUT                                500
 
 #define CDNS_SCP_RX_FIFOLEVEL                  0x2