Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp607402rwb; Tue, 25 Jul 2023 23:04:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlHqLjpZnDUSPxTNhUIHDkQbkzM/BrqsxC/LoXvVOSJZplLgY/x19a+e4uBysBMHxewqcrSJ X-Received: by 2002:a17:902:db05:b0:1b5:4679:568f with SMTP id m5-20020a170902db0500b001b54679568fmr1079505plx.45.1690351485480; Tue, 25 Jul 2023 23:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690351485; cv=none; d=google.com; s=arc-20160816; b=p0Syvo2YK3BMJzDFVcbRGoxDK7M1OiH0qA0K2CDDtadkq+Lu3WdGbcoYcdt9aQo+PN Yprgug5F1LkzxsWEyZ6OrTym36RzZLSdyeOtyljCmrze8M3YNVt26n/Q+2Us2oCTUZik 88iTDmXne5ayL1yhoCQhrRmh/AtZemsDSP7FZirmq1uVIuU15prbpxydWBYXTZiAUJQv PoKhLPREO2Mlcr2uyohWdmUQ0iZpPZe4M5MejOMyqgGdKoDiwnt8gtixap+29g87BXOR ALLMHzqur9hr18hRqNAg2qJm2y1U8qFtI61/0NzHJRiorr0frcy9wCyk9r365yEn/jFs k4og== 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=3nAh7qlY5pPVw0KnpeSMskbg/BQqMJbSD97DIfz0CPE=; fh=cEI+pfursb1/kukTJv0TgHeJeYLxGCetbdx1FDiOrMc=; b=OZtosOZ9aYwE09Fz8CQN+qaNkOKUOntcnCnZOgvraKJiZf+yF4jpMK1l8L7v8HXESA XVDdjnfZxLJVufaiYYPDPYLrOIwzD5UEPp/Acskud/rV7OxQVh5H1vhGzSiZ+KCeoeiG Tv1DseL97rmW850FVExBLT1q2aGY+/VMMqhP7JHen8mkkJks6rbv7PeShvS2mGX+d7+t NgFNNs11Pnd3NBzKqosU5kjwAbpwT3WGhgpPA1rSWYSoUzR7Gb/HtjIqnu55uJ7FI2/z smk3L9LzQK/WIQTaB+ey06MDJSqdjwq4Y49Pdn9l0NsOnHjAMtC+tdOa1Bu2oeO/n5dI v6tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jpnW0o5c; 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 l20-20020a170903005400b001b9c34985e1si12095343pla.497.2023.07.25.23.04.32; Tue, 25 Jul 2023 23:04:45 -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=jpnW0o5c; 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 S231334AbjGZFiI (ORCPT + 99 others); Wed, 26 Jul 2023 01:38:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229949AbjGZFiH (ORCPT ); Wed, 26 Jul 2023 01:38:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53FFDCC; Tue, 25 Jul 2023 22:38:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E55E661536; Wed, 26 Jul 2023 05:38:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFA2AC433C7; Wed, 26 Jul 2023 05:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690349885; bh=iQOB7tO4loCykPUVe5qLzo1AABQ81jx4x3ex2u+OqVw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jpnW0o5cWQAPGRay3/KJ3pkDcFQ3UnCpaTUMHth4tBTzUQCFfQto6RVnMH2L41ThT R7G2nGWG74Y7HnjWztO7tiNvRGvX05jytcIsboKdjOro9tEKnwjb3orZgUmw2dJoz6 U45Wp8TCVk9sXLVpZev1F9gIGPqZHPIyEocbVmpwyIVxPUsv1oThiSLUs2MIJZA+QE KW9tyBAidj5YOS3qUYPQeVUlUUmf/4MXHDjBC0FFivy4DMXF6dLh2P5LP0SAdS62ZY hMrGvcQrwPVS5qpeXwriAVEBI3FDJe5ivffWBWpDA/kTQ6UUdHYLeO3Qlz9NcI0ODS +VRdeN1lS5xPQ== Date: Tue, 25 Jul 2023 22:41:17 -0700 From: Bjorn Andersson To: Nitin Rawat Cc: powen.kao@mediatek.com, bvanassche@acm.org, alim.akhtar@samsung.com, adrian.hunter@intel.com, jejb@linux.ibm.com, stanley.chu@mediatek.com, asutoshd@codeaurora.org, quic_cang@quicinc.com, mani@kernel.org, martin.petersen@oracle.com, beanhuo@micron.com, ebiggers@google.com, agross@kernel.org, Arthur.Simchaev@wdc.com, konrad.dybcio@linaro.org, quic_ziqichen@quicinc.com, quic_nguyenb@quicinc.com, quic_narepall@quicinc.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH V1 0/2] Fix hibern8 enter failure during host reset Message-ID: References: <20230725192710.26698-1-quic_nitirawa@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230725192710.26698-1-quic_nitirawa@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Jul 26, 2023 at 12:57:08AM +0530, Nitin Rawat wrote: > Commit <52a518019c> ("Fix missing clk change notification on host reset") > added clock scaling notification to ufshcd_host_reset_and_restore. > This invokes hibern8 enter and exit on qualcomm platform which fails > because controller is in reset state. > > Fix this by checking the Host controller state before sending > hibern8 command. > > __ufshcd_wl_resume() > ufshcd_reset_and_restore() > ufshcd_host_reset_and_restore() > ufshcd_scale_clks() > ufshcd_vops_clk_scale_notify() > ufs_qcom_clk_scale_notify() > ufshcd_uic_hibern8_enter() > > Fixes: 52a518019ca1 ("scsi: ufs: core: Fix missing clk change notification on host reset") Sorry, I missed this before I looked at the individual patches. The cover-letter is not included in the git history, so this information will be lost. This explains the reason for patch 2, so please put it there. Thanks, Bjorn