Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp659684lqo; Wed, 8 May 2024 10:42:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgjR9nG9o328W/G7qF61SSOKwEHYexScIzoXm+6OZE+9mht6UwIrD7sgtH/T9u/mA8yv3Vs+ZOTMuziSTCs6I0+KOlxVGOSvwzKS+zfA== X-Google-Smtp-Source: AGHT+IHDAtIvZ9eunKY+KijamDQbV3kaHizbMBjQkFPs8phyhh4NjR3pf2Q6GFEQVMW+l2dmDgfX X-Received: by 2002:a05:6a20:5650:b0:1a3:df1d:deba with SMTP id adf61e73a8af0-1afc8d5e19bmr2972412637.31.1715190139674; Wed, 08 May 2024 10:42:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715190139; cv=pass; d=google.com; s=arc-20160816; b=XAqr08OI0zT89pYmp97NhvNQX0JqA7ApvsPT2SC6s85TBhN5ABVT80VhczRIt+H1r0 93u1q9763CRD3Zt9ex0d5wxQBxv5aSApq4yq7ZuiaY9u5bMKF5Veax3wydaZiImQtHqa J5ilVOSDZhemwUt1+Qp89z5odTq6vw1LUYcwV2XkiiFOEHqwq8AYvYCKjtvKW5+B//c4 2g/8qPp162upP8t7GS6vQHykoEMCK2Rq7LI6amDmawMehT0heOSYR1JXdMBtjOt5NqYU O71Fskh/I8WazEP7C12KpHYYQ463BZ+ep/qOSzU3U+9nKlv6tOVvpCOg+M8kf9UCpyUc j4Gw== 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=rOCYAYk/4JwmzqnbBL/qv10PJF5H7DRT2QaXA8QKZKA=; fh=sFB8xpMKr4Hn4tgAQJj7ZKnrSKzLdT7GpkhMkS+EX+c=; b=KKbZaH23cd3giE5FjR4xXkhiMWe+2a9/GcEeeWKiWxN5NNAkOga5VLHk4hWIx8agvg bW16i695pIZ7h4kYVlASgmom5Sv6oqiFEDB1l+hJH4TID+UqUmmGijGFgP4izNOdpIbd K7A1RhUblAQKbKNgx/4fMvODCfeI1tuo6crmflbbVxPtxf0lqZP+bTk9qU3A7yLo1G9Z 2110bI6X4UoFKDTNxiek8vv7X1ecSvocA1576Ex4gZ3jXj7/0HCHFam7EaLsZEBzuxHA KICf8gMYovKd3d2Llmcb3WvG186CEfMZUKO/m0QlL+jpZI9Eg8jcQJuJxBMVEIFB4OrP 7ZWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=gWvQOHvt; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-173648-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a37-20020a630b65000000b0060257c61207si11635969pgl.752.2024.05.08.10.42.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 10:42:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173648-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=@dolcini.it header.s=default header.b=gWvQOHvt; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-173648-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it 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 5252828974D for ; Wed, 8 May 2024 17:41:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7048C12AAD1; Wed, 8 May 2024 17:41:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="gWvQOHvt" Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC89E1E529; Wed, 8 May 2024 17:41:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715190064; cv=none; b=ZyHwdkWZYOYXbO4ly7huoXvFDNf260L+N19b3PMj8P+kk1bLHaGHHmAQK30rVa1EoG3o/oESS650bLL6ZFqEAka01XzuqSSzclsJVQKK39KE9duK0ixi8+f2W1/9Wi/v91JZUih85uKI+ZSItoicJnVZA8By/M9iaIUVDi9r8jQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715190064; c=relaxed/simple; bh=+U1RLFKF/zn7hMLbbVtxwTGlZgQo/cGDB0xuxsC+IbU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rzIcQSmfvPd9RJFr3Knp4Hzmix33QFdhEQDzdSmN8C0MIT4DeV13b0rz/AI5gXBkpcqhYs54iIMAyhFbjFZqe5psN3JsQj6XW8Yz53G3laNSRfqNHyWj5vJMjNs3VMOLZTTw7WjoePtSRNqhi8z5Bf1QzWqTJU/ohqvXdHi2nfE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=gWvQOHvt; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 94CBC2027A; Wed, 8 May 2024 19:40:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1715190053; bh=rOCYAYk/4JwmzqnbBL/qv10PJF5H7DRT2QaXA8QKZKA=; h=From:To:Subject; b=gWvQOHvtFnCkkls7PJZAYF+0R/A9QYWTqFX07pcxlLCgjeEawofMOJp8lazlWcYfh G1y7AM8De7TyqCsDvlZGz1/tx0JxvOnqQhcBl1JovI36BTXGgcUxUfZrphW4URn+fS 1Xw5altysHgPsjIsag5coRiK4eUV0MMwMCmPrfeOFVC6E2m0ApAjH13dLTfftpJ4gf j6J+oz/sMi2P3gNsP1pTlxNFxDgddY/eUQogWmX2Xb6tko+A9eF39MGvOc1zhP0KvE FZbjaGdv3gX90hh87gUwHb17jPM7VBAjhJzEucq/zK9FnaXwtRNhMGZTxLJvcy1bA8 iXDj8dL4NYZFA== Date: Wed, 8 May 2024 19:40:48 +0200 From: Francesco Dolcini To: Vitor Soares , Adam Ford Cc: Ulf Hansson , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Vitor Soares , linux-pm@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Lucas Stach Subject: Re: [PATCH v1] pmdomain: imx8m-blk-ctrl: fix suspend/resume order Message-ID: <20240508174048.GA5257@francesco-nb> References: <20240418155151.355133-1-ivitro@gmail.com> 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: <20240418155151.355133-1-ivitro@gmail.com> On Thu, Apr 18, 2024 at 04:51:51PM +0100, Vitor Soares wrote: > From: Vitor Soares > > During the probe, the genpd power_dev is added to the dpm_list after > blk_ctrl due to its parent/child relationship. Making the blk_ctrl > suspend after and resume before the genpd power_dev. > > As a consequence, the system hangs when resuming the VPU due to the > power domain dependency. > > To ensure the proper suspend/resume order, add a device link betweem > blk_ctrl and genpd power_dev. It guarantees genpd power_dev is suspended > after and resumed before blk-ctrl. > Cc: Adam Ford Francesco