From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="gWvQOHvt" 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