Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2690982rdh; Wed, 27 Sep 2023 09:45:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFX4Pmx6eg+EbsnRtyg4ujaprHTTUa9+gFxaOck3VnCAEu6EuxIm4Ww+vc3hZCbSbFags0k X-Received: by 2002:a17:90b:1d05:b0:274:c637:4b97 with SMTP id on5-20020a17090b1d0500b00274c6374b97mr2204899pjb.16.1695833124237; Wed, 27 Sep 2023 09:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695833124; cv=none; d=google.com; s=arc-20160816; b=JHrGBvkw/I9tyyvpO1NP/pecmalWitZ77F9PbpoLPx8/LJ+yiVwLoz6sZL7I72t6o6 10pwxx5ekshsSij0kurDlsfOG3BtNWGz8g74pul1zc6CMh9UbJEEvOC2zEeZVgwkEN/7 LrXmEma7w/Y6P0JLHxSEJuLtHuAJvcUb0HIk0QCtsxqOJnVmDPPfPYL8H4kLs/4kFv8H kAGk9+g3JNF+XFLbiDEKHZ0PHC7G78LTv264h7xgQgkHcv19pGkV7ygpwD6rFS4nj3Dt JvtHfUces4uYsWwz2wjS7gG1IgN2zE20zxgQr0sR2TFy04JO8YXeHB6xbrxKj4jJM8i2 PTIQ== 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=7ILQTIya7HcBL5OZKx6dzjYAup4yveW1HKg0YsYZucU=; fh=glTKZsKTPAyQ2btKA6VMlXbE4+z1PWq3o78mz1hBhFA=; b=x6A4EBiyFpiWba/dUoJLDFUj80hP5lMvW6oOLPs4H8HHHK1n+0cI4QGh0ui9nyiD1m 8WWdZCjYLVrXlqYKn38MN2P8gV5ztMHphkmn1FhxdOQ78WuoSEs8MWIfY4eod4OgnpNQ BsPwYZplbAyFQ5nugrgcmYni5CWcbaISbDup5pnLY2PVOhleqgAJCuDvA2hJcyoJN4x7 ofxJF888mrENUw+3LHfcmQ9wD2+Y3LOlsFTUlQDYFLgUrDY+RQqB/1LgsoPZ0gD5/v3u yAH2yQsoP1/oOHomBogIdoiMd9SKZtd0fCgDynK4G+f+UHbOrjzbb1mfZase8DVYbqgS WHDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nSzohTHc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id v14-20020a17090a7c0e00b002748712d225si18345027pjf.1.2023.09.27.09.45.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 09:45:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nSzohTHc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3A68181489C9; Wed, 27 Sep 2023 04:16:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231352AbjI0LPw (ORCPT + 99 others); Wed, 27 Sep 2023 07:15:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbjI0LPv (ORCPT ); Wed, 27 Sep 2023 07:15:51 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D085C192 for ; Wed, 27 Sep 2023 04:15:49 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-692c70bc440so5836205b3a.3 for ; Wed, 27 Sep 2023 04:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695813349; x=1696418149; darn=vger.kernel.org; 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=7ILQTIya7HcBL5OZKx6dzjYAup4yveW1HKg0YsYZucU=; b=nSzohTHczpdag7naXoE2adPHh/Xn9NhSJno4hgEJwib6XGti0U5R4lKRj4K4UQvOve LxI1ZP7cyshbq5vk81dcylZmz/IBP9dHa9o94q50SPUABCLEcGLcwSayf6Ce4SLbfb3E M0xpZ4I5JDMZnvZfFIrZlYlEE6Hqa4TOc4CctbTJBYc8WmhC1hWbePS+bhgz+WNg1afb kmTJUd7qZR3yxPV3x6PSsiYBwdRfa4yIy2+tc4dY/eAwjSrfv431UVqnbyS/FXsZurjm XpkmC8bS2Ttdok+zTmHyU+TL+ZgZH1C/N7LFrV9zuPRYKZgllzUMCbKM3EkkNOFk8fN/ 8LeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695813349; x=1696418149; 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=7ILQTIya7HcBL5OZKx6dzjYAup4yveW1HKg0YsYZucU=; b=RVj5MW9XdgI4Ic1akqgK6r6SxDO1+dwDCDSDZZxFqnDMtpTYmpYv7bN5HamBqoynTr xPs5R7CBYArMBmKYZPADs9kVzfeA0bKWPeG6nLs4iaUcItiCkEmulhkNHx+ott+ZATT7 9CJoYtU+RAHUdrg9qzpJZduHt/yDkTJkuQLjxaUjrI/QSLcHT1jTaAsWfXAvWJzfYPSo mRiIlXR9V5/aZU0zIlCEmlYUMW5cz8SLVK9RD6udzSdRB07XFSM7k45FNL4j7wi/7CtY Co/dwqWdMZN9Rkc6EjKnxuETceWk6se7hbA/Azwq9E/PSbA21ceha5sWcEt1/Q3uRMOz wt6Q== X-Gm-Message-State: AOJu0YyFnzA+tNwhjtxbEjYYBb5xp6WUG1xXwGQSpl6M5ZTpMeXW6RSg a1uXtWNvJu3rL2/mPQQ/ha/h0Q== X-Received: by 2002:a05:6a20:a11b:b0:15d:facd:f20c with SMTP id q27-20020a056a20a11b00b0015dfacdf20cmr1779519pzk.41.1695813349251; Wed, 27 Sep 2023 04:15:49 -0700 (PDT) Received: from localhost ([122.172.81.92]) by smtp.gmail.com with ESMTPSA id gk6-20020a17090b118600b00263cca08d95sm3647431pjb.55.2023.09.27.04.15.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 04:15:48 -0700 (PDT) Date: Wed, 27 Sep 2023 16:45:46 +0530 From: Viresh Kumar To: Manivannan Sadhasivam Cc: Dmitry Baryshkov , vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, myungjoo.ham@samsung.com, kyungmin.park@samsung.com, cw00.choi@samsung.com, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jejb@linux.ibm.com, martin.petersen@oracle.com, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, linux-scsi@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_asutoshd@quicinc.com, quic_cang@quicinc.com, quic_nitirawa@quicinc.com, quic_narepall@quicinc.com, quic_bhaskarv@quicinc.com, quic_richardp@quicinc.com, quic_nguyenb@quicinc.com, quic_ziqichen@quicinc.com, bmasney@redhat.com, krzysztof.kozlowski@linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 5/6] arm64: dts: qcom: sdm845: Add OPP table support to UFSHC Message-ID: <20230927111546.uyaod34zcjr7npgf@vireshk-i7> References: <20230731163357.49045-1-manivannan.sadhasivam@linaro.org> <20230731163357.49045-6-manivannan.sadhasivam@linaro.org> <04eb9f71-78f0-41f2-96a6-fc759ba296fa@linaro.org> <20230912065918.GB6404@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230912065918.GB6404@thinkpad> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 04:16:14 -0700 (PDT) On 12-09-23, 12:29, Manivannan Sadhasivam wrote: > On Mon, Sep 11, 2023 at 04:15:10PM +0300, Dmitry Baryshkov wrote: > > I'd say, I'm still slightly unhappy about the 0 clock rates here. > > Neither do I. But it is the only viable option I could found. > > > We need only three clocks here: core, core_clk_unipro and optional > > ice_core_clk. Can we modify ufshcd_parse_operating_points() to pass only > > these two or three clock names to devm_pm_opp_set_config() ? The OPP core > > doesn't need to know about all the rest of the clocks. > > > > We need to enable/disable all of the clocks, but only need to control the rate > for these 3 clocks. So we cannot just use 3 clocks. > > If the OPP table has only 3 entries (omitting the gate-only clocks), then we > need some hack in the driver to match the rates against the clock entries. Doing > so will result in hardcoding the clock info in the driver which I do not want to > do. > > If we have something like "opp-hz-names" to relate the rates to clock-names, it > might do the job. But it needs some input from Viresh. I have already given an option earlier about this [1]. You can change the order of clks in the "clock-names" field, so that the first three are the one with valid frequencies. You shouldn't need much of the hacks after that I guess. Or maybe I missed something else now, talked about this a long time ago :) -- viresh [1] https://lore.kernel.org/all/20230713040918.jnf5oqiwymrdnrmq@vireshk-i7/