Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp492706rwl; Fri, 7 Apr 2023 00:08:56 -0700 (PDT) X-Google-Smtp-Source: AKy350bj3QYWmaEG/O2KlDRuO1djiNkCJ2SDYsl9IR0j/CzJh6fafp8AZ/nR4GQs5Fsaop7GiqSm X-Received: by 2002:a05:6a00:3244:b0:5e4:f141:568b with SMTP id bn4-20020a056a00324400b005e4f141568bmr1686979pfb.3.1680851336566; Fri, 07 Apr 2023 00:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680851336; cv=none; d=google.com; s=arc-20160816; b=Ce0slbfKMX/pn1ibP2rt9Y+o6Sij0mPTM3IT7qf3YdfWsZSaYYLvwzFX0X4ViEkj2D hO+FfTkpEQhR5lq2MixKa2snQFmEs+JVLxJvzvFtvd1386dxziZgj2XxDXzW9fW/8SWh m0+l6oYZ1Z48YL1Yg2TDxX/MT3azxbsNZVViG/XfM8ppjcUkCXgenaZCJgrQNCdAYIYh bz0GV2UG771PHJro6PezHCciPNOqQdr0hUVJGfXngkBQLjV8nc862hIqTzB15pcExbuu qWq/i6vmkgmbIVRKq35qyCTQ2Uv0829nOMbnyAwTEEju/anX9nsgvc9VLnY6QHzyL+qq 6MEQ== 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=yDRZJb+gw9WKl+q/YP3+9vfEWrdxXYb08xE3KjrncwY=; b=zKrryb3UgvdakBvMy+JvVSA3+ovYk/HU/XgaJDZErk2JllASZtJ8yvLmKjoJmZ2vnQ 2iTuHtfOLe2opqo/ahkMYbt5ch+N+obW1SDF1QRZTsuHWCFTLIcC2xd4hDr0CDWpyvIj egZYFA20iiT3nxguqMkXeB01+Aw80iZnfNgH0UjF7dCokYEFr43zrSgxJ0Bi0XNxwyD/ V6JyH3/AkbMXgE/MnNyP2c0fI7bap4d+yHSvlc53Up/ODlf7ayLoM2yhNztFVUekxEIE GC1D+h3ZWGALfAzumPnZ8vzDsCKuo9TxvAgTJd1AUh+W2UbhO7Dx1UW4ymlCuSvr8iZJ Fm7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TlUNuHXh; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f186-20020a6251c3000000b005941ff7940dsi3061473pfb.203.2023.04.07.00.08.36; Fri, 07 Apr 2023 00:08:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@linaro.org header.s=google header.b=TlUNuHXh; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S229506AbjDGHCo (ORCPT + 99 others); Fri, 7 Apr 2023 03:02:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233753AbjDGHCm (ORCPT ); Fri, 7 Apr 2023 03:02:42 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7478F7ED8 for ; Fri, 7 Apr 2023 00:02:40 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id m6-20020a05600c3b0600b003ee6e324b19so24771011wms.1 for ; Fri, 07 Apr 2023 00:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680850959; x=1683442959; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=yDRZJb+gw9WKl+q/YP3+9vfEWrdxXYb08xE3KjrncwY=; b=TlUNuHXhE7dkX3ma2znO7zdAacJiO27ghArmpkXlH8c3ATv+KBTc8LUhyVrkypI+mP 0zQlggzvEemyf2P17MWTNYZVT5pEmY7G8l0KpU4b0QsyPvMfMJZshCs5c4HdBgpV6MQP XN2grzseW68CfcpULpwxh3ynO/USV/6im6FxHW40/svQL+ApI5uK1eCRpcAHn1PqPRYE iwww25egOIvVPfxbt4pMX674CTKLbiVEO/0Ip1e+6ahSlHwFQkQF7naCFmxlgJCIHPZU 6QypBjxTNvF8oRGQexdGN9PM2UNsP9cuq6GQxZBhFfnm80WY+czp/4FjLGOZC9ZJW9dw 8zbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680850959; x=1683442959; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yDRZJb+gw9WKl+q/YP3+9vfEWrdxXYb08xE3KjrncwY=; b=BrG2hUL+0PQVFD56tZ/X7CoO/XW+JlcLoOC6DHwxLVvzaed5cKDwysZ5K9elSeqQAC DeCBH7rxb0wfTjOvx0QU6n9ePHvwsnrSKthmxb18H3v96H512DU+RbTp29ni1gK2UWzS TY/BZK01jY33G8ubufCE0z/AgPwvpGI6bMjq8JwTkKqd19hXd4QM0nIcxCj+oSBAi4DN 1BmqHgmoQhN9mklrBN6FGYJDG6UtaAkluZOZhi1HXFmiE09GhD38tPXeIpLG2CArxD1N b7NZQW4uha8tP2WvF07EgJPNBd7FHxC01i9WfalfSg7ffUB3MrmSs23xpXGj/zYLW5Ud QjaA== X-Gm-Message-State: AAQBX9eEJFfWNera+c80zWNUB7e09PQm2I/RT0y0nPGouKOMFr+3OFt6 +mDEMWLK52s4n2uwAS1KL7E3KA== X-Received: by 2002:a05:600c:2202:b0:3ee:289a:3c3a with SMTP id z2-20020a05600c220200b003ee289a3c3amr566623wml.30.1680850958894; Fri, 07 Apr 2023 00:02:38 -0700 (PDT) Received: from linaro.org ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id i42-20020a05600c4b2a00b003f0321c22basm7224793wmp.12.2023.04.07.00.02.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 00:02:38 -0700 (PDT) Date: Fri, 7 Apr 2023 10:02:36 +0300 From: Abel Vesa To: Eric Biggers Cc: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche , Adrian Hunter , "James E . J . Bottomley" , "Martin K . Petersen" , Herbert Xu , "David S . Miller" , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH v5 4/6] scsi: ufs: ufs-qcom: Switch to the new ICE API Message-ID: References: <20230403200530.2103099-1-abel.vesa@linaro.org> <20230403200530.2103099-5-abel.vesa@linaro.org> <20230406201634.GA20288@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230406201634.GA20288@sol.localdomain> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 23-04-06 13:16:34, Eric Biggers wrote: > Hi Abel, > > On Mon, Apr 03, 2023 at 11:05:28PM +0300, Abel Vesa wrote: > > Now that there is a new dedicated ICE driver, drop the ufs-qcom-ice and > > use the new ICE api provided by the Qualcomm soc driver ice. The platforms > > that already have ICE support will use the API as library since there will > > not be a devicetree node, but instead they have reg range. In this case, > > the of_qcom_ice_get will return an ICE instance created for the consumer's > > device. But if there are platforms that do not have ice reg in the > > consumer devicetree node and instead provide a dedicated ICE devicetree > > node, the of_qcom_ice_get will look up the device based on qcom,ice > > property and will get the ICE instance registered by the probe function > > of the ice driver. > > > > Signed-off-by: Abel Vesa > > This is still silent about how the ICE clock behavior is being changed. Right, I'll add the some more info into the commit message about the clock being handled by the ICE driver. > > I'm still trying to understand all this myself, so please bear with me, but my > understanding is that the UFS clocks can be disabled even while the host > controller is runtime-resumed. This is called "clock gating" in the code. The ICE clock is now being controlled by the new driver. > > Before, the ICE clock was just listed as one of the UFS clocks. So, it was just > managed like the other UFS clocks. > > Now, it appears that the ICE clock is always enabled while the host controller > is runtime-resumed. So, this patch removes support for gating of the ICE clock. I just tested this and it works as expected, which is: ICE clock gets enable on qcom_ice_create (via *clk_get*_enabled) and then, on the runtime suspend of the UFS, the qcom_ice_suspend is called which will disable the clock. Then, every time UFS runtime resumes/suspends the clock gets enabled/disabled. Hope that makes sense. Let me know if you think I'm missing something here. > > Is that intended? > > - Eric