From patchwork Mon Jan 4 16:14:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 356397 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp15089545jai; Mon, 4 Jan 2021 08:10:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1DegnFiwYloEu/3G1HpD72TYw6Icc26wdzaWunnMJs9aClrcC8krbA3jcDz9o9gD5Umnu X-Received: by 2002:a17:906:4809:: with SMTP id w9mr66847023ejq.139.1609776629147; Mon, 04 Jan 2021 08:10:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609776629; cv=none; d=google.com; s=arc-20160816; b=krzOMVvVsJauaB8rqXr0K6mu02FMbWFXexU37buhzY4i2axK4mHIs1XlKvNTZrW1I/ aMxrn2r8oFZkb8E1n49VCURDvIqR2m/3w4IQYC1phhTFWFhnEtuTcz4oEPJFso1WJV7p X/tADAiRmUtTLkNCHihbG3CQaibrc+qHYyk5dKZKOD3KoVK4DygtoRPSTi1E1hSseHjX Vz3H5ngLpNembJoNAk0JOQomxk9Dv3Jx7owm0qbN3rdrfK/jaYDaxgaavF0Zx7HyAFGN ZN3w/hSsDgUIYbYAoCqJN2uUwuBj2ApipIKKmgLKronlTO+lZ65IAf9H99LrYYMxMlV6 LtQQ== 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=uHP4zdCqkYpZ7TMoU32SH1n8pjOWVxYjbGzR0TCpQnQ=; b=fRTCvMP/ct2p33pUC8XFxUBcsxvVzxyDWWZnrNXaPfDssXSz40ZwALPJSHAoJ7jjIH qeQacTCg31O4FbcwIdsmTH+7qVWC6fBjuRyUbAKHjyi55ixP6h00d9FyehvmNltF+WP1 /RF+IlEe9TFpE+i6aiij1tl9telzpYaJgZjPcAKZujI3ukdQWrRpjpA5df7bBeudXB8h baDplBLCS5dt22kl4Q9O/pkTQIFnvgeu5LHFFpaf7GywOhB3KP5LzTnK/2coV1yTpnrf cA2IFpBMTGEgNzu03wVajQlbfHiVI4FC93ntng7wGgTWmFDytXe6VhRLvFNT/04KFN5v jm2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xSwwKv3r; 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 61si31780067edk.598.2021.01.04.08.10.28; Mon, 04 Jan 2021 08:10:29 -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=xSwwKv3r; 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 S1728724AbhADQJD (ORCPT + 15 others); Mon, 4 Jan 2021 11:09:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729615AbhADQIv (ORCPT ); Mon, 4 Jan 2021 11:08:51 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 137B3C06179F for ; Mon, 4 Jan 2021 08:07:36 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id d26so32655212wrb.12 for ; Mon, 04 Jan 2021 08:07:36 -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=uHP4zdCqkYpZ7TMoU32SH1n8pjOWVxYjbGzR0TCpQnQ=; b=xSwwKv3rx27nH2qhxGButYJVvsPyjOKg72pJhWXRWVeZDlluNsX3Wyq/X9mA6pPdAd QuWo1TY9QVzjFveTIb703PNS0KQbmrHpdVZOytPXJROgLJ9rwSh0Bc4KKz8+ripJZXXV a2go2e+3qW6fdhT5/cREHp3n7XRXtpBVo9wmYnW+jQ696wJ6sYYH/7+EGVKiIgPI1tNU CykD+ADsWaUYNf1M3Dl1vZLnuD9TNugcatMkcEpn2l4fYcnhpwEALRyTlHsDhQIHmqmw Fapvnglge1wGrKGQ5+tQRPuOXwqhvvo5DfPVRGw6Ts8TB0d7p1+LCMs88cgcN+fVu5ah WCBg== 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=uHP4zdCqkYpZ7TMoU32SH1n8pjOWVxYjbGzR0TCpQnQ=; b=RZdyVGTCenVwqKnSFfbSE7m5QNmWUmc4bBPQdTjyuQU45m7QR5c5btprVyH/qUjEsg VnPO0KLfCYyFdNGIy59qR2mfomN8oDeSrDjJLdBeAGDgapzYrW3hG7k9hkA33ycr18ss gKoCHvbLjjA24VWad0xke+QEjal/K6uE3MNxM+y04xvW9GAmM7knxIxjuZG0b12ycyrg R2cQLapGrupsRWI+THtBKQYOFEmGv7Z6jRwVnuYzIdIe76O+NTmiCgdn9I+6acPmRpqG 0QCPaKI5W5T2X0xBsZ9oKirD+e0H/v4KCcWQkSBDq3lgxdDZRg9Z0jvZdozDajaGFMN4 HLow== X-Gm-Message-State: AOAM532QZcb6X2R1oHuv4dvEeBwMDDU9syRbEaNL9lPIpBm6WrpntCMJ DUo/XnoPf+ck1db1pmkUzMa9xA== X-Received: by 2002:adf:ce90:: with SMTP id r16mr81865517wrn.100.1609776454838; Mon, 04 Jan 2021 08:07:34 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:490:8730:41b:e085:fa9a:9c53]) by smtp.gmail.com with ESMTPSA id h9sm89278049wre.24.2021.01.04.08.07.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jan 2021 08:07:34 -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 v8 08/10] mhi: pci_generic: Increase controller timeout value Date: Mon, 4 Jan 2021 17:14:57 +0100 Message-Id: <1609776899-30664-9-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1609776899-30664-1-git-send-email-loic.poulain@linaro.org> References: <1609776899-30664-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 3eac410..cbf28c3 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),