From patchwork Thu Dec 10 10:02:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 340980 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp5381970jai; Thu, 10 Dec 2020 01:57:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQpUFe5miLjKg2qxAU+jEgzOHtVG7ODET7IaPp3EUsAmIJACO/J9og9VufHTK5mZ76eJWi X-Received: by 2002:a17:906:d9cf:: with SMTP id qk15mr5911717ejb.453.1607594254879; Thu, 10 Dec 2020 01:57:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607594254; cv=none; d=google.com; s=arc-20160816; b=yvZtqoxU8O8rScvp8mZU0vZNhQoHOTycuNWfnowzxfx0VqIUgcplFVIUvXObepq6FY G9JbDR8XoJDIIlmotPvPTrNYwJDiGRMftfvLBhblytYZX4YKpMCy+A3jytWSex9H2pUW ckGkXdwKMN1AF14pIVIK4eNt0GW50Lckjn0lnqoMPSpgg0IuU/UWb2ZLzY0eXCpW252n +EWajArelhKF9iV1TO82O5BAvu5kTGvJTHs5/Be2/OYgSsYR+Jgne3wK1qXGzULYifMU 4iSOC8/0dCp9XnEvwhcYlsnhsqouDieUB1qSM4uQetHW5ishyYhQV5gCHqfF8fXGtKaG bE9w== 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=Vy3kHN/RH9Hn9YIWVAkL+Zg6LjG+ZIJ8mxuwdFWNQ2I=; b=dx+S+v+SzbieMcQnSUEHnMUjMkvtpGGp7ZRLrOF/sh40jcb9RmKPmICeaulRuynAhM tdHLAhUpFoFE3399jjtzAEAJP4ZGQCZjCkNuQxcutj5KslrpWmwvw+qX2YykLDrJhSCV SSYUOVx1vVR7PO8SW+AvYxejXuO/Vy6OWP6HSSMAwCNzBBsEJkIQjmZdY8xQrSXX2DVa 8sXkPebYkOF5/GEftlo8g+lDH8Xf1knRxIO72N7JMl1wBl+xJyMH24rst4hDgRrvF2DF kZxcxWhtl6xXlQggXu9ld5LpLMjRFDXlUNfd7/kEHC765/d5XSbsfSe/4sgzJ1DTh0do Gqjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RE9ZZvPw; 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 11si2499658edv.53.2020.12.10.01.57.34; Thu, 10 Dec 2020 01:57:34 -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=RE9ZZvPw; 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 S1729017AbgLJJ51 (ORCPT + 15 others); Thu, 10 Dec 2020 04:57:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbgLJJ5P (ORCPT ); Thu, 10 Dec 2020 04:57:15 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F46DC0619D2 for ; Thu, 10 Dec 2020 01:56:04 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id t16so4791643wra.3 for ; Thu, 10 Dec 2020 01:56:04 -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=Vy3kHN/RH9Hn9YIWVAkL+Zg6LjG+ZIJ8mxuwdFWNQ2I=; b=RE9ZZvPwITq5QOzbA+sWlPaxbfDQzTBgzEC/rCEDg+m96HtV9uGUcLQgvz5vaAnOrJ 4yM+yJIW55KktODZPGwHz2+i55eNhaBEWsZfYRNwikO+UQA1nBQrssUPVE8T5b6FHcvJ QfVOEwY++hSCAIpyuF5iBlI9z/9EN8vDRw7sFdTTmMraQpu0d4FcIFfNnPVieUEbpOGM SONbZMNbjahVmrBENXXJ84dhRGAcqeCurKqlDBAGZOevIqyXuosQrQ/2soEbHKyePdgN qsSsYabFRAUZ3Hk5pvQMDAsADYdeKBc0zieamlp+2Imqse2kZaCblEOz8Ch9lfnaVni2 bpww== 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=Vy3kHN/RH9Hn9YIWVAkL+Zg6LjG+ZIJ8mxuwdFWNQ2I=; b=HeICdtSD5xr+zrsAFtcyQYk4Un5hLoxbEiAL9h8O86FE5nY8dodetHKg7GRbzZLt8A 7ff0MXqxdKPr67Ykb8Zvpzi2Arx4u11sUexTeqxKvSrGL2EsWLLZUnetzyODQcfm0Bvz hJwgW91cRmvopfczzhOC0X4woDsAmXMnH7lSgqtd2tcO72szCyFZi3my+SnjM17NRf6A bLlm7h6MnCWHwf7V7UWFd+drEt1GfrFulN0No76h+fvz9Kru9NjgVQ15nIZTeqhivqpa xXyPz4GjjrBTL2IqXcrpUwmm+afBobCMInUYzQyghMR7tjaXn9/aAhMBi7OFTohpTj++ olAw== X-Gm-Message-State: AOAM533VcBwwO3pHQoF1kqYZMrP3K+VpOyc8WQOFb+WQ7m/P2Hh6jyho YBFIgdSicwTfDqjwd7sYPvvcgQ== X-Received: by 2002:a5d:4e8c:: with SMTP id e12mr7054572wru.321.1607594163376; Thu, 10 Dec 2020 01:56:03 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:490:8730:4468:1cc2:be0c:233f]) by smtp.gmail.com with ESMTPSA id l16sm9043721wrx.5.2020.12.10.01.56.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Dec 2020 01:56:03 -0800 (PST) From: Loic Poulain To: manivannan.sadhasivam@linaro.org, hemantk@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, jhugo@codeaurora.org, bbhatt@codeaurora.org, Loic Poulain Subject: [PATCH v4 09/10] mhi: pci_generic: Increase controller timeout value Date: Thu, 10 Dec 2020 11:02:54 +0100 Message-Id: <1607594575-31590-10-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607594575-31590-1-git-send-email-loic.poulain@linaro.org> References: <1607594575-31590-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 --- 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 b427d34..0c48884 100644 --- a/drivers/bus/mhi/pci_generic.c +++ b/drivers/bus/mhi/pci_generic.c @@ -160,7 +160,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),