Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp67072rwl; Thu, 6 Apr 2023 13:17:56 -0700 (PDT) X-Google-Smtp-Source: AKy350aiif/8h/lZdk7GL6rBBDsmctvbSW5ReZTz+LhuPxT4BUa5Zu3F0HoYg9A3Twh3LHqDeCmx X-Received: by 2002:a17:906:bc4b:b0:947:55ad:dd00 with SMTP id s11-20020a170906bc4b00b0094755addd00mr123169ejv.26.1680812276483; Thu, 06 Apr 2023 13:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680812276; cv=none; d=google.com; s=arc-20160816; b=hpq25WY10f6VnXNTSAhw3mmfp2lOtj+MgdnkCR+pZlttfMP6GI1VxFjMEczSI1I258 NxWHz/0ClT4qL9M+JyL2nF7sQLIxXHQ2wJYixlsa17CO9k/nDbbAvb8+SphqLn3662A0 suFm5gGAaKAloy8o+CtqBFmdSjK4/mlcfYOj9TztapV2w8HlPEjvsr562rXa2VJPvTkZ 9FLXakjsIzw1YZS7jEePyapth/bumxuqYYK3EcYnmoC2yDKvJaRsBGDv8SWPMMwP1ttn RQ8DmAuT2oomI9FTf44+GrJC6YSmuYfq9NWsFGCapRii8AY9pM+mmoU6/V5Bx0deZC+g ysHw== 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=68ofF97GKlBbVgxA7ST1nJ9aps7//2u7aA5QRGVgdEU=; b=S60soqqDbADrF+gW2zZbyCxRIjK8edrey6T82s2LTGSbISiML7h0hGFg7rRQmCJHEP dZlpYRdywmZDO4+YRUkhRsr0IEJSAXeZcIhR5C+glL/5Yj7SMFVOo4syeAWza655/fV+ ThaWewoJTSdqhYFVb4tzsmTd0m6IiaOLuObg7DCdmjIdY18DNMms1cZdqttXPy2od/Lw RWSwcRgOTs6UfMDDkP0s2RT4UeznpCWHkbHcNra2pfL3lQZ1B4knjWnU5eN+88XImh22 IojMPUDFMSl5oJ+F8UWHCXz/XgoZEZy9p2tX6X4wgSXchZxv0KmtRaKC6DrK4WxOZdYj gcCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eRkFDdcq; 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 os3-20020a170906af6300b0093d6b8fb80esi1759573ejb.196.2023.04.06.13.17.31; Thu, 06 Apr 2023 13:17:56 -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=eRkFDdcq; 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 S238586AbjDFUQm (ORCPT + 99 others); Thu, 6 Apr 2023 16:16:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238444AbjDFUQk (ORCPT ); Thu, 6 Apr 2023 16:16:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DF756592; Thu, 6 Apr 2023 13:16:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CD7CC64C01; Thu, 6 Apr 2023 20:16:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92C57C433EF; Thu, 6 Apr 2023 20:16:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680812197; bh=Ro81oFs2ERAZEjBoyQDuaMoEroanaW6iQPKQU7mVPEU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eRkFDdcqoGk64bp4sT+M9/sjnM3oJqqqFa2dofyP1WAn1JhXccOhbdpxbyTmu8TMS JWnOy2uQeOiJODNWHP7bJUSzb4d5M7BCWqCs3JwxfAeXj7OxEyBgXU0nbYifzB7Se4 5XGHJ5HCAU04iATsAYymN3/hh0YExMF56CzNN0aTMLVlA2xTSHz6p0xjjHSsGduug8 zVCShD2Cv7sBYRv2vbj9r+g1Caq3c/JbwfdMEKnmRwq0QPPM1+4Ecc/xuVIp0YCPGj /8z0S7YvyK3861/A3gyEaFP6Nr5J7g+cY6gyRo9dZXllu9MSv+FassMFU7aSFthh3E fMXJZCq8wDVPQ== Date: Thu, 6 Apr 2023 13:16:34 -0700 From: Eric Biggers To: Abel Vesa 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: <20230406201634.GA20288@sol.localdomain> References: <20230403200530.2103099-1-abel.vesa@linaro.org> <20230403200530.2103099-5-abel.vesa@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230403200530.2103099-5-abel.vesa@linaro.org> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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-kernel@vger.kernel.org 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. 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. 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. Is that intended? - Eric