Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17554163rwd; Tue, 27 Jun 2023 04:50:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6j7mOXVZaBcA5xO9gkyfqdLKSyoY0ld9QYVtaVeAQh30QH/pdHWRKHpgrfP/jHytHpbY19 X-Received: by 2002:a17:907:a411:b0:991:7875:454c with SMTP id sg17-20020a170907a41100b009917875454cmr5568058ejc.1.1687866649287; Tue, 27 Jun 2023 04:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687866649; cv=none; d=google.com; s=arc-20160816; b=qcik2HMaz/udXu91k7/RhBcD0fxudJAemyjFCvzgdxlbiPYQBUYOcHSyakhCM50gv7 bclA1766aKkMGWwcvM1O/ZJCVNRWCFrllY2NGjZbn8xV+7g6KNQZ1LcCa5dRF7SEHDPE oNKbrLNiSyPDma7STRS2tOZBBgsbPwZb4njlCTxhhs1CA+0zVQzUWOC40bRcriF+WCXn VQe5TrQCy9uIz6/TZfep2lF+1tjDCBcG8yZdjWejJoi816LjOiaCW6jFBi0CDivVfXuf E7f3skdw/5FNJrtcify0byT4U/qInKVEToqKH4xRAI3h90q0Z7V63jFiolhOKMyd7ZLF dZhA== 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=/qveybgAP6taOFWwHJBXfIJPuVPb3hl+wx4AUc9T9bA=; fh=Se8mdI5t4VgwkXpE1ksPjlUbwsUe1256q5CZrqf61Eg=; b=OjP/qKCxfGTOb0J6s7C//ykOpUKawEXTcIxksg8B+HOLsBeEtSY0YzEeJe7Bp9ZoGJ q2azdzCPpGQPEHUo5qJRmlwhXQy0LU0KurzXgK5/vPgiEfdSpsnUciV5f/CqrOluXY81 kyLAaKqmKA/jr3zcV2qlCWb/7PzXCEA+saQCltB/XBKg7HInzqaykfs8O9egG+q/THHS u94GWfCAtqBgqULXCJEZDg5ngGYEHiLeL0YIxlJjS7BbtlFApm9gLS/WiCTxbKIs9xL8 rj5Uv5rW2LF9xIlMVZIQ51shenta2bZTp7qs7CmBwCjdVpLHPQAPkO8aHki/ZIh+wAX6 iDIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GVSWGfc8; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x26-20020a170906b09a00b00988919c8a70si3924471ejy.59.2023.06.27.04.50.22; Tue, 27 Jun 2023 04:50:49 -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=@linuxfoundation.org header.s=korg header.b=GVSWGfc8; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbjF0Kqe (ORCPT + 99 others); Tue, 27 Jun 2023 06:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjF0Kqc (ORCPT ); Tue, 27 Jun 2023 06:46:32 -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 260FD10D7; Tue, 27 Jun 2023 03:46:32 -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 77F296111D; Tue, 27 Jun 2023 10:46:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E344C433C8; Tue, 27 Jun 2023 10:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687862790; bh=+xuT7iGZhkP+A211xwLFUYbDH9xRuDSBsLPBdxlsJ6c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GVSWGfc8VRRNlQu9xgNNnViP2jpXw+rgt2dbiaal61Et2lxx3TDxFxngfMBXcbbGO rOUz9Jcg/hiGUoTmb/196Pjb/fQhfV2Pik5Eb8EnBoaryraMVY0uQvRDnyLnyISuOg s6GPCvDLpftNpVILpFoCEJNX/t6y+kjq6nio4WuE= Date: Tue, 27 Jun 2023 12:46:28 +0200 From: Greg Kroah-Hartman To: Abel Vesa Cc: "Rafael J . Wysocki" , Kevin Hilman , Ulf Hansson , avel Machek , Len Brown , Bjorn Andersson , Andy Gross , Konrad Dybcio , Mike Turquette , Stephen Boyd , Taniya Das , linux-pm@vger.kernel.org, Linux Kernel Mailing List , linux-arm-msm@vger.kernel.org Subject: Re: [RFC PATCH 1/2] PM: domains: Allow devices attached to genpd to be managed by HW Message-ID: <2023062741-passion-scarcity-2390@gregkh> References: <20230627104033.3345659-1-abel.vesa@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230627104033.3345659-1-abel.vesa@linaro.org> 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,URIBL_BLOCKED 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, Jun 27, 2023 at 01:40:32PM +0300, Abel Vesa wrote: > From: Ulf Hansson > > Some power-domains may be capable of relying on the HW to control the power > for a device that's hooked up to it. Typically, for these kinds of > configurations the device doesn't really need to be attached to a PM domain > (genpd), from Linux point of view. However, in some cases the behaviour of > the power-domain and its device can be changed in runtime. > > To allow a consumer driver to change the behaviour of the PM domain for its > device, let's provide a new function, dev_pm_genpd_set_hwmode(). Moreover, > let's add a corresponding optional genpd callback, ->set_hwmode_dev(), > which the genpd provider should implement if it can support switching > between HW controlled mode and SW controlled mode. > > Signed-off-by: Ulf Hansson You can't forward on a patch from someone else without also adding your signed-off-by on it, right? Also, why is this a RFC series? What is left to do with it to get it into a state which you feel comfortable having us review it "for real"? thanks, greg k-h