Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2384632rda; Wed, 25 Oct 2023 00:42:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcTIOe62bIyXV24LqwOl/K5JoEMaKH9JviCHM8DTSqzpUMFFMFdyTnXmFNHiD0m4l7ceoK X-Received: by 2002:a05:6902:1144:b0:d86:357:e314 with SMTP id p4-20020a056902114400b00d860357e314mr17229155ybu.47.1698219762577; Wed, 25 Oct 2023 00:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698219762; cv=none; d=google.com; s=arc-20160816; b=AfRJVlZmm2m02N5KoAqsEq0biQpiKKYuuTz/9Lt1DXKwweBH8XcmPIn+ru/JgSq+1S L8Ldu3KOYCHu8F5CTjP5eIEaHz97kNSOKt8UlZePWYQU1JeyRtpOx/eHotRADYbJg1I9 zjWI47WFpi9GoA7CMxfXAQs9cOjqmentg9xiTNxFam10bzgayLbijLoVohYIXjx4kjc1 bWXOs8Ce4qTzAHVkl/KtiEcWyz/9PYqWOBIpqsjYPYrsXfmMsmpAizNN6L/ym4h9Ecy+ x+bctNLeZ3ochOrqZgVbJHDPrdBWe4iw0gsWorthnjmTkF7fHbwc/AjuozFU2Mn8aBcY G0qg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=E2ShKh+3MQlKc6KOCVOpH2x7GWR/edWf6LNonPdfjDM=; fh=hF2IX//BantNhChSp4Nm0ZGu4h9hd2vvlhXxC4UhhDE=; b=iUvmvUdO+pMtF0oJxsRVkrDdjAxQ8rz/gOXLU0Z0bcYysa4OupRZpdzhhy/bro9nDQ NHsoGD0xOw3Chgo8be6GBt0dZgPvKGhuzTvyLEmXwyw/QCPeONQ3mSYrD/2Gnl0fG57U zwWLzhfv67QnUjIgIgDhXcApoYAdTxk2iUS7UJcUTH/ke8t/a4QN8P5W4FSminbASx9i eZzAMWNnxxW3TF/cBjusLgJvbNhX6r+xDYGiTQQMrq+197y/x/YJrvhgqqgCaszZoeT/ UkfLBSpaqRjc+HC7i6X0sSP7abPXSDcciLgjZxEGUm/VphEWLP+UPnPEY7sojVCMYNkL 8y5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HqSVHNOF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 63-20020a250442000000b00da037caea46si3640167ybe.680.2023.10.25.00.42.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:42:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HqSVHNOF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4E4A580785E0; Wed, 25 Oct 2023 00:42:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233585AbjJYHm2 (ORCPT + 99 others); Wed, 25 Oct 2023 03:42:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233479AbjJYHmR (ORCPT ); Wed, 25 Oct 2023 03:42:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2EC61FC9; Wed, 25 Oct 2023 00:41:38 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B18F5C433C7; Wed, 25 Oct 2023 07:41:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698219698; bh=AfCalJj7ZkoRwGtErTTI+0JtKyrgUPXCqMrGPh9iMXo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HqSVHNOF82q6jHZRldi3AtUFmC+HWXd9H7YAYpkMk9IilvZkDKR/OQN21yuBN0Fdi 5ltaSGigA8T2UJJ491MKZ26/pirER1zOfUaJ0qsilGjHkx4QfRqPCqxGGrp2pAxrYL y6mvo6YGKGTjRDyh4xLR6kH5q8BjiJ6wDAXa8UvJqP8uxY5QrHYv/NqnGpCFSRXQWX OrdxwmvL0hJjF0jQpQMC5UDB+RqtVbdZm2qn9PYkCIEKII4K+FJPU/1Yhdq1Nms98U z88fXT0/Ti3YxTNqUvlT7McAweGE7uLLSad7L2BHS5YcIOY0ywtFSbtLFJQ0aeA/dX gWC2nRdqOW7Ww== Date: Wed, 25 Oct 2023 13:11:28 +0530 From: Manivannan Sadhasivam To: Ziqi Chen Cc: quic_asutoshd@quicinc.com, quic_cang@quicinc.com, bvanassche@acm.org, mani@kernel.org, beanhuo@micron.com, avri.altman@wdc.com, junwoo80.lee@samsung.com, martin.petersen@oracle.com, quic_nguyenb@quicinc.com, quic_nitirawa@quicinc.com, quic_rampraka@quicinc.com, linux-scsi@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , "open list:ARM/QUALCOMM SUPPORT" , open list Subject: Re: [PATCH] scsi: ufs: qcom: move ufs_qcom_host_reset() to ufs_qcom_device_reset() Message-ID: <20231025074128.GA3648@thinkpad> References: <1698145815-17396-1-git-send-email-quic_ziqichen@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1698145815-17396-1-git-send-email-quic_ziqichen@quicinc.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 25 Oct 2023 00:42:39 -0700 (PDT) On Tue, Oct 24, 2023 at 07:10:15PM +0800, Ziqi Chen wrote: > During PISI test, we found the issue that host Tx still bursting after What is PISI test? > H/W reset. Move ufs_qcom_host_reset() to ufs_qcom_device_reset() and > reset host before device reset to stop tx burst. > device_reset() callback is supposed to reset only the device and not the host. So NACK for this patch. - Mani > Signed-off-by: Ziqi Chen > --- > drivers/ufs/host/ufs-qcom.c | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > index 96cb8b5..43163d3 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -445,12 +445,6 @@ static int ufs_qcom_power_up_sequence(struct ufs_hba *hba) > struct phy *phy = host->generic_phy; > int ret; > > - /* Reset UFS Host Controller and PHY */ > - ret = ufs_qcom_host_reset(hba); > - if (ret) > - dev_warn(hba->dev, "%s: host reset returned %d\n", > - __func__, ret); > - > /* phy initialization - calibrate the phy */ > ret = phy_init(phy); > if (ret) { > @@ -1709,6 +1703,13 @@ static void ufs_qcom_dump_dbg_regs(struct ufs_hba *hba) > static int ufs_qcom_device_reset(struct ufs_hba *hba) > { > struct ufs_qcom_host *host = ufshcd_get_variant(hba); > + int ret = 0; > + > + /* Reset UFS Host Controller and PHY */ > + ret = ufs_qcom_host_reset(hba); > + if (ret) > + dev_warn(hba->dev, "%s: host reset returned %d\n", > + __func__, ret); > > /* reset gpio is optional */ > if (!host->device_reset) > -- > 2.7.4 > -- மணிவண்ணன் சதாசிவம்