Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp805128rdb; Fri, 26 Jan 2024 11:08:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7i+Wbvv6NjzTYmViYIPRWbv9MQf00wbIy5oKFCnHm1u+JrLh68PHPp72xJ77p1e7JAbKU X-Received: by 2002:a05:6a00:26e7:b0:6db:cbe1:f93d with SMTP id p39-20020a056a0026e700b006dbcbe1f93dmr377923pfw.32.1706296090411; Fri, 26 Jan 2024 11:08:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706296090; cv=pass; d=google.com; s=arc-20160816; b=aTi4P+Ic9mZQwallCHWgcQ94AcAunTuG+GicuSmP4/2eZ3oZazvS1a/NFo28elxMEk WEg6pcCqCXmhUYjGfiEihlrgm3aV0wGOv9y+2/ONkiWO+Srlz9ngBbJCx4elHY8O2f/m b8CgVEOlBBv+fK00353maZgoW8l5VRMiexCoipq1zaHX+y9w/wOxyOsdDOWWwYLiEPG8 tSYTvh/6UxS8SBGbKXYgr+kPEFNIjJ37XYMv8Ik3qnVhNwRcClaImgqbHbu1Bjio3q2M znjJ6rYdfYlWh1uLbEIbrIcIh4wxeraReV0NL2qqoDWc4ywJoE+3e2UbEm/PN0DDApF9 fHTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rWsJei2U4epBGcewDqGR737SNBLmZa8PS1oEq3I95Aw=; fh=zXbQcAgx+/XddhZboQL16+stcaB9DZXuoRUlpNU2XRY=; b=lj3fptr0+qWV+qLP8riiRbDLxTv9DX4T6tLcaXtF4vfDdYHzgRMm485b/hftLkXClp Q06kwQ92FSTu/wFYKgwCJlGbvpegEjDgfAqmCmtQ7np3N9M5qKV3XIiRBmIVpf4HWztg /ea7cGiS/H2VW2OB7FVi5NuI3B22AKRNzUA3MyOfzHJgs6F7U/jj3cCSH7w55WhHFfBx E7ofTAdpfsd/vTf7mT6aQthgmBiUSP+u1gfk5Lhpn30HKixX4mGJelwb3VSDalaEBqu2 Af4M/2kcbymP3y6/hlkGPp3omjKbMdOpNU7eKft10VwTQnmgRy0iW9Inoi3EScNAub6T Xe6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IwzLJvBc; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-40541-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x9-20020a056a00188900b006dddff46330si1572736pfh.216.2024.01.26.11.08.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 11:08:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40541-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IwzLJvBc; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-40541-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AD95928219C for ; Fri, 26 Jan 2024 19:08:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F302224D1; Fri, 26 Jan 2024 19:07:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="IwzLJvBc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4AC1F1CAA1; Fri, 26 Jan 2024 19:07:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706296078; cv=none; b=TVUNCIAOYVYm1WGHuzr2BA/2GHPTIC2SV/i+3DSU/8xm+8De8WoDRYf+Zm3jqrausxI6uoZ61/J0jNHaJcD7G0s6BT/x6BLZzUR2JTg/O9dI7GxJxJmNMkFIz1bPeULbYu0nhyawMBXFKL441ijXSSWRUpTWC4VHSv0qPqC85H8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706296078; c=relaxed/simple; bh=w76WQZwHmCAgG8Z0pclPra2iK4UcbBg/K6jGmHZCnEM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HUW4DyalskK+o6GpYMUWO5Veau7JdiEhkml0F6OZ1AsLb9TokP1EDzn/xqLFUdR+HiB6AFd55wMKgWPE4Ys9XWy+5HunR1p726enq28BPm5bXMGE6DhpL51DgZZrxhF0zyAXreuVwVHFfIs7Nr7brCI3m7U/u4qtDHfM3/KrwMM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IwzLJvBc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAF60C433F1; Fri, 26 Jan 2024 19:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706296078; bh=w76WQZwHmCAgG8Z0pclPra2iK4UcbBg/K6jGmHZCnEM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IwzLJvBczl3h23mDdcH/l2aRInlWzX22xOABe5YWbrm+TbCAV+t2dRCqhjNBo5pEO mPmcBmFJwcZV6IjpyiIREajMgdq2+x2UETlGXIB2+ADvhNvIaURJLo+uNdrWhOFlaH X/wE6UHGGZW0vCohl3uSnipjL/ikRQrzmYExy9hY= Date: Fri, 26 Jan 2024 11:07:57 -0800 From: Greg Kroah-Hartman To: Ulf Hansson Cc: "Rafael J . Wysocki" , Sudeep Holla , Kevin Hilman , Konrad Dybcio , linux-pm@vger.kernel.org, Viresh Kumar , Bjorn Andersson , Nikunj Kela , Prasad Sodagudi , Stephan Gerhold , Ben Horgan , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-remoteproc@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH v2 0/5] PM: domains: Add helpers for multi PM domains to avoid open-coding Message-ID: <2024012649-unblended-earthen-6e17@gregkh> References: <20240105160103.183092-1-ulf.hansson@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Jan 26, 2024 at 05:12:12PM +0100, Ulf Hansson wrote: > On Fri, 5 Jan 2024 at 17:01, Ulf Hansson wrote: > > > > Updates in v2: > > - Ccing Daniel Baluta and Iuliana Prodan the NXP remoteproc patches to > > requests help with testing. > > - Fixed NULL pointer bug in patch1, pointed out by Nikunj. > > - Added some tested/reviewed-by tags. > > > > > > Attaching/detaching of a device to multiple PM domains has started to become a > > common operation for many drivers, typically during ->probe() and ->remove(). > > In most cases, this has lead to lots of boilerplate code in the drivers. > > > > This series adds a pair of helper functions to manage the attach/detach of a > > device to its multiple PM domains. Moreover, a couple of drivers have been > > converted to use the new helpers as a proof of concept. > > > > Note 1) > > The changes in the drivers have only been compile tested, while the helpers > > have been tested along with a couple of local dummy drivers that I have hacked > > up to model both genpd providers and genpd consumers. > > > > Note 2) > > I was struggling to make up mind if we should have a separate helper to attach > > all available power-domains described in DT, rather than providing "NULL" to the > > dev_pm_domain_attach_list(). I decided not to, but please let me know if you > > prefer the other option. > > > > Note 3) > > For OPP integration, as a follow up I am striving to make the > > dev_pm_opp_attach_genpd() redundant. Instead I think we should move towards > > using dev_pm_opp_set_config()->_opp_set_required_devs(), which would allow us to > > use the helpers that $subject series is adding. > > > > Kind regards > > Ulf Hansson > > Rafael, Greg, do have any objections to this series or would you be > okay that I queue this up via my pmdomain tree? I'll defer to Rafael here.