Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7050407rwp; Tue, 18 Jul 2023 09:17:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlF7yUikEY5YG1h2J+6Ba30O65Y7Uf+wEhMgC2IVz0a57qFokBWuWNCnwvBDXlaC5ZywVYBF X-Received: by 2002:a17:903:2285:b0:1b8:5a49:a290 with SMTP id b5-20020a170903228500b001b85a49a290mr19257563plh.43.1689697060116; Tue, 18 Jul 2023 09:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689697060; cv=none; d=google.com; s=arc-20160816; b=CkSgwLAEc4II8hjeTmowBpvB+qRmv9cnyMBErCoLfR0iFBjMRUSr9OqSRjSSBY8ilp 1cBTqjdTgSVn5zfHBiwYmcKFw77ET59Zy/p9npd/h2GlfYdLKCrfAlE6lrr9auXwvqWI IzQindBFctnEOtrA2TlxawNkScMcSgmVJVy58YloV+zc/AfxojHlfigjeBRhFbU+sNS3 yJG+LXhnE85UgNNYBZFplqX4TlLc6sErtf7ywDFgJd7iubXZ0kU4AVWI/sMLiZj7i+Mp sQp4sMizTDX1V4luO5ojy0DqAOKk7fOLhZebJIZumB9+ccg7DbyGOO0lcPLo0iLgNTOi wCOw== 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=I/I1PTyvIp+pc46VyVwLnU1hknbuZZFsxsUAXxRQQig=; fh=vUDKYGdD7hWF/RQ8VYCT/AkCfeBQkItwEM9AB8M7dC0=; b=qbmvsXHdS3BSqSWZHBzwZXR1PGcxVwvGCkUHLg5wD33wSmvidwE5s+y2fSuWNziVSm B6vhIy7YayCt5ePIxv/AlYmVaCIYNuqZmkfvFyDt4s8VyCpf/AnBm1fzZLPwAmfYJc4Z +7rlKnpBWWiug3JvL7ZW2uHBd8JnftBbLbC/VP1SukCh2KCLRY5i8FBqHYDEPdhff1xb WW3jr+THGu5gCDUYyA7fNHT74Xb+XQkLeBI4r3m/YuCq/e1bVdWVaoJOHnocVvsiHM1/ tLsTEaC+jVaQ25Us9g42kLmvXFfdzgsFagj612EC0UqfR5ZArqpTMCAfcwWVEHdoO9DV 7r/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F8nqHHPz; 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 l13-20020a170903244d00b001b8a699d248si1922676pls.389.2023.07.18.09.17.26; Tue, 18 Jul 2023 09:17:40 -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=F8nqHHPz; 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 S232849AbjGRPju (ORCPT + 99 others); Tue, 18 Jul 2023 11:39:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233346AbjGRPjr (ORCPT ); Tue, 18 Jul 2023 11:39:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDE20E52; Tue, 18 Jul 2023 08:39:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 72DDE6164D; Tue, 18 Jul 2023 15:39:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1D56C433C8; Tue, 18 Jul 2023 15:39:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689694785; bh=niFUIW8RgEpvAiA6LUCdCCanWa0dt1Z+kgLKjKniI74=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F8nqHHPzXSuaiu4yqCxVn6565ivWW36QEwkPKlE4Yfn7Y2zDQ08Tlk+6MG1k25YCY jLImfir4nCohVHrD01iUvnCVkW6XrTh7ApdvGcmOZzH1/a6N9TU6KW4VO31yHNNgAx Nc+TfTJgONI8Wz6uq4mJhfIDRv0VFizJRGOIkIfr2d41zu7uR3l1gwowN6C+EDZnPw YaUYTMALn2uo46LI0tUUaKDB7oehgXlsLawg6to9S1yQNiDnO+LBdxcioakgMUYd0l yWYJAvJinQjqIwDxupQRzyocLyfylbXKpCaPxQ+ZcaxQ6zyUSlhdlGvhWoaE/EgVvA QL3pz4SaW4esg== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qLmnr-0006Bq-1J; Tue, 18 Jul 2023 17:39:55 +0200 Date: Tue, 18 Jul 2023 17:39:55 +0200 From: Johan Hovold To: Bjorn Andersson Cc: Johan Hovold , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Taniya Das Subject: Re: [PATCH 5/8] clk: qcom: lpasscc-sc7280: fix missing resume during probe Message-ID: References: <20230718132902.21430-1-johan+linaro@kernel.org> <20230718132902.21430-6-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, Jul 18, 2023 at 07:58:41AM -0700, Bjorn Andersson wrote: > On Tue, Jul 18, 2023 at 03:28:59PM +0200, Johan Hovold wrote: > > Drivers that enable runtime PM must make sure that the controller is > > runtime resumed before accessing its registers to prevent the power > > domain from being disabled. > > > > NB: the clock framework will runtime resume the controller surrounding > operations, even so during probe. But this is not done for resets and > gdscs - and in some clock drivers we poke registers directly from > probe... > > The one time this really matters is where we associate the ahb clock > with the runtime state, e.g. in qcs404 turingcc. On most other platforms > we just mark these clocks always-on in gcc... Right, I started looking at this with respect to the PM domain, but my initial commit message only mentioned the need to make sure the controller is resumed, which would have covered such interface clocks as well. And while ending up with a concurrent request to disable the PM domain is not that likely, there is currently nothing preventing it so it still needs to be fixed. Johan