Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9066163ybl; Fri, 17 Jan 2020 05:53:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwR39J8FfcMMpHMK8IUtrqYptLJkjKEuD2n5waDvV3b5lCJKrwKCrrJJslXs3v4hCLhDhyS X-Received: by 2002:a9d:4c82:: with SMTP id m2mr6180616otf.199.1579269194981; Fri, 17 Jan 2020 05:53:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579269194; cv=none; d=google.com; s=arc-20160816; b=eXNdX0wYsibrGUKFv7q+3LHzCTYWeC6LCTDPwqh3SLG0G4PdJ0SVn3qJTFaxcj707/ WIbZwD+IATwaUKx7LhJ0gxJ4m4MSPqTins22F5NZv8d+qiHyyviOrC/qotBle3wCzt/4 YUnv8XWmfsEBgMg0iUftPLfaQcepzzKSOMbg6fq2DlP2HVjCG7/0ETW7045lDt65C6Sx Cy61NwqvPa2UWy9xhSj5SwX0m1Vuzr8WAWl96ImaRqUv8jEiIXXojhiGEfgc1IJc1MwC i0ZEpEqWqxqrTEjdei3l926wOuslIvqQT/m7peFxGzQ8njGQs3YY3QK8lXfRo7LLHaJX ERrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=ovyWJ6zpbSqDDSSxMWZyo+IzmXMYbJbI7rlM+Da3DcE=; b=BYDUUSE5gsDdKPwrfFNEMXeYlSKgRq+uO+HLstpQkezGpDg1u2ueJmmNSEM2bnNiA3 PYbXABAz2OgTKrrowHpvqJIBgnO1ONDddPc6t7HouJLg0X2sGB1f6liOJIQKwV5QtzL1 cL7fcrOiLa5iWYI/qN7An5BPMFbOMoyTAj2kpwV9K+mY/A1J8UQvaw6Z11TfefSENGuk 5Psk2N41ig9k9caWuAsnJTgXGGYyscLrYu/g4vbZbtxSIOf/oYvBNyCoyWZs09Ud//oD y4TRbF6anOiYY7aY0m9oXvN/yeCCU5FP7EyAN3pVClpze2yMJlISmE4b0gD5qhGKuQMZ JI1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=KqZbFyxl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18si15162090otq.72.2020.01.17.05.53.02; Fri, 17 Jan 2020 05:53:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=KqZbFyxl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729163AbgAQNv7 (ORCPT + 99 others); Fri, 17 Jan 2020 08:51:59 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:18438 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729017AbgAQNv6 (ORCPT ); Fri, 17 Jan 2020 08:51:58 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1579269118; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=ovyWJ6zpbSqDDSSxMWZyo+IzmXMYbJbI7rlM+Da3DcE=; b=KqZbFyxlXZTcAJTMJ/jY1Edp7rYL7CO1aodvZuaJqtGm/iBTFnCcLQC+huwReaMAuQORQdHY hK4RlC2CkbssPAjgqfx9beDOBQS6WT100bLEASsM17PNVj15Wf3fqhxYuFP+YpyUgoM6Jyd4 u8FC62f5f/qWO3XXOH3IKIiDAeE= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e21bbfb.7f20f41ded50-smtp-out-n01; Fri, 17 Jan 2020 13:51:55 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 8C2A6C447B0; Fri, 17 Jan 2020 13:51:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from blr-ubuntu-87.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id EF909C447A3; Fri, 17 Jan 2020 13:51:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EF909C447A3 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: bjorn.andersson@linaro.org, evgreen@chromium.org, p.zabel@pengutronix.de Cc: ohad@wizery.com, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, agross@kernel.org, Sibi Sankar Subject: [PATCH 3/4] remoteproc: qcom: q6v5-mss: Rename boot status timeout Date: Fri, 17 Jan 2020 19:21:29 +0530 Message-Id: <20200117135130.3605-4-sibis@codeaurora.org> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20200117135130.3605-1-sibis@codeaurora.org> References: <20200117135130.3605-1-sibis@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename the FSM timeout on SC7180 to BOOT_STATUS_TIMEOUT_US. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c index e1784446d3da3..6a98e9029c70b 100644 --- a/drivers/remoteproc/qcom_q6v5_mss.c +++ b/drivers/remoteproc/qcom_q6v5_mss.c @@ -114,7 +114,7 @@ #define QDSP6SS_BOOT_CORE_START 0x400 #define QDSP6SS_BOOT_CMD 0x404 #define QDSP6SS_BOOT_STATUS 0x408 -#define SLEEP_CHECK_MAX_LOOPS 200 +#define BOOT_STATUS_TIMEOUT_US 200 #define BOOT_FSM_TIMEOUT 10000 struct reg_info { @@ -572,7 +572,7 @@ static int q6v5proc_reset(struct q6v5 *qproc) /* Poll the QDSP6SS_BOOT_STATUS for FSM completion */ ret = readl_poll_timeout(qproc->reg_base + QDSP6SS_BOOT_STATUS, val, (val & BIT(0)) != 0, 1, - SLEEP_CHECK_MAX_LOOPS); + BOOT_STATUS_TIMEOUT_US); if (ret) { dev_err(qproc->dev, "Boot FSM failed to complete.\n"); /* Reset the modem so that boot FSM is in reset state */ -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project