Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp243263rdb; Thu, 22 Feb 2024 02:12:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX6UCVo5Zqe6uJIDXMxxFTzOcu9hXJ/DyBnNct4cawUyjEM2RmP0mgbXzg+NCg/hWhBgSIs/OOoiF0+BqG35fdbbvzK7d8JunRpEEwcGQ== X-Google-Smtp-Source: AGHT+IEiqFY5Yd+sRYFmRfnb9SQ5BKj4OTiaBtT14pB4OYGbHk6RCNs7608s0hJNyRPFyGjLugwm X-Received: by 2002:a05:6102:21cf:b0:471:aec3:f6d5 with SMTP id r15-20020a05610221cf00b00471aec3f6d5mr3585003vsg.10.1708596777740; Thu, 22 Feb 2024 02:12:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708596777; cv=pass; d=google.com; s=arc-20160816; b=i44PgokQ72IAecCkOa/lhF7+btgTTAPMvXfIRJOTtvl1cfjRZTfuHux+wIsIUDdIvj IBK/WhzXWVaSoPcGgWJ+jVFbZkZd7ypApIf0zUnzB2C0irZC/99nzA1p/QRqcNg20+NC wnCxihfGpXFB6raMm9C1MOW741rfrHcfKzESjo8UwpwakaUcvfclQBxdu0KzcikNOrkN +LePJ97ArI5n+LyshHYRzNlJzl3FHHVh9DPEUp4ij1MAPx+HgVBiAA7NFnGXehOtEtiM K/LH3jTqgrz0Rfm3aKca6PkFTp/rFxBkZ0BVxyw4h40voZglaIDHhE9JBGnzHqT/2IvD Nv+A== 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=mvoigvJmPhizIcq2GVnu6+m2ifoXHPhDFh2hNqMqK4E=; fh=Oc81uuoSiCYmWPIZrJKh6tUWDhA09tD21Re6ielkk1Y=; b=nvf0jr8wlO9A1yTQE+uj8e12iE1jNvbvKwhHPknNBmKaySysFtK16uO7s9JX4K9fhR 1aHb2APpP+BNmqn1OHsnzyJ/FYtClF2Y9pj3pP+rQPh4YTORP1cSZ3/G1Wf1dzBQszkC HubRNXiZrfkjKYQBsVbzhqlMO+5j3HQvw47Y/ohImj1Th/uGMvanN1PyCdajze1a+vsM /1SJ1PepIDptGB1MGSmLeZV+eToLbqKWtXEjD9zVHSdWPA75kVsquHL8Zd44/70gsKdt 3k8phJwtrqFLclCrtZ0PhS7jOIgIVjfSM6SmLetxWBA8od9bw34hxCnqE5C5Z++0wsuS +2Mw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dfvMuerq; 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-76298-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76298-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e10-20020a37db0a000000b007872662137bsi12378568qki.703.2024.02.22.02.12.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:12:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76298-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dfvMuerq; 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-76298-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76298-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 7D1621C22FDD for ; Thu, 22 Feb 2024 10:12:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FD9D3A8EE; Thu, 22 Feb 2024 10:12:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="dfvMuerq" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 A2D7339860; Thu, 22 Feb 2024 10:12:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708596757; cv=none; b=h8XEHn9H9La0mCP44P+yPVIinV6ZAZpHnME0kTPWHKq5t4vEctw2X4lrdwYI8VTdt6EevBStqf/pNZNVBZjeC897SNDLkVn2mi6zFgjT4UxSERX93fqv+A9IZhxnj7ejCVU4CmxyrYUTbfVYXD/wuiWoZuCY78GGTKXjctHyIpc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708596757; c=relaxed/simple; bh=8k//nV4PgtS77JaVQHMDyRcyJk3UctPeuulRegs63Dc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ddiEmeT+Sknx5JCsSrCB/zCna/jkTL0wV5E+LJH79pjjTQxBu5QfcIS0x9MnVGFvfVHjrNkF2hRKGQIUKr5MH5Xlcfh8Grzrz043KYJ1k32YJdXUNHWpAHhvUiFPiLiitUrViSH6ZRtyUrV1k3kn0H+TaCSyM1wzcGeUYw6taqw= 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=dfvMuerq; arc=none smtp.client-ip=217.70.183.200 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 CA9D820003; Thu, 22 Feb 2024 10:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708596752; 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=mvoigvJmPhizIcq2GVnu6+m2ifoXHPhDFh2hNqMqK4E=; b=dfvMuerqqH9Msxa66Jb04Loi05gLrfXlH4U7nG19LWMspJ5RZrc+/RIIDj84N+4ipp5HxA SvbJjT+cIwSjxXVEmKiWLUwUrxwMG0QCa97fPqjItYJ1NiD00/5QzrXPy4VXuADVvyyjKa KBwIFDs9m7ih7V5mGBnnHmSdtIyto1jWVesTlXtCwPKtwN6kLVS8CYD7OeSWpZ6ctVBbkA dUAOinAR2lXOA4OL7ZswXSsYKV3EY8784LKdMjCmC9e51kFNJonrI0JNyu8t5B+mMcT4op tfFYOpMHrIEpM9h2Y5861K/Qrm3s8KtsrF0oiiJ0RjqsiYOLNRr1zDezYq6fAA== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Thu, 22 Feb 2024 11:12:31 +0100 Subject: [PATCH v4 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: <20240222-cdns-qspi-pm-fix-v4-3-6b6af8bcbf59@bootlin.com> References: <20240222-cdns-qspi-pm-fix-v4-0-6b6af8bcbf59@bootlin.com> In-Reply-To: <20240222-cdns-qspi-pm-fix-v4-0-6b6af8bcbf59@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.13.0 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.2