Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3060059rwa; Mon, 22 Aug 2022 20:26:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR48iLaxBCtgNxldK/HdXKnbdiHiDiY3PvK6OV/F7Gr6RkwKFV8QqkhyhY+wVYMTRSxtFbxP X-Received: by 2002:a05:6402:42d4:b0:443:4b8:8cba with SMTP id i20-20020a05640242d400b0044304b88cbamr1817495edc.3.1661225183901; Mon, 22 Aug 2022 20:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661225183; cv=none; d=google.com; s=arc-20160816; b=Zr3mU63VT2Fmkzmh3THtP+Ksko/3+MD1gpnrn8PQgWt93gU6DLOkhOziUAmSe6hdfy Oq5naglIUBYh+NE1vVekPUclzJZCwX5cSlx3VgmhvA8ujxUKaDlBugsLrfibSm9gRRs3 fP/6er3WntTbQnIq3dAOUuizDrosWSqiHjBqLwyZdP3J7YLl2LHiTocwlt7NRRhhyUr+ /OfstiPmmv6+RK+ucqGQ7rXrmO6+9zGWT8CNVGLEfGVgIpA7a+uvPaMxbA7MH5kPNvEL nXeriif2cyVZGsHPssyIsJndHh/EnFxU9WueXdxfRDct6wDu2zUzyxfplb1GCCe9q1u6 Stqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=U3z9C3IgiAZZfXy8gtS5aijnwi+t/z92RC5cjh/YLxw=; b=BA72V1/IGpxUk2gT8Dxd9Xd03hUxAtlQHh/yQ9k40NSlmZcs2dx8FJGSJnQ9d02N0r GRGOQ3GY4O2UulJfxzNYME75Cc3+8tudIDPPvWuixVqvtrYvPzcJYcRbHuDZCJzS7gDm Lc9kV+nUHZGs151ST6/KKOibdBzBnz9yjjl0nupwbKMTnBQ2EaCBxWEDCKrOUXdoDFJX SjRtTzkxNa9ihfZzSIFQks0/4I+6YUSiCNMjCWY+8TVSG1O1LSY+Olc2MBZm39QVgnKT TjfecNyl4SVv2tg9uxTHclyQEaTIbfLawAQGVatB0aofd/MPNYs7nZD4/otu6iFi8Eu6 LuFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jBWEG5lI; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y42-20020a50bb2d000000b00445f21c7ddasi1069940ede.476.2022.08.22.20.25.58; Mon, 22 Aug 2022 20:26:23 -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=@chromium.org header.s=google header.b=jBWEG5lI; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239863AbiHWDNL (ORCPT + 99 others); Mon, 22 Aug 2022 23:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239954AbiHWDMm (ORCPT ); Mon, 22 Aug 2022 23:12:42 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB000BF59 for ; Mon, 22 Aug 2022 20:12:40 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id a133so6781632oif.4 for ; Mon, 22 Aug 2022 20:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=to:subject:message-id:date:user-agent:from:references:in-reply-to :mime-version:from:to:cc; bh=U3z9C3IgiAZZfXy8gtS5aijnwi+t/z92RC5cjh/YLxw=; b=jBWEG5lIWXwKg1LGdrVeb6+BqIGPseXfeSdG/FkMFGu/lvWdS1F6m5XupK2ECLLwsQ etB9m5QeEJSUBdnzhgUUezFJLQnbCGS+qXrwXoo55MOWFzK0/Yt0EgzzDCTnO2So0rxJ czCyjZQ0LS7iLdZaPfU8bXI8ADHOdQ1n704N8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:user-agent:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc; bh=U3z9C3IgiAZZfXy8gtS5aijnwi+t/z92RC5cjh/YLxw=; b=ezNAfNYML2Xg4LqqorjoluA9jUnTR2jHaBd9GfdxFrM8Vi14gOvjQMIf5mQXdMS7dR JWreWCA6N4OaMIfj0jpv+JxoA+7YwpJgPDZ82MkiqwfEgo6u/xF6mf7W0rGnak6V12Vp ytR2Gz9Ib3qyNT/PxTZdeE8Laoz3WqLXegpuB4Ue1q+MHUaPWNGJRpTlBrh01DMGKRhg KqlzApBKXYs5CnpqHHZOgZtGeZYTB90SfckVyqlzvtphZyXTEd1S/q2nMVweXIZoCzov EJOXTH/s56nDtKGRT6+c71P1NXO1VQWE5M7DHOAuCVr2Q0lZMkpJya8lNdUiPVlfU+P9 xpQw== X-Gm-Message-State: ACgBeo2MdO2A+P7JKvhJrQ2msSaQuHy4A1YcRl4WmgyXF8Au11djI5f6 Vq/3lo6RaPHpw0fXPQG7VvyEgwdF1ic5EkrCb4oqiw== X-Received: by 2002:a05:6808:bca:b0:344:ef42:930f with SMTP id o10-20020a0568080bca00b00344ef42930fmr525222oik.0.1661224360105; Mon, 22 Aug 2022 20:12:40 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 22 Aug 2022 22:12:39 -0500 MIME-Version: 1.0 In-Reply-To: <1661156523-22611-6-git-send-email-quic_srivasam@quicinc.com> References: <1661156523-22611-1-git-send-email-quic_srivasam@quicinc.com> <1661156523-22611-6-git-send-email-quic_srivasam@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Mon, 22 Aug 2022 22:12:39 -0500 Message-ID: Subject: Re: [RESEND v5 5/7] remoteproc: qcom: Add efuse evb selection control To: Srinivasa Rao Mandadapu , agross@kernel.org, bgoswami@quicinc.com, bjorn.andersson@linaro.org, broonie@kernel.org, devicetree@vger.kernel.org, judyhsiao@chromium.org, lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, perex@perex.cz, quic_plai@quicinc.com, quic_rohkumar@quicinc.com, robh+dt@kernel.org, srinivas.kandagatla@linaro.org, tiwai@suse.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Quoting Srinivasa Rao Mandadapu (2022-08-22 01:22:01) > Add efuse evb selection control and enable it for starting ADSP. Why is it important? What is evb? > > Signed-off-by: Srinivasa Rao Mandadapu > --- > drivers/remoteproc/qcom_q6v5_adsp.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c > index 701a615..b0a63a0 100644 > --- a/drivers/remoteproc/qcom_q6v5_adsp.c > +++ b/drivers/remoteproc/qcom_q6v5_adsp.c > @@ -522,6 +527,11 @@ static int adsp_init_mmio(struct qcom_adsp *adsp, > return PTR_ERR(adsp->qdsp6ss_base); > } > > + adsp->lpass_efuse = devm_platform_ioremap_resource_byname(pdev, "lpass_efuse"); Please do this in two phases: efuse_region = platform_get_resource(pdev, IORESOURCE_MEM, 1); if (!efuse_region) { adsp->lpass_efuse = NULL; dev_dbg(...); } else { adsp->lpass_efuse = devm_ioremap_resource(&pdev->dev, efuse_region); if (IS_ERR(adsp->lpass_efuse)) return ERR_PTR(adsp->lpass_efuse); } so that any ioremap errors are handled properly. Also using a string comparison is not very useful when we can just as easily use the proper index.