Re: [PATCH] bus: mhi: pci_generic: increase timeout value for operations to 24000ms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey all,

On 5/8/21 16:02, Thomas Perrot wrote:
Otherwise, the waiting time was too short to use a Sierra Wireless EM919X
connected to an i.MX6 through the PCIe bus.

Signed-off-by: Thomas Perrot <thomas.perrot@xxxxxxxxxxx>
---
  drivers/bus/mhi/pci_generic.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/mhi/pci_generic.c b/drivers/bus/mhi/pci_generic.c
index 4dd1077354af..e08ed6e5031b 100644
--- a/drivers/bus/mhi/pci_generic.c
+++ b/drivers/bus/mhi/pci_generic.c
@@ -248,7 +248,7 @@ static struct mhi_event_config modem_qcom_v1_mhi_events[] = {
static const struct mhi_controller_config modem_qcom_v1_mhiv_config = {
  	.max_channels = 128,
-	.timeout_ms = 8000,
+	.timeout_ms = 24000,


This modem_qcom_v1_mhiv_config config applies to all generic SDX24, SDX55 and SDX65 modules.
Other vendor-branded SDX55 based modules in this same file (Foxconn SDX55, MV31), have 20000ms as timeout.
Other vendor-branded SDX24 based modules in this same file (Quectel EM12xx), have also 20000ms as timeout.
Maybe it makes sense to have a common timeout for all?

Thomas, is the 24000ms value taken from experimentation, or is it a safe enough value? Maybe 20000ms as in other modules would have been enough?

And if 20000ms wasn't enough but 24000ms is, how about adding that same value for all modules? These modules definitely need time to boot, not sure if having slightly different timeout values for each would make much sense, unless there are very very different values required.

What do you think?

  	.num_channels = ARRAY_SIZE(modem_qcom_v1_mhi_channels),
  	.ch_cfg = modem_qcom_v1_mhi_channels,
  	.num_events = ARRAY_SIZE(modem_qcom_v1_mhi_events),



--
Aleksander
https://aleksander.es



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux