Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp693680pxb; Wed, 27 Jan 2021 19:33:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkWUktJjnW7DrqB+3rKkEEXY6Ncizq6LLYWCVADJxgZ/mqG4F/n691e8NRhb8Hv99AIAXN X-Received: by 2002:a05:6402:149:: with SMTP id s9mr11890152edu.247.1611804781638; Wed, 27 Jan 2021 19:33:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611804781; cv=none; d=google.com; s=arc-20160816; b=qIeewOXjc8tlK6FHnbj+ua1bkp4FK0RjpmJ7sOld/Wqi1ChccNmyeI15bwDmauC0RB 1zwGsa5RF2SrGdFA+WQzoTeWFSyO5w4mRkZEdgvQOoRcFhFnQGbm/C90zpiNHURDX4V9 wCmY9kc5mVjTG1zjrx7q9KGVR20QhZnKDuZF4JtyTk4U0U1r0YfBBKOTQ0IxXvfZmoPW 3vVAXXoFkHkVMu2plGFdzIa32P2G7lsfDqrcGHusNcLBdEJKUg400Z4X93impwz+2qJ1 LiMMtxOAbTLDOvUTRQ7cm2ui382AgiyBM4xCzDnr9QM0GFhRpuODOoduSgXl5b14+nUw CNbQ== 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=bycrFGxpFESrx+c4otqRsuFh+D02wUypmFMxBRknlK4=; b=kgQs2JSeRCfLmkpVn/n5rZtsCz02ghWPNX733E0+ipn+jPdzqCby+xugakg1gkqI+z 9bnNUcL+c8axo2uZGfdei4vxvNBKOL54eei8U2Wvdh/6+g9pnH6bTBHfHhpaT7korEmG wqFm78/R6Y4kjvVZT9kBNiaCR/mkuDDLibx4UGffPQvnKc9qFhaqGZ1ID3ognYhogCKs 7eLXNosNFP0+oDPjyxmP+v+UEx0xGchZ/hcwhrJ76phYzRBr8GQqqTz1F4siGf6cVwQg tAmBTYLi84dzscaHLj9WciScyrylBOOkrgNmv/Ie/txT/1Aq2AH7NLX9+mmVDRkbQlie 60RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UBJ0MbjD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si109170edm.453.2021.01.27.19.32.37; Wed, 27 Jan 2021 19:33:01 -0800 (PST) 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=@linaro.org header.s=google header.b=UBJ0MbjD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229528AbhA1D3R (ORCPT + 99 others); Wed, 27 Jan 2021 22:29:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbhA1D2w (ORCPT ); Wed, 27 Jan 2021 22:28:52 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E880FC061756 for ; Wed, 27 Jan 2021 19:28:11 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id i25so4582912oie.10 for ; Wed, 27 Jan 2021 19:28:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=bycrFGxpFESrx+c4otqRsuFh+D02wUypmFMxBRknlK4=; b=UBJ0MbjDr6+BGF80tKXERVTyHoyOj7tIHcgu4yaM8Q7fFOx54mS/MbFiUQA/jo7AdF Q8vjF6xCkJaYmCs3yTB9+Ib9Kx6nR/Axulu0pruKSZgf1CpiIxw4pwaDtmUjxMpUEEsr logHokRTDh1pJXp7t6OzUyBc0350Mhoh+qEzVCLue+HBclPOxwZkDIPfnqVQfTIvwzfr IyFl+fV7kUoPDE2mNAO076fxA+82ZvAFaGWtdGe4M0sV0Fs3kE1pA80VkgHbOB7y5KTc OdYEzcan5BGxaeF6K/rB70vtClKseV0zYuPqp7zpHdyjt6u+8j0O8WSgLhYa+R/Hd1bd pvSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bycrFGxpFESrx+c4otqRsuFh+D02wUypmFMxBRknlK4=; b=pqXg/inOkBz3SQAAJDploNlQnLlZHj9ZVpuzwJQHoxZ8W7WMJC6bl7fzDw+WewnnnL qb0V6oe6mXWN7qWyxwlGt3/Smd8gnmQRPdwQwz85OpTDNo+rEebWgEKvgjdEo2V+OdfE LyAZ2y0zCvEU0XhOz3/7U9OkrYjaEItQi73LsVFLe77oRx8yQA8g6n/ZEa7jEGjxhiGL 2vt3HeM7jfpbHLDo5Y01yJ4L1CNcfrf41BwYGjrmqErrayZHe/wQvRAP7pD4kRmURtKe cLQ9Ft/7P0N6TgRXIxUBJq8pNlIHgX7qGkcB1gYUdxV62E+kkcRHg+kV+QD/xnq4mauD TLXw== X-Gm-Message-State: AOAM5312mbo/aIf6tHtaQZIeZZQBORoR9jgiFArOHYz3hCjr7K9hhWfg GKyKb/bCxJdCxeIBCryjUgTV5g== X-Received: by 2002:a05:6808:158:: with SMTP id h24mr5410906oie.135.1611804491367; Wed, 27 Jan 2021 19:28:11 -0800 (PST) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id 67sm752150ott.64.2021.01.27.19.28.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jan 2021 19:28:10 -0800 (PST) Date: Wed, 27 Jan 2021 21:28:07 -0600 From: Bjorn Andersson To: Can Guo Cc: jaegeuk@kernel.org, asutoshd@codeaurora.org, nguyenb@codeaurora.org, hongwus@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , Bean Huo , open list Subject: Re: [PATCH v2] scsi: ufs: Give clk scaling min gear a value Message-ID: <20210128032807.GA5254@yoga> References: <1611802172-37802-1-git-send-email-cang@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1611802172-37802-1-git-send-email-cang@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 27 Jan 20:49 CST 2021, Can Guo wrote: > The initialization of clk_scaling.min_gear was removed by mistake. This > change adds it back, otherwise clock scaling down would fail. > Thanks for the patch Can, it solves the problem I'm seeing! Reviewed-by: Bjorn Andersson Tested-by: Bjorn Andersson And perhaps a: Reported-by: Bjorn Andersson Regards, Bjorn > Fixes: 4543d9d78227 ("scsi: ufs: Refactor ufshcd_init/exit_clk_scaling/gating()") > > Signed-off-by: Can Guo > --- > drivers/scsi/ufs/ufshcd.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > index 36bcbb3..8ef6796 100644 > --- a/drivers/scsi/ufs/ufshcd.c > +++ b/drivers/scsi/ufs/ufshcd.c > @@ -1602,6 +1602,9 @@ static void ufshcd_init_clk_scaling(struct ufs_hba *hba) > if (!ufshcd_is_clkscaling_supported(hba)) > return; > > + if (!hba->clk_scaling.min_gear) > + hba->clk_scaling.min_gear = UFS_HS_G1; > + > INIT_WORK(&hba->clk_scaling.suspend_work, > ufshcd_clk_scaling_suspend_work); > INIT_WORK(&hba->clk_scaling.resume_work, > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project. >