Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp241200rwd; Fri, 19 May 2023 19:16:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Fgz+eUGiahZwBSIevg11FsKUmYx3TlZS208ZLOu2EGbIznhcpTA/pNgDoRDF4TB6rhD/r X-Received: by 2002:a17:90a:1385:b0:250:50c5:cabc with SMTP id i5-20020a17090a138500b0025050c5cabcmr8551631pja.3.1684548985638; Fri, 19 May 2023 19:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684548985; cv=none; d=google.com; s=arc-20160816; b=wE6hU0vvioAwIYmln4o5eDdNIaTmowgi1R78T4Oyie0c0LdKoqstmuzJMyjt03y5qV E5QivoXgeWFAB0BQdD8XP5dfhNg1ya7lSwqCNXar0Hfj+6tVdm1pA+N3QZNu7rE+VqVa /EMX2abOC6BCvSul0PMk4R+ejsYcYgHs2o++y5yaE/8Unzeru8GqQroClwiSAK4DnR1+ CCahdReYeLrBY4O2uBdLscRhd4lfTxzzm6CMDfRzUZceuOdQfnwDiTSEdgASJwCoeOLC 5K0IC1SCXAsY/Kwoz2eoqDXxDsWCV1Mi4XalwzbU8UnlgNKt+XPBl9v6QcUb80S3PY9h qBBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=D4wOJUnnPSCQPM/pXBoaDI6zKNVWCIp57QH2d2QwFYg=; b=lborRvagWSogXWHd0QwfA/6kou1xPo1ZqwJavv1INESrtZidVheneM3ZexCEsggevq GZGKhPe2nQwGylLHIEngZhRgSuNNsO3DTbPRUfM2yf4Hh5auHche0b1AX2gtsA+sNuAo Ay1GltGsRVxCY2/j6eohjN3LFtK3j6YKMXZ3PpdU48qKX9OYVp3Jca6ekFcfzqkarvyC +lzTQj9HKRKnxo0G1Pel+O+T2Pl0OvPzsOX3ah7rY1d1bMted0QxIR8gAMqyCyHXZ5+4 cSy/ibZegUQFLElXnY2pYviQo5lVbuowhQadb9nykpgS6hQu8O07VTOum/evS0WL2l3n It7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oRzO0Jqx; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f30-20020a63381e000000b005138de75d17si635149pga.116.2023.05.19.19.16.09; Fri, 19 May 2023 19:16:25 -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=@kernel.org header.s=k20201202 header.b=oRzO0Jqx; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232214AbjETCIV (ORCPT + 99 others); Fri, 19 May 2023 22:08:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232210AbjETCIT (ORCPT ); Fri, 19 May 2023 22:08:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28201E56; Fri, 19 May 2023 19:08:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B178465BCD; Sat, 20 May 2023 02:08:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A7BFC433D2; Sat, 20 May 2023 02:08:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684548495; bh=VvXyl4JMyrOrcQ4+N4CUG8o5DnJlsTXB9lsiZ3ivRdw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oRzO0JqxNmwuwNTW6yAHwkCcnN7ds3roIybgMzQTLvE3PfqR9MA39M9eHsqnUzYAb +W4fOU7lgJa0iVaWRs9mekKjGvAnHtCxfI61cWmR9xtZhhphm3xfD7sKazbgM5mANV mh8SNBpdr++PuQEKWNQjz8lI/+jDT4saI990IzoQxIXznXF1v3JF+f/x/Ua8/JGZtp wz3dTVMyW5ydPUNZzyUSc7gSNj/LatO19pNs9gi3Rj4g9Wx3oR+qo4ObnzDMLG8V/E Oh3rlZ7Uu/RL17lEmvhFw8x+g3LJ7Z+fAELtYDNGlLB0o0cyfUKxd3Jn93RqCQZ8ZG YuZFYTMKCJGeA== Date: Fri, 19 May 2023 19:12:01 -0700 From: Bjorn Andersson To: Mukesh Ojha Cc: agross@kernel.org, konrad.dybcio@linaro.org, p.zabel@pengutronix.de, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "firmware: qcom_scm: Clear download bit during reboot" Message-ID: <20230520021201.t2zeermogm4s5fgq@ripper> References: <1684408823-5898-1-git-send-email-quic_mojha@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1684408823-5898-1-git-send-email-quic_mojha@quicinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, May 18, 2023 at 04:50:23PM +0530, Mukesh Ojha wrote: > This reverts commit 781d32d1c970 as it causes regression(reboot > does not work) for target like IPQ4019 that does not support > download mode scm calls end to end. > What do you mean with "reboot does not work"? Does qcom_scm_set_download_mode() crash the board? Does the reboot always end up in download mode? Or some other form of "not work"? Regards, Bjorn > Fixes: 781d32d1c970 ("firmware: qcom_scm: Clear download bit during reboot") > Signed-off-by: Mukesh Ojha > --- > drivers/firmware/qcom_scm.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c > index fde33acd46b7..a4bb9265d9c0 100644 > --- a/drivers/firmware/qcom_scm.c > +++ b/drivers/firmware/qcom_scm.c > @@ -1508,7 +1508,8 @@ static int qcom_scm_probe(struct platform_device *pdev) > static void qcom_scm_shutdown(struct platform_device *pdev) > { > /* Clean shutdown, disable download mode to allow normal restart */ > - qcom_scm_set_download_mode(false); > + if (download_mode) > + qcom_scm_set_download_mode(false); > } > > static const struct of_device_id qcom_scm_dt_match[] = { > -- > 2.7.4 >