Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2426827rdb; Mon, 5 Feb 2024 06:22:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpxisTxH9iE1Z3S2aVCtwbqrTrTYp44J/D3hg4MRPZrOd4Zbk1OJofaq25DNGDLBFZkTuz X-Received: by 2002:a05:620a:852f:b0:785:3da4:58a5 with SMTP id pe47-20020a05620a852f00b007853da458a5mr14857787qkn.37.1707142971536; Mon, 05 Feb 2024 06:22:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707142971; cv=pass; d=google.com; s=arc-20160816; b=tEwqb7YmNvT1ZG+93lwOCA0V2DCrBuKUhJ9YV8grLbWNEpldZ1RsXkrepXTkUC3MC+ 9h0irIbn3zWSjlARVwt0OYs+oDfILs0IhK4XccLFQ2Dg/MRGQRhBwZxOGNugTZHF/EqZ 5juwzHta5/nq+lnlA0ZTSxcjwP2yG70g0em0w7utlj2nB8eb6kDWB7ZmJv2GaclLyStY TLovRjWuv4v2Y5aqAA+Xz/O60Exfu9O2g84sWpZUhfG/RpYVFvGzvzh3sqR33Xe3Vvsj +QTtzfcQftFty2syqcdydtbknw8K2Bd9rZQQE8cS15TBbSs4p2fo50jXPxBn6z5E/2O4 6t2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=tzX2G5dJNWQgfsOBNquj7qgw3LHc/tAZOaqHWcdjwR8=; fh=XfwTKSjPhvdAs5objTaG7zMRR2YzKFamJGq6l7rAbS4=; b=zJhcKaOME/4OtvTE9MAC4lpPGwBmoY0s0howcSikzqX4B6HBjXw0YY4Zy+yQ/rAVrJ XpdamETQjE+5jJQ0agHCdo/6yZoimLjDRnVyigIBFnOTe6BsCLeEFXIH+6BYTR/Qutpt SjgcIRLE4Q/g+zTB8aIMApU5BZnEPOVL62fgPRmP2gMrKPUWG+FwSMaIDhA2CIDtAXjO 3h48VIb7f8zawKG8VvpNbaru0UIZa/YYhus9rpzUt68NuHHHh3+rbi+TXN6b/wMbSruq hU/1ADM9VXW5EEYb7CD/6VzJn2s4tE8WpqoDflMadlsQ5UznaLeAIiYlYjA6CisvirOa /4pQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=EjjiEbib; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-52807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52807-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=1; AJvYcCWd+D28dhjR3ZUeaSnHY+VF2lKJAkBEqUZjskELMIjIYiXoWPUxruIMoACTSqLK6NoMIlZoAZYwnF+c4y3BK4xPEL+hvCtAhu2kCmW9uA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y29-20020a05620a09dd00b007853a3f8878si8422642qky.447.2024.02.05.06.22.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 06:22:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=EjjiEbib; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-52807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52807-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4EC591C225C0 for ; Mon, 5 Feb 2024 14:22:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B21E28E2B; Mon, 5 Feb 2024 14:22:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="EjjiEbib" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 86B59171C4; Mon, 5 Feb 2024 14:22:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707142967; cv=none; b=smvgV2a/ATYlOL4buhAvG5C91+YO2x8OctMC2kAofS64H3eyJqBOzDQ1vcxdTVyIMoeLd5uWyyZ6G42n4p+urGTEaEOklwAnqo0/j6m8+kTdsz3Bd8Z6M5QMNNuNovAxfh+VJVr3rPhN6fXujxE2MW5Oj0URLsSfSW7P+5wHpdA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707142967; c=relaxed/simple; bh=Y5W76+pPsN/JxMVthrgYscIGdiw39poUbsBHrzzva+0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kOm73w1+4sg4uTo3ZB3bkrRR9TAgTRLZkYdB/n0Oj60wVbX9/ToCKMHFkxwBCsmqFbREvmqqgqevcd6cS6WUDaqYjaMT1Xxov+HJ+B0n8jJfwaJPdhm6PuKNBSGyTi/uBPAsamed011ZC1Ek+5by89z3RHhZgKICr/9YvoydJD8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=EjjiEbib; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 241511C000F; Mon, 5 Feb 2024 14:22:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707142963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tzX2G5dJNWQgfsOBNquj7qgw3LHc/tAZOaqHWcdjwR8=; b=EjjiEbibQwefHsgq1F7pT3S9634ZhYuxLsW/fXoKss8RYUn8aDj7u2gsmhtnfSSKL/OXT7 oq3E0yycI8ekonpuIXqiRvdecJTwK5RsYw6c2uBgq2OAkkpJkUSX1VuvqNDQUgIFvg8jHW h+JbgYhQ1nn4GaWMQsyPzhP9Rz3QiPh+GpTIOFp8J2OpDVY4l++CZp3JhvyeuAEbfNoBfb 6gAv+QG2um0PvOKXJyXNWujnhbQFUh+brelnV5PMN3d1qzPQVd3meeT2mlEDrPOm4FKASu P6WDuQGl5FY8U9kivTGV5vrvtB01gFKqYmC6IV5aMqzstRBsCSMa/2cu8j8LxQ== From: =?UTF-8?q?Th=C3=A9o=20Lebrun?= To: theo.lebrun@bootlin.com, Mark Brown , Apurva Nandan , Dhruva Gole Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk Subject: [PATCH v2 0/5] spi: cadence-qspi: Fix runtime PM and system-wide suspend Date: Mon, 5 Feb 2024 15:22:34 +0100 Message-ID: <20240205-cdns-qspi-pm-fix-v2-0-c59ac6996428@bootlin.com> X-Mailer: git-send-email 2.43.0 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="utf-8" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: 8bit X-GND-Sasl: theo.lebrun@bootlin.com Hi, This fixes runtime PM and system-wide suspend for the cadence-qspi driver. Seeing how runtime PM and autosuspend are enabled by default, I believe this affects all users of the driver. The initial change has been split into three commits and a fourth commit is added to add system-wide suspend/resume callbacks. The MIPS platform at hand, used for debugging and testing, is currently not supported by the driver. It is the Mobileye EyeQ5 [0]. No code changes are required for support, only a new compatible and appropriate match data + flags. That will come later, with some performance-related patches. TODO: changelog below Thanks all, Théo [0]: https://lore.kernel.org/lkml/20240118155252.397947-1-gregory.clement@bootlin.com/ Signed-off-by: Théo Lebrun --- Changes in v2: - EDxxITME: describe what is new in this series revision. - EDxxITME: use bulletpoints and terse descriptions. - Link to v1: https://lore.kernel.org/r/20240202-cdns-qspi-pm-fix-v1-1-3c8feb2bfdd8@bootlin.com --- Théo Lebrun (5): spi: cadence-qspi: put runtime in runtime PM hooks names spi: cadence-qspi: fix pointer reference in runtime PM hooks spi: cadence-qspi: remove system-wide suspend helper calls from runtime PM hooks spi: cadence-qspi: add system-wide suspend and resume callbacks WIP: spi: cadence-qspi: add debug logs for PM drivers/spi/spi-cadence-quadspi.c | 45 ++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 12 deletions(-) --- base-commit: 13acce918af915278e49980a3038df31845dbf39 change-id: 20240202-cdns-qspi-pm-fix-29600cc6d7bf Best regards, -- Théo Lebrun