mfd: cs42l43: Increase the SoundWire attach timeout
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 5 Dec 2024 11:58:21 +0000 (11:58 +0000)
committerLee Jones <lee@kernel.org>
Tue, 17 Dec 2024 13:17:25 +0000 (13:17 +0000)
Some SoundWire controllers take a very long time to fully power up. As
such, increase the timeout that the cs42l43 driver will wait for the
device to initially appear on the bus.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20241205115822.2371719-3-ckeepax@opensource.cirrus.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/cs42l43.c

index 167d4060b230a6e1a2866349d3b8c1b315464670..9572c7fd419a74ebc5329fd6295f7c70d948062b 100644 (file)
@@ -29,7 +29,7 @@
 
 #define CS42L43_RESET_DELAY_MS                 20
 
-#define CS42L43_SDW_ATTACH_TIMEOUT_MS          500
+#define CS42L43_SDW_ATTACH_TIMEOUT_MS          5000
 #define CS42L43_SDW_DETACH_TIMEOUT_MS          100
 
 #define CS42L43_MCU_BOOT_STAGE1                        1