Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1309291rbb; Mon, 26 Feb 2024 05:40:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXQJAfImZYYgYC12DUh8uliFJTkuyUQEFXbSWIdhk3N5OsEPfxQP8l8yydFTLikcmlz2WBRM/pIpmr0hGp7xTjOvu0+zQ7DzXSxCT+VBA== X-Google-Smtp-Source: AGHT+IEzJx1rewPfkwH7cd+F8yEl+7FI1mezC+vZXaIWjKEYq6OYhMdV3gNcAzF2z0x3Nmm3hG8e X-Received: by 2002:a05:6359:4c0e:b0:17b:af7b:febc with SMTP id kj14-20020a0563594c0e00b0017baf7bfebcmr1806149rwc.14.1708954828691; Mon, 26 Feb 2024 05:40:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708954828; cv=pass; d=google.com; s=arc-20160816; b=lAahY5aaJl/AZwxJzrABOe2zupOzXOIKjRpTgTxqc70egXojUK8BZuPBy34583Y7pu Aj4W1n08Ji8wKQSLdSBIJBVpwiEz/ZOIa8dQtEjmH2wLEAcKRPACA3fH7ZIL6LEMaozY C1zf2jxCzkxiJUi0+2PCYZAeeU8FZYyYXvkmQPLJ9ByuKkHxOic2fTL3hgwP/tGmu2Cz OjrtcIah7DcEBdmEWbvfzL26XSUuLd4tkXxpGByLsVUr/bGJuRDt98EAY5IltJUKIjxM iHBvWmXxN+e7vUMT/SyAujJtUbbX/b+FMy5RSqqYbePpkMMdjHgKiQ/FmZT6kTbX6vOD AGgA== 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=PwCEdz3XDi8JH7skaR7zGnA8j3Y3/3Vunllag23SXa8=; fh=lGgWFieZZezK7GoSqgrpqGqklj10ZQ/kTG8cssdWrOQ=; b=oIi08HrY8VORVWv0FHG6LJz39hcUUYKxehH3knQc9ud027b9dZXxQB2vOg8fMnxh7t 24CwW5ZMufc1AiH6sU4FWQM5gXbwD2bsah4BDdJ2K7+UbZ83jzo6S5jh2tKjMJK+u/Jt eWPogX85I7dppBK6rn3ym6Q8b5UkHJ/mBy9ahqT7fBhgqCkcZc9HiSHKhKX8dYyV7qTE WSGdXhyxNk/DloYf01WxAlHGEuTMTGKBv64LK7eU7uhnHyTM4hDr+OyioNPOsr4QSRnu F++3Qcb1wFLyOupISMukdMym2eJ7u+S5pemnxwR0CdUUTOgvpVHfyeJIpQimCcS46iHS pd9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IeKktXd4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-81500-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ca23-20020a056a02069700b005dc4a68d52esi3899251pgb.878.2024.02.26.05.40.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 05:40:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81500-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=@kernel.org header.s=k20201202 header.b=IeKktXd4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-81500-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 CED7E280C83 for ; Mon, 26 Feb 2024 13:40:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4177E1292C4; Mon, 26 Feb 2024 13:40:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IeKktXd4" 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 6661E1AACC; Mon, 26 Feb 2024 13:40:06 +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=1708954806; cv=none; b=vFJaSLN9HaX215AgaQeDAZHh/ghEJS/akVBw9nqzu4rqgjBHcFkTPq1wc86jf86Hf/YZBlryYQiuTt51jr25l1oc+FnPs0WfiUFOmprf/4Bn5q5zGw/pBFhOwDq7HXWie36+kn5OJbq591sZYb65vebKTuqnIy83YWQoK82ePLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708954806; c=relaxed/simple; bh=w0aH9LAZkqIcxgob9/XfgZeLdv3nrmwr76/CADHXqw4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PfvnOSOBkao93q9Ha70g6ZlpwgU85NojEqV1hN8Z/mLrd9dizHkQ8z5mp/4dn2kPWPM/X8CL/9mo+VEYRn6CvE32dsSxdrMpqaT/5drHfZjp0LuiWbt6jiBxaKuv2zHzoenAnt5o91cnpq4+7RDU1ZsJ1CPI5+Omfev8+IPMdLg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IeKktXd4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4339C433F1; Mon, 26 Feb 2024 13:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708954805; bh=w0aH9LAZkqIcxgob9/XfgZeLdv3nrmwr76/CADHXqw4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IeKktXd4eDPlis2egCcqOZNjF3hNccQgU+AjwapnjUckJfbKY3CqlXTmdf03L639H CmhZbsPo1nsVoi7NHBcE/lXJyqEtGDLVq9bYpU372681mP/SMGvPQ6guKAkzf2VigO 1ViOA3hERzLVntzwpGuW5ss/Zr12kKbdqDvoaOIZ9NgVbth1Nkyt/QikrbQLCenhzi EGb4MeDBMHndcN65KA4+RShqPsjue9w2ZOYGZIIhNGAgZYmEzzGgzaTU79Mrjg+mUc qr7tl2Su35ilquLbD+j7zpSwHnOTm8O06aPktWvOT5ANy6bMxp6XLhSYxwSKvVX5ou vxIPX8IS7dHzQ== Date: Mon, 26 Feb 2024 13:40:00 +0000 From: Mark Brown To: Dhruva Gole Cc: Apurva Nandan , =?iso-8859-1?Q?Th=E9o?= Lebrun , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk , Nishanth , Vignesh Subject: Re: [PATCH v4 0/4] spi: cadence-qspi: Fix runtime PM and system-wide suspend Message-ID: References: <20240222-cdns-qspi-pm-fix-v4-0-6b6af8bcbf59@bootlin.com> <170862920925.104158.14642580909914879148.b4-ty@kernel.org> <20240226121803.5a7r5wkpbbowcxgx@dhruva> <69f3dcd7-b79f-4b4f-aecb-dc559d74e6e4@sirena.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dT9DhkmsR3HA0bqQ" Content-Disposition: inline In-Reply-To: <69f3dcd7-b79f-4b4f-aecb-dc559d74e6e4@sirena.org.uk> X-Cookie: Walk softly and carry a BFG-9000. --dT9DhkmsR3HA0bqQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Feb 26, 2024 at 01:27:57PM +0000, Mark Brown wrote: > On Mon, Feb 26, 2024 at 05:48:03PM +0530, Dhruva Gole wrote: > > On Feb 22, 2024 at 19:13:29 +0000, Mark Brown wrote: > [ 1.709414] Call trace: > [ 1.711852] __mutex_lock.constprop.0+0x84/0x540 > [ 1.716460] __mutex_lock_slowpath+0x14/0x20 > [ 1.720719] mutex_lock+0x48/0x54 > [ 1.724026] spi_controller_suspend+0x30/0x7c > [ 1.728377] cqspi_suspend+0x1c/0x6c > [ 1.731944] pm_generic_runtime_suspend+0x2c/0x44 > [ 1.736640] genpd_runtime_suspend+0xa8/0x254 > (it's generally helpful to provide the most relevant section directly.) > The issue here appears to be that we've registered for runtime suspend > prior to registering the controller... Actually, no - after this series cqspi_suspend() is the system not runtime PM operation and should not be called from runtime suspend. How is that happening? --dT9DhkmsR3HA0bqQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmXclLAACgkQJNaLcl1U h9BuqQf+MH9CDnVqVpElG8YMfnoXoUebQzNfXKDwkudLGGp0ExSf1+MjPcfmzGrB mBXwd7A39yEX3v3CUFctuC2UovQA2eJDJXeGnpHuAJPSmbuWFrIlLUJEm2lv3CAl dSvAWQl9O+26dtX6Tda0897TMuD/hIX8bf+NY6ejvSyb61gBMGJS23AbwA6rQbkx E0/ulqCQ8lYL8WCYf/eoxEC3mSJefWAkjalulhvcWBfZgZrQe5uIddcmThn/Bn96 JtK+wi1iT9ZtCysv0dwa8+lD3iSCeO2JLBHfchCTFlUfFwRH5gZX8SS4dTZhzMmi U0cVSxyElPcusXldph2Lw8ghLhM88A== =uNwv -----END PGP SIGNATURE----- --dT9DhkmsR3HA0bqQ--