Skip to contentSkip to conversation

linux: imx: imx-scu: increased scu message timeout

PATCH New Oliver Graute 1 participant 1 message Aug 29, 2022 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux: imx: imx-scu: increased scu message timeout

With MAX_RX_TIMEOUT = 30 ms we observed some wired behavior of communication to scfw. After increasing the scu message timeout to arbitrarily MAX_RX_TIMEOUT = 1s these problemes are gone.

a35_clk: failed to get clock rate -22
gpt0_clk: failed to attached the power domain -2 imx-scu scu: RPC send msg timeout
gpt2: failed to power up resource 209 ret -110
imx-scu-clk: probe of gpt2_clk failed with error -110 imx-scu scu: RPC send msg timeout
lpspi0: failed to power off resource 53 ret -110 imx-scu scu: RPC send msg timeout
enet1: failed to power up resource 252 ret -110
imx-scu-clk: probe of enet1_clk failed with error -110
mipi_csi0_core_clk: failed to attached the power domain -2
mipi_csi0_esc_clk: failed to attached the power domain -2
mipi_csi0_i2c0_clk: failed to attached the power domain -2
mipi_csi0_pwm0_clk: failed to attached the power domain -2
lvds0_i2c0_clk: failed to attached the power domain -2
lvds0_i2c1_clk: failed to attached the power domain -2
lvds0_i2c1_clk: failed to get clock rate -22
lvds1_i2c1_clk: failed to attached the power domain -2
lvds1_i2c1_clk: failed to get clock rate -22

---
 drivers/firmware/imx/imx-scu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/imx/imx-scu.c +1 -1
index dca79caccd01..cef2bcea61e7 100644
@@ -20,7 +20,7 @@
 #include <linux/platform_device.h>
 
 #define SCU_MU_CHAN_NUM		8
-#define MAX_RX_TIMEOUT		(msecs_to_jiffies(30))
+#define MAX_RX_TIMEOUT		(msecs_to_jiffies(1000))
 
 struct imx_sc_chan {
 	struct imx_sc_ipc *sc_ipc;
Signature · 1 line
2.26.0