Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4574471pxj; Tue, 25 May 2021 11:02:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweOCkSM4Ge8/GDQUkj7YWr9Fzjc/wStReXCh/fT2uolTcITOlN8FDYRiU50cBPS0tC1BEa X-Received: by 2002:a05:6638:150d:: with SMTP id b13mr34253167jat.51.1621965757297; Tue, 25 May 2021 11:02:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621965757; cv=none; d=google.com; s=arc-20160816; b=jN3byEDBvANxbdjlTxWGQC+P67OUyUNSL8Ty0quAuv2g5cE5HAMxcF6I4/CivORWPI bHKp0do0JUqMU/6yk2fqLuERg6tb2COWEwa6MR77xPOLu6M4Pxwq3uX4+Xe9nf9Pfky0 Eub1ndqOEnYSplOVsSHYuauwh9LOnvuB2wrAstNl3MwOhwLlsSxM8t5qF3QCQjXzzKNe zRmT6Oqirraw/2bDh0JnDFk+t9pRFtNwM+1wYtQljgm3p9O9fK/Cmy8vIFEhGwWve+17 bmVUalKRqq6vAC71xMyhfTALejGGkGRiqXnEeqja9kAB3FKiORKfy8sG56opg8ZVH9LR Qlow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=MSK+0MFz2qCFARcKpE7NkQqP5Tr+sTVIlGaMvOiEARk=; b=WFmUDzg/5I0VjDnMg/mjyOWdzCKwcG7ILi9ldr6hJeYQmILcTcWFJJgStk/VwtIzNS ib0gxHkyZVQxLAF0137KLN8V97bygjVKPTMBfgy8yPTmB0luPvjK5ORA07zvNmyll8es 8HW6Wg/W50Hr82mn13/5WXAfADPIcxxZcBxdrKeELnNKXkPYacyZT7jZI10k1AqEapGg 2R91M/wpkSVDqEFYyI7MRe+n+7A8s04jkFsXUvZPz2hF/l/r//FomvYvduGVa17uxs8E fs9qyQOtj6vjHkey2llBJo5er9djwPPP0awm1euvMIAFLxRprM5valYNadhqTbsRij+v Od/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=BELofAnI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si6961065ilr.23.2021.05.25.11.02.22; Tue, 25 May 2021 11:02:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=BELofAnI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233463AbhEYQqG (ORCPT + 99 others); Tue, 25 May 2021 12:46:06 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:55989 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233126AbhEYQqF (ORCPT ); Tue, 25 May 2021 12:46:05 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1621961075; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=MSK+0MFz2qCFARcKpE7NkQqP5Tr+sTVIlGaMvOiEARk=; b=BELofAnIX/DB0NKEHKVkHk73uXbqcZgNgB/ZcWhES/yfr/n1Rqsbp2rbHPvbApHF2I8jmnXR Uu46qEFMWeh9461p5rkWOOfh7Esb+d3BLCiXj0a6rc7J4eQiMaEVmy2Kvhj6OVQ8t/Wnat45 3ToJcv7k7VIro3Ux7eGKY2duz40= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-west-2.postgun.com with SMTP id 60ad2970c229adfeff48d70b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 25 May 2021 16:44:32 GMT Sender: asutoshd=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7FD60C43143; Tue, 25 May 2021 16:44:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.8.168] (cpe-70-95-149-85.san.res.rr.com [70.95.149.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: asutoshd) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9FD4DC433F1; Tue, 25 May 2021 16:44:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9FD4DC433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=asutoshd@codeaurora.org Subject: Re: [PATCH v4 2/2] scsi: ufs-qcom: enter and exit hibern8 during clock scaling To: Lee Jones Cc: Avri Altman , "cang@codeaurora.org" , "martin.petersen@oracle.com" , "PedroM.Sousa@synopsys.com" , "linux-scsi@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , Andy Gross , Bjorn Andersson , Alim Akhtar , "James E.J. Bottomley" , open list References: <186237103353b5a79c3496e619fca894dbc78600.1589997078.git.asutoshd@codeaurora.org> <9b67c25eb7c0bf80075b36660aebdb3788207353.1589997078.git.asutoshd@codeaurora.org> From: "Asutosh Das (asd)" Message-ID: Date: Tue, 25 May 2021 09:44:29 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/25/2021 12:57 AM, Lee Jones wrote: > On Wed, 20 May 2020 at 22:59, Asutosh Das (asd) > wrote: > > Hi Avri, > > On 5/20/2020 2:33 PM, Avri Altman wrote: > > Hi, > > > >> > >> > >> Qualcomm controller needs to be in hibern8 before scaling clocks. > >> This change puts the controller in hibern8 state before scaling > >> and brings it out after scaling of clocks. > >> > >> Signed-off-by: Asutosh Das > > > > > I guess that your previous versions are pretty far back - , > > I noticed a comment by Pedro, so you might want to resend this > series. > > > Ok. > > > What happens if the pre-change is successful, > > but you are not getting to the post change because, e.g. > ufshcd_set_clk_freq failed? > > > I agree. Let me check this. > > > Also, this piece of code is ~5 years old, so you might want to > elaborate on how come hibernation is now needed. > > > > Thanks, > > Avri > > > > Thanks for the review. Hibernation was needed since long actually. > I guess it was never pushed upstream. > > > Good morning Asd, > > Any luck with getting this upstream? > > Looks like this was the last submission. > > Did something change?  Is this no longer required? > Hi Lee This slipped away. I may not get to this soon. I'd prefer to drop it for now and come back to it when I've some time. Thanks, -asd > -- > Lee Jones [李琼斯] > Linaro Services Senior Technical Lead > Linaro.org │ Open source software for ARM SoCs > Follow Linaro: Facebook | Twitter | Blog -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, Linux Foundation Collaborative Project