Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp946510rdb; Fri, 9 Feb 2024 06:07:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVIN4JXvzv81jGDvr9V/XkQ4tbFx3XFiT1AsFx5BAYBIrqiyb2Khq6zjDDLRiz+77rzoaY9IwOW3yO4fOj7M9EE8GhetsMfQViWKYPTYg== X-Google-Smtp-Source: AGHT+IH1Los27Ub4NRVXWuaAtEqmaZH3adhelCm1vaHNnfSQfigyrTmYdz5aGIK6IxNc5OGkFQJ/ X-Received: by 2002:a17:906:a2c8:b0:a38:3af4:a70a with SMTP id by8-20020a170906a2c800b00a383af4a70amr1307503ejb.60.1707487630635; Fri, 09 Feb 2024 06:07:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707487630; cv=pass; d=google.com; s=arc-20160816; b=fE06Q488tCh5Kz6WAe59OTyvbyslpm6kWvaNmLy5cFHMvpHm4Sg78im1cmfIFcFQcq 7+cfFF6bg+o7YJVj4+ghFlJ8klWAi7tun4w45HS8aKMCNVWshhULFe/1AVLohi3VAo19 rodkc6TxNUVPPiVPXP01Bs8U4s0vHSvCGC3+xhnrTb0JAV9t8POhE6MZjT1UvfwD+YHZ NdcWOj38bNPHJgfDDdvsGyieYurFp/x0wnXN0O0PtcubF91Weaky27KAXkmAZ8umS3Rj gyCDJNpE9SPatqzwhv4bis9cM0NogFGfRt2Xmt7DPdDyQsaMDfgP1sJRxkxKcDay/nmw 39Ow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=dXmlq/yLijYckXKkeLmVy9L0DG5yOUTwBMD5D252K9Y=; fh=Yf247ySONw4AW5cS7QuzoobbrIEzOFhv8CN9PNi5ub0=; b=bYzU4tB4a4x28OIp3DjcPkaHZ7lc5axOCmBnn0w03Ou+F/3LzAT6CDhZPf2OeasALe cLxaMR7GGgvoXS//EZZ3lCFgIJO4XnxokOjZGZHXxIz14yg1hPvOFZvx6H3NBTGsF5hi hdMk4PLp7Bc7/3u4N0v4U6WsWvPkHkiLxV2A9bYpjWw91mK8XUIK+ZQz3sziQK5FiQTt EPuHrC3jM7UuM9bccL/60eXlWLHhj6gP+wW5Wuy4GG3KpCdgVeDC2L28Ks2NTEu5IkMn mcT2ZztN1Tt8dyTpr+2tnjRsKxOJMFzyPzrrfwsMFbDYekMRUEYC7MkrZP8cSMYJjhS1 tkxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=nPeFEuvr; 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-59394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCXjQxqQnvHxUZQSM+JfH7s0BBTFHtpU7G4pwaarEzUYjam/lMHUs0OsgYdjMoS52lcBfznjo5G2GR21jz5bubgVRj+Sgqr5mCNjXZjYpw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qb20-20020a1709077e9400b00a3bf5607934si611306ejc.838.2024.02.09.06.07.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 06:07:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=nPeFEuvr; 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-59394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59394-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4D85D1F26345 for ; Fri, 9 Feb 2024 13:57:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1516057329; Fri, 9 Feb 2024 13:56:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="nPeFEuvr" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.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 7C63F4D11D; Fri, 9 Feb 2024 13:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707486977; cv=none; b=pnyLu75tKcqnQHm5B5njiv4uUYQe4J62u3u7uxaO8W33gCwBdI3kuUX6E0LblPOmaIEbm2wSWmSwWrHZwJC/7Ie8OBYzV5l6STdrMqO+0iIhTFgpX5lcPpvP8XdVm+bNSHCczqDXIf58Q44usx9iEsh+asqw8/wb/AF/hbuMFj4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707486977; c=relaxed/simple; bh=u9bsxtohU+8O0/ftK0UrMmBKffO0/k0GLIWvh6WyXKQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=X9/H3xGSHjEYCYxwSLJNlHk5ZbsO7Bt9RgpswLsrf/ojAlndFdtDuurnEO8UB5QfvCzLtK3LGWc6WdZAFhHrnpNZ02tIlacd2AWF+M3uujDWBBHiCVHqR5WMDj85sXUPio+ls0OYKpQaGQPpzHww/0J4xH8FRrJyFFBtgz2X1XI= 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=nPeFEuvr; arc=none smtp.client-ip=217.70.183.201 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 0A9A81BF20D; Fri, 9 Feb 2024 13:56:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707486966; 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: in-reply-to:in-reply-to:references:references; bh=dXmlq/yLijYckXKkeLmVy9L0DG5yOUTwBMD5D252K9Y=; b=nPeFEuvrBc6WFjtuX4Ol3EEl2l2ga5mNYxvBsWEZi9cPKD0z5zCCwAbmfpSzOXgK4UBkYl jXPYBcrI6YMJ2jYWl7KYtGdRREsX36Qxdcsf9oOH09qe1fCfMHnhttCYChAa6QXLAZwjUf dIgprqI5Db+mnbGjYnFsALRLEKvCSNchwEVLkiR+aFAtS5bvUKal0nrSfCZnXmnDIikFZT 8QVx9Yhwwr9AwwrSWnkht7PRLc6tVtzOT0deupkTT0T5juYvfZFjZ3peAyUohMfojWrXXe OHp7lAY7FdqWCLRAVSQRRA+kA3BA3HaNs8QpaDE/akdfbRDl88iG61A0VuT0PQ== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Fri, 09 Feb 2024 14:55:52 +0100 Subject: [PATCH v3 3/4] spi: cadence-qspi: put runtime in runtime PM hooks names 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" Content-Transfer-Encoding: 8bit Message-Id: <20240209-cdns-qspi-pm-fix-v3-3-540ac222f26b@bootlin.com> References: <20240209-cdns-qspi-pm-fix-v3-0-540ac222f26b@bootlin.com> In-Reply-To: <20240209-cdns-qspi-pm-fix-v3-0-540ac222f26b@bootlin.com> To: 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 , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.12.4 X-GND-Sasl: theo.lebrun@bootlin.com Follow kernel naming convention with regards to power-management callback function names. The convention in the kernel is: - prefix_suspend means the system-wide suspend callback; - prefix_runtime_suspend means the runtime PM suspend callback. The same applies to resume callbacks. Signed-off-by: Théo Lebrun --- drivers/spi/spi-cadence-quadspi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c index 809bbbb876ad..ee14965142ba 100644 --- a/drivers/spi/spi-cadence-quadspi.c +++ b/drivers/spi/spi-cadence-quadspi.c @@ -1927,7 +1927,7 @@ static void cqspi_remove(struct platform_device *pdev) pm_runtime_disable(&pdev->dev); } -static int cqspi_suspend(struct device *dev) +static int cqspi_runtime_suspend(struct device *dev) { struct cqspi_st *cqspi = dev_get_drvdata(dev); @@ -1936,7 +1936,7 @@ static int cqspi_suspend(struct device *dev) return 0; } -static int cqspi_resume(struct device *dev) +static int cqspi_runtime_resume(struct device *dev) { struct cqspi_st *cqspi = dev_get_drvdata(dev); @@ -1949,8 +1949,8 @@ static int cqspi_resume(struct device *dev) return 0; } -static DEFINE_RUNTIME_DEV_PM_OPS(cqspi_dev_pm_ops, cqspi_suspend, - cqspi_resume, NULL); +static DEFINE_RUNTIME_DEV_PM_OPS(cqspi_dev_pm_ops, cqspi_runtime_suspend, + cqspi_runtime_resume, NULL); static const struct cqspi_driver_platdata cdns_qspi = { .quirks = CQSPI_DISABLE_DAC_MODE, -- 2.43.0