From patchwork Mon Jan 4 13:49:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 356386 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp14979027jai; Mon, 4 Jan 2021 05:43:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxN7zE6h+qC84hPyLRWx79vHK6IrcH/MPbaj9Kd7ueZub4NWL3CHYMQu3UexLKR4+bawsLK X-Received: by 2002:a17:906:3593:: with SMTP id o19mr65780568ejb.377.1609767813568; Mon, 04 Jan 2021 05:43:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609767813; cv=none; d=google.com; s=arc-20160816; b=wdu1SmIfMPNYjcVRnYYcd8pODyBdu2Jk9INpNdjAaU0PxU7n+6bbY586Fsak4y5dj4 g/On1mYgRRL1ziLNInEVgsItALyC346td8yn6nBhd72ZH7b+aCyUICSxjOJmnj/VhIVy r9vvtCrodkXufkEE4oUY9CsOdwUdcodVi5k1cSX085/Fe+t2whgUgeNNIRkvS8urXk7a P7byMTnXBbstLQeGaznOibFOk9gazPUAnWrttfup5jelglsKlah4JQkPgecfvjIdb1IQ Vk92TGqXn4QSrxIrhhd6mC80shPJqCQMBy+wiWtWGe+dZ5XGI0nE1+M3fztXnP+yElQL mwlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=Pj6cKdBG+MO8yiQhyvVFRUuc2SwiRQVBKy1AjDfPs4Y=; b=biInz7Wgnjr1AvBWjcXz3aUxccxi7sjIL5xbZcdTCS141knYMebEA2b2YhGOvDami9 vQMJDb+2hm2YzTfqMt5Ck9IQ+82HDUf3JvU3nsEtn1qA0rpH7xq/MUNrew9f8JFC4utD KUqGi5ByfU30v56YABEM5n+p+HsbMafTzWotP5jJKXsLsPwSwAz1rCphwniosS/tcZIk 0jAXycIVCRuzOvLbYCAX/VXa+F3NMf5Hag881t6zS8t/NVi4iVmYfKLuqih0n6ATd5Ke lAkDv2dnWvZhW0vGkPlL6grifoBtWoBOZrzV0mi4hVcbEl6nAKyONHQg9pLk/GAzK+3U 5J/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=smenpFHR; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si26607096ejc.524.2021.01.04.05.43.33; Mon, 04 Jan 2021 05:43:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=smenpFHR; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726855AbhADNnc (ORCPT + 15 others); Mon, 4 Jan 2021 08:43:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbhADNnb (ORCPT ); Mon, 4 Jan 2021 08:43:31 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2616CC0617A0 for ; Mon, 4 Jan 2021 05:42:17 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id k10so18504042wmi.3 for ; Mon, 04 Jan 2021 05:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Pj6cKdBG+MO8yiQhyvVFRUuc2SwiRQVBKy1AjDfPs4Y=; b=smenpFHRRtkXYY3xdjzI0iJlewLBOLz0HBB5V51xN/4vW/kN1Xv7IlIxy3BtuD0P04 Z5sBYWKHu/A1zNgSZomptyl6oofjsgAP+xudXgMpi84UfOHaz8CpvhT63Qepk9CSTZ8n 8EPhZE0LLxTeiiqCq6Vu3FllP3dIuTcfWw1huurW376ZLnAMY2B4uFdKZOhFFJj1kk+M QX+DaTHnhB2pd7qyyfqOar/oVFSHJS7KO7UVvEZIUV6Ib8wHVKeyqfnysy50gwg2D8gz N2NcZdLQnKD9YjfWLQhmlhWmRzAUtkDlM2apOtHg6DpwUjIpm1gSU/EgJuX9wrjlAutk zkog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Pj6cKdBG+MO8yiQhyvVFRUuc2SwiRQVBKy1AjDfPs4Y=; b=cJC7Y+3hV8Ibnux4Aao88ngCvoIAMqgpzwVkzXICeSjcLfj1iZNo9QRWxjQTud5jWQ Vn+DQDvWoL6HkMw+bINiwYG8cGr6RNBLse9UzeEfBObSppx+FBbtm/ETo2asMMoCSiCm 4U9L1ZrIVTsaZt4tQk47yF92Z8Fly9ZRU9eNrGK+zQ4aJjIMf/CMi+2BuBgxEia67fm8 56US35k+VxoccI5i6oNNvg3cwDPw/iORLZAJkzHL8BZyHa3GVwyJlqOPfyJ3aC/0XpJA hyWnKjOcDeLNvqpKBMRq6gShbITI3hPtzf5MWbh/JxJrjbfyKHHUnYdQTfNuiAae0GKQ fyTQ== X-Gm-Message-State: AOAM532yhep7TOtTwlg4DFmLySw68amllmZQ33Qc5Gni4L32Otk3tFKY bd6CFvGnXkh9gXPPG6xJDYfjJw== X-Received: by 2002:a7b:c24b:: with SMTP id b11mr27131764wmj.168.1609767735915; Mon, 04 Jan 2021 05:42:15 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:490:8730:41b:e085:fa9a:9c53]) by smtp.gmail.com with ESMTPSA id w4sm34042968wmc.13.2021.01.04.05.42.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jan 2021 05:42:15 -0800 (PST) From: Loic Poulain To: manivannan.sadhasivam@linaro.org Cc: linux-arm-msm@vger.kernel.org, bbhatt@codeaurora.org, hemantk@codeaurora.org, Loic Poulain Subject: [PATCH v7 08/10] mhi: pci_generic: Increase controller timeout value Date: Mon, 4 Jan 2021 14:49:37 +0100 Message-Id: <1609768179-10132-9-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1609768179-10132-1-git-send-email-loic.poulain@linaro.org> References: <1609768179-10132-1-git-send-email-loic.poulain@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On cold boot, device can take slightly more than 5 seconds to start. Increase the timeout to prevent MHI power-up issues. Signed-off-by: Loic Poulain Reviewed-by: Hemant Kumar Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi/pci_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/bus/mhi/pci_generic.c b/drivers/bus/mhi/pci_generic.c index 7e54d88..5188ca2 100644 --- a/drivers/bus/mhi/pci_generic.c +++ b/drivers/bus/mhi/pci_generic.c @@ -162,7 +162,7 @@ static const 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 = 5000, + .timeout_ms = 8000, .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),