From patchwork Thu Nov 26 15:29:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 333031 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp1402535ilb; Thu, 26 Nov 2020 07:22:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJygTv/bCFtY02+1psW0uVCQA53lAtrf4Hqe3UTISOTiIz17PTFnCA9Fn7T+u9mGXDRmdINz X-Received: by 2002:aa7:dd0d:: with SMTP id i13mr3067999edv.174.1606404176608; Thu, 26 Nov 2020 07:22:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606404176; cv=none; d=google.com; s=arc-20160816; b=cwudkFq3yfc4VDxzL9I2nh4G7S08DpKxw7YGfbjqQwKyFwB7G65WfkQsw8rELnRSHb peQR6d0Q1pphmXBJXPlg3tcsPbJTaxzZJ9NNlleOd20rE8jOAXrYRA/PaethM6VshfbS PjEBdkJFT2yTpfdUAEjg7UReUeyPVKWMm0Ym8mOJEftrluyRZXGz/04V3gslP9iqA++t GSZMJN6kylAN7HgnmBb89JvMncipHcAlzga9hUu3VjZpoXwitk8mdTqNNmf64Ct5F7hm /9NtVOvkxgmVjUXcluphJl99H2FRwNKwfUGoZ/r/DhGFhPDu5UonikaCMda6Ot0NUSb4 qChA== 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=+XVVFNjz54vxI7LvmFlmA9uYn5ZZIptRaHJ89uF1DBI=; b=kw/xsb0XA1JGYlgpd081cVssG3zLZeNmP3MhXY+Sa4AECh1B196UYmCcGjDNnVHpBa AZoQWfRgUJQhTvjdEZE50me0k2qIrXyDeZ4iCObGvkhzqMIDyeHRkltH4RSRQrxN1TPN u3ExOx4E38ewYSD+kKpm5+9RZ6f/MSjmlKXFx3tiH9vXlKWAXymhWim18fkr0RMvxucd GvzfZ+5kQzP00r+OS1mKscAPsQXhrf6qhGGBCwe9WZRuI76RhAudlTmxgaL0h5hgWieb 9UBjHu4OVKnOrFoAdiAdDEkskqx7L2kf5by68wDhEBX1EeXDpPMNn7xHCcG9ynvTIEma aKYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XbP7A5jC; 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 w10si3453177edx.350.2020.11.26.07.22.56; Thu, 26 Nov 2020 07:22:56 -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=XbP7A5jC; 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 S2391316AbgKZPWZ (ORCPT + 15 others); Thu, 26 Nov 2020 10:22:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391314AbgKZPWZ (ORCPT ); Thu, 26 Nov 2020 10:22:25 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D592CC0617A7 for ; Thu, 26 Nov 2020 07:22:24 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id w24so2782313wmi.0 for ; Thu, 26 Nov 2020 07:22:24 -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=+XVVFNjz54vxI7LvmFlmA9uYn5ZZIptRaHJ89uF1DBI=; b=XbP7A5jCvNK2EloHZz87tCQp4rvdhhDgXgP/CRdnx2TYUiVOS0y6GKSf1+g6uM6uaa 1rj7jkUfQcF5/GvT2J61BGi2luPetAbgD6z+U/15qqTRzlnByPCuuAAYcN2ten50BKHZ Sq+dvO0LKuQ/a8UmxkwYnapCko5GcrQBugKLCxkj81r9hMIf+Oh/KQfRWK2MRk3PLwuP LVBl1hst+UjUjBsiPwb3u7YFHUqAnr9XXhHf2JpmviVrZQnP/qnBixk0cdvL0F/f53xk LRShHSARGA1VtLh7tk9tBxmN35TF1fPPeWTe2rEN23lqscs9MQ+7NMp8rheVyWXczVif o3oQ== 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=+XVVFNjz54vxI7LvmFlmA9uYn5ZZIptRaHJ89uF1DBI=; b=V+zz0pWxnda7lsjLquZIArdkqoJE39kaRhLyPjXEcbEzOHaXuPzsB6UXsGWBL7fc99 kczqWh1usqk61axyY6bzTh7q1xQlfPH4scLCwbvEYrGDwRe9U5Q8Il4esIwGYMc++qX4 qmCKYkgV9sB4WFJ8V2WME9EeJEglzNW56rydnwkCoekxANPJwNEXHEKktzIHz3L15ZVq KCGph0Va10bDLeSltb4vnjh6RHRQ9WyRX4qRAo+n6oAzuuN6R/5gJY9pQViU/t0jAGVF v48vsWTbXKEqBspdyw5WH23KnfxDe54jq14YO4WlJg+fxxhPnisqPeDu8zm+fqQFvpu7 ncTg== X-Gm-Message-State: AOAM531riIy6hlvU57LtZqeeDUTn+OsDN4izlkMEnwkji/Q0JyHkUkcc Ll/tXSl1Vs6tfa6ETR3chNMReg== X-Received: by 2002:a1c:f219:: with SMTP id s25mr3939878wmc.67.1606404143606; Thu, 26 Nov 2020 07:22:23 -0800 (PST) Received: from localhost.localdomain ([88.122.66.28]) by smtp.gmail.com with ESMTPSA id l10sm2756144wme.42.2020.11.26.07.22.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2020 07:22:23 -0800 (PST) From: Loic Poulain To: manivannan.sadhasivam@linaro.org, hemantk@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, bbhatt@codeaurora.org, Loic Poulain Subject: [PATCH v3 9/9] mhi: pci_generic: Increase controller timeout value Date: Thu, 26 Nov 2020 16:29:07 +0100 Message-Id: <1606404547-10737-10-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1606404547-10737-1-git-send-email-loic.poulain@linaro.org> References: <1606404547-10737-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 Reviewed-by: Manivannan Sadhasivam diff --git a/drivers/bus/mhi/pci_generic.c b/drivers/bus/mhi/pci_generic.c index 26c2dfa..bbecec0 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),