Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp843889pxb; Thu, 17 Feb 2022 16:22:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJMdt2FFhUZMY4VVDK1V8umYhSBr5+iLWkiz/o7z0HcbGMYKyQsG3eErNhUD+UvbmMaHRH X-Received: by 2002:a17:90a:ac0e:b0:1b8:7c57:b5e6 with SMTP id o14-20020a17090aac0e00b001b87c57b5e6mr5590509pjq.166.1645143763385; Thu, 17 Feb 2022 16:22:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645143763; cv=none; d=google.com; s=arc-20160816; b=U83i8MzYooFI6lbX1NOVe12gqEyxTuY7qyJXA/VW7XEtKoAzHIsPW6fWNaafkMA8MD FsS+yzEBLTYSgE8de48tX8tFvZ+rjBIx8F5y7sAROTAyqQKn+vxKBxHteYinWOEK4FmH V6kJWEw5y2BhX34JZWUZdH1tNCPQrbVhKGqD5IOfv4xeSyehvcWQyZeTMZL/kW2FvLg3 bGFxhQYzkCQ5UlePmPL+TrtnVdhESnvfcwIZ30H0gaTeck7Dal8K0xKBzv6g7qljh2dt VCFAxKjYFN7rZ5xTmR5IqrH/lwViUYCOSrDeeObJ1w+G8PZO6vVVgq6UE7O5p7P5QyNu 464g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=qqLBlmQvhTEWaDAiGN/X+JRlQrUcjRSE7i7NNj0rTIs=; b=Ia6Z8TcsFYfw4+vJ7ul9Wimlh0/u+3qDn9eGg9+fODAv7aGjMbEKLj9hpIdTQfaNcA xf54nBW0dk6h7/h17X40LkFJHOBI1SOuRq8jSEYiNwNICkEwC6PQt8/YmuCqyO6ISR0D 3eZzXMuFIvQrMkCSJ0ODD/HdebXPKT3oAxZc0Tv47JJZi2s1rh0/3/XrxDRHvyi7NO9X aTwglD1L/pdkzJ2uqut+Maii1LzgZCMcyPhZLc6qQBEi+grHD84WB1NQbrnr+5VqmtoC GTMXcj0s52/klPiBLLdeseWTqeg3Yyz01xfBOb22aqSQk07v0odIZlzWUIgcePvHcB02 tH0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pqTSSePX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m1si12369832pgu.534.2022.02.17.16.22.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 16:22:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pqTSSePX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 492D9376653; Thu, 17 Feb 2022 15:46:04 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbiBQXZH (ORCPT + 99 others); Thu, 17 Feb 2022 18:25:07 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:38676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiBQXZD (ORCPT ); Thu, 17 Feb 2022 18:25:03 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 430315577F; Thu, 17 Feb 2022 15:24:38 -0800 (PST) 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 9BDEC617A9; Thu, 17 Feb 2022 23:19:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E944BC340E8; Thu, 17 Feb 2022 23:19:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645139957; bh=qqLBlmQvhTEWaDAiGN/X+JRlQrUcjRSE7i7NNj0rTIs=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=pqTSSePX1hiSmLrSe+M4/EeD+VE6nKICsiAdWQ2G9/VxvhNk305AXT/siVvwi2VJh Mt7HSmmtz9Sz/0P15HKKWfzeU+OcEcnFh5/SNTWcwrmlmRSGmOusXJEWdE7d2naTar 7zE700yGewFCn9LfL9VbueSGP+6lytc1Mqs0QOmVM0gS6G1tUfEHZZE9SqB5j6tiR6 Ltyjd1eTHR36M7J5EyccsR+4V3sUx2HYOKHhx2Y8EF730lXY7meEDbPJUTO4fP3kRh tAEQrYip3RY8YoGlprD3TyED3OFLs+G3hgySmv7O8PT070QJzdbyRj90nMWUbWj7VM hDmjOI3msOGGQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20220209172513.17873-1-tdas@codeaurora.org> <20220210072842.3E796C004E1@smtp.kernel.org> Subject: Re: [v1 1/2] clk: qcom: gdsc: Use the default transition delay for GDSCs From: Stephen Boyd Cc: Taniya Das , Michael Turquette , Rajendra Nayak , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Bjorn Andersson Date: Thu, 17 Feb 2022 15:19:15 -0800 User-Agent: alot/0.10 Message-Id: <20220217231916.E944BC340E8@smtp.kernel.org> X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Quoting Bjorn Andersson (2022-02-10 11:32:03) > On Thu 10 Feb 01:28 CST 2022, Stephen Boyd wrote: >=20 > > I'd prefer we invert the logic so that we don't need to litter this flag > > all over the place. I recall that the wait values were incorrect a long > > time ago on early gdsc using designs but hopefully they've been fixed > > now and we can simply use the default power on reset (POR) values. >=20 > Are you suggesting that we make it the default to not update the values > and then provide means to specify it where needed? Sure! >=20 > I like that suggestion. >=20 > But as mentioned in my reply yesterday, GPU_CX on several platforms > needs a different CLK_DIS_WAIT_VAL - and not the same value. >=20 > Are these values ever 0? Or could we simply add the three numbers to > struct gdsc and have 0 denote "use hw default"? I don't think they're ever set to zero. That would most likely just break things because they need a few clk cycles to wait between transitioning states. Otherwise the GDSC gets stuck and the clks don't work.