From patchwork Fri Feb 9 13:55:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Th=C3=A9o_Lebrun?= X-Patchwork-Id: 198886 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp873681dyd; Fri, 9 Feb 2024 06:06:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVoRZT7k3UNF5OIIzCI7PLe/ZyeXPxk5VSJBPvUNtr5Wwb5bzYPX36+ozg851HhlOIoiPNiw5umJDJtpS+lUcb3o4I6Vg== X-Google-Smtp-Source: AGHT+IF6WqzG/tBExveVlYPmUihtFa0ennZ0x9KQI24E/23JEEblwB6HwxiVQxkg0UUxSoIGT3gi X-Received: by 2002:a17:906:c30e:b0:a3b:aa50:da81 with SMTP id s14-20020a170906c30e00b00a3baa50da81mr1243047ejz.5.1707487592179; Fri, 09 Feb 2024 06:06:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707487592; cv=pass; d=google.com; s=arc-20160816; b=Q08EFK08mu2a1fRKRZEUl/HDicA/dnUC3VSkoLgtBgftlAeCqGy4SSDaPBCZ0diZK8 Rf8CvonHFH85ABLQm246TAVCGfITt/CoiIIkOgAkYSYRsG+rTIH55wOvMqsbhNwNUk/3 T4wpuNSfX1p8dr6Cprmzw8t3MF+lWhNLzIZSNdViv4t9fAHsvOwP6AHPrt9jkkAbsvfi r0znVLU2si5NmBAdxzJMdsL0DB/nD2aP8oUnh5jdG+NyA1SZe0KopieAQjis0KUHQNjD lbXxCX+AnggQazg/f0TUyjJcbY1cdO1gTXkFx0pY/zkmJ1BrNGQ6jR/kAu1qAY3M8PS7 9Geg== 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=SPXNI2CbR5CsUZBbteYQ3cKk+sNBQyKeayRDRBUL29w=; b=MVz5dqJ6QJIZB8bOSvSugXpS50cIXw9CeAK8Q/NUOZgF5zzJ6sHRuPmMlqdGcS7ZkW pb5VFtJFnjbXj5mA5CNJ/saAyak8cbHOBMroCJiwmfkdgpZnI4LMc0ZYWpWS3MoVguU8 V/pTe6qNwPFgPeqpnHi5bltM9goD4sRGXseGxAmQ2lY5rI/E4YF3w/ujX6Yx6yGayuMo SD53+qDcdebs/MNO3b0dCEJVyGGJbqgc6bJs98Y34aH0yAEAgEDeFESnM36sSHACH83t IaYYFsJy31KCF+/dAgMEu/S/NiFgEa0edDL1EO7DxDzpJBvu2Yw7D6RAM7yuyR+ThKRM uuwQ==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59394-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCWFBfjED10tcArneuAlKP/as6zA7oCYr/aWDGnC9YAAMt78VY/diwa8QtLJ9GYwPUnDvBNbAK+3bwi6diANAEwZqBR55A== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k22-20020a17090646d600b00a3bea5f4af8si702620ejs.987.2024.02.09.06.06.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 06:06:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59394-ouuuleilei=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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59394-ouuuleilei=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 8F0EF1F26844 for ; Fri, 9 Feb 2024 13:57:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD29D69308; Fri, 9 Feb 2024 13:56:19 +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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790430509236341423 X-GMAIL-MSGID: 1790430509236341423 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,