Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp3132451rwb; Sat, 6 Aug 2022 13:31:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR5plT9A0jUMNudYLKgwIYUpvGfU2JORsjMKXuPkil2h70w5PgC45NWyGutpzlvkE6ZflyVk X-Received: by 2002:a17:903:260b:b0:16e:d654:6c41 with SMTP id jd11-20020a170903260b00b0016ed6546c41mr12120222plb.29.1659817901268; Sat, 06 Aug 2022 13:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659817901; cv=none; d=google.com; s=arc-20160816; b=M6WCUrTaMntzr/vTUktrRQEr+FQk9DDKDT4PbYUWzY6uknaC4Wi+yh0fGX5n+fyPNK H4GG3Pni1/QfBEvflnM8179tm7Ci4PtDan5C1K2md5ID27VRhpdIey+uEVBEPdUOGqJV H7NNpgM8dviZgpw+kp+uHpA9z/VVNGEtcKUFWlscAnWn0gkW4YBVWLsq1nr5Hi++Uz4x E6CicaVbAEIm1rapqZkEdqYf7Zyi55aWMLCjUIgT8yTDuUJG124sg2yfw0Xzr4q0Cx4f OYEagbKSTIizgXGkThqKRWxF6jM9Diypt5yJEdibAQvFeYXraXke7JkMkeEJ5bwGynQq s+9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=L81E5ZZqDFMGva8vhhqWkoOGy11PnHnlgRUepkoIMRE=; b=CktnLGchtSakAdnIbIiQycrHFPPmxIyz5FY5V3qDuqmYaldik++iq3yoox2ZB2odBR RhaIN9KyO/nVIRzWt1Aae+mnVV7GTNoDh207MfLQPCzt/hNKbG2ffxXNRoac+ClEjUQS WAAB+vjYSEBcKBUgG2nwrS0LapXvIF5lDYxw1VXTCEe5x6p4teLqmTT2Vv8KJ6VloZGv v384yQ6TMPS1Taf5k3hnMQl1cpbmd0VDU8lJ6ZPzBld9EdPoobHVMdjJil8ErnY0WXOq roPWfAP9tM7Vbprmm41KrgEgw2tNfHh2riBtZZSy0/BQ/Eg8FH5fpXPsYNFHJZTxJ5Rv U89w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pNdpumK7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c16-20020a170903235000b0016a629e2f40si8818514plh.161.2022.08.06.13.31.24; Sat, 06 Aug 2022 13:31:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pNdpumK7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232702AbiHFUYi (ORCPT + 99 others); Sat, 6 Aug 2022 16:24:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232426AbiHFUYe (ORCPT ); Sat, 6 Aug 2022 16:24:34 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8298AFD00 for ; Sat, 6 Aug 2022 13:24:32 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id f20so7660448lfc.10 for ; Sat, 06 Aug 2022 13:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=L81E5ZZqDFMGva8vhhqWkoOGy11PnHnlgRUepkoIMRE=; b=pNdpumK7dRQhTNmHg8fHd8fARN5aLciY1pJEgeA7VjWorBMCYCR6avAs1H+8NrAYct P9kTl/xB+Vu961rEUoPwBL4R039PxxFH/vmMzr8VYmJC26a/L70QO7yDRaSed1sb9Q/4 XQB3Yh062v9NkzV8BIW6xJutSFYZwMKIMTzxwcqaMvcUgEP9E4vMeJ9qmKrTXJcYeCZE qofJcZhZUnY815TH6kncoUIDwuhvGPEbBa1SjMmuDslMRQV6XzubsornP323VPKaabBB fMvgYMO83PEJMQGXm/KDtRJjRB8GmdXFoVKYskimlWWa8EY7ZfQN/ZPqambnDleVMMj2 PCbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=L81E5ZZqDFMGva8vhhqWkoOGy11PnHnlgRUepkoIMRE=; b=WJYbtopw4rKc4P8LBFwUHEU46l0YFRYmkV7i12rplSimDbMqGK7uCoccJCqr8vMSX1 5XmflXmzm3NHH51hr+Wo0xyz1UnxB2VHOZWqzpWf/qD6aOPGNsS/Ox+tPeDZ9VbgK92A HyZnKHa/q/Jkg9+Ae1rYaG8n7gG77ERGXGhajrKuVuSVmMvMiyzwpttX3enIYDd8zjy0 Hh30E0sTxkp5ZCmy3kx0Tg9ZN1SN9xcdsXfIIYFD7STdXwUfzZyHkxfDQrkAqQTD2cIA xLquAbY6WoUoNYhz7bWsO1dVTavEcvq8W5NkXj8k00SyBmEAzN1inBo87E6HTE+oUq6N CY9g== X-Gm-Message-State: ACgBeo2/cs+AwL+XGW1I4PpFuM+WqgKinBiWhIXVpJ2CLeRdiCNnRhFN nXH5YtFJTHO+hXuIPs5Ck+RDZw== X-Received: by 2002:a05:6512:1155:b0:48a:fb9a:32d8 with SMTP id m21-20020a056512115500b0048afb9a32d8mr4083593lfg.672.1659817470728; Sat, 06 Aug 2022 13:24:30 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id f10-20020a056512228a00b0048b2be5320csm864540lfu.118.2022.08.06.13.24.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 06 Aug 2022 13:24:30 -0700 (PDT) Message-ID: <2aec8537-47b0-5e80-b2cf-70084652f64e@linaro.org> Date: Sat, 6 Aug 2022 23:24:29 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 4/8] remoteproc: qcom: Update hard coded values with macros Content-Language: en-GB To: Srinivasa Rao Mandadapu , linux-remoteproc@vger.kernel.org, agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, quic_plai@quicinc.com, bgoswami@quicinc.com, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, quic_rohkumar@quicinc.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org, devicetree@vger.kernel.org References: <1659536480-5176-1-git-send-email-quic_srivasam@quicinc.com> <1659536480-5176-5-git-send-email-quic_srivasam@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <1659536480-5176-5-git-send-email-quic_srivasam@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/08/2022 17:21, Srinivasa Rao Mandadapu wrote: > Update hard coded values with appropriate macro names. 'Replace' Other than that, Reviewed-by: Dmitry Baryshkov > > Signed-off-by: Srinivasa Rao Mandadapu > --- > drivers/remoteproc/qcom_q6v5_adsp.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c > index bb4494c..a9fcb5c 100644 > --- a/drivers/remoteproc/qcom_q6v5_adsp.c > +++ b/drivers/remoteproc/qcom_q6v5_adsp.c > @@ -54,6 +54,9 @@ > > #define QCOM_Q6V5_RPROC_PROXY_PD_MAX 3 > > +#define LPASS_BOOT_CORE_START BIT(0) > +#define LPASS_BOOT_CMD_START BIT(0) > + > struct adsp_pil_data { > int crash_reason_smem; > const char *firmware_name; > @@ -364,10 +367,10 @@ static int adsp_start(struct rproc *rproc) > writel(adsp->mem_phys >> 4, adsp->qdsp6ss_base + RST_EVB_REG); > > /* De-assert QDSP6 stop core. QDSP6 will execute after out of reset */ > - writel(0x1, adsp->qdsp6ss_base + CORE_START_REG); > + writel(LPASS_BOOT_CORE_START, adsp->qdsp6ss_base + CORE_START_REG); > > /* Trigger boot FSM to start QDSP6 */ > - writel(0x1, adsp->qdsp6ss_base + BOOT_CMD_REG); > + writel(LPASS_BOOT_CMD_START, adsp->qdsp6ss_base + BOOT_CMD_REG); > > /* Wait for core to come out of reset */ > ret = readl_poll_timeout(adsp->qdsp6ss_base + BOOT_STATUS_REG, -- With best wishes Dmitry