From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (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 88EB91422CF for ; Fri, 21 Jun 2024 12:51:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718974321; cv=none; b=RtLUritH+YA9BolXa30mxE2Q0axeg5JbhYRxINqaoBLwfBMsXzv4hXNEbmRHF9XWSOucydrcCznwrA+vcfWYu/lgrShfby2rn3uwlDR0mInRpRMPiE5lIFDn6kuxleZrze4HPmkRB7Hq6V7SqP+KDStDYYHSQKoMGqGibSTja+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718974321; c=relaxed/simple; bh=O2XpJffbLTWYFrBN9HBTNjQKb4xHLl8Rt0eIvFg+uKk=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=NQXcVXF3qLKcxoJDHvP96CObWiLiq2f/+2lSY1GncBuShFiE9/2Ss7d89/OciqCmCq/bp8vKAsxveO92DhLVEakJNIq8rKj6KgopWP2P5CnNYompkythzilyQVJ7NxTwlt7chMWKZt2ziJ1zP9RDQUt/ms16X2SlBNu8189v/W0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=GIMz+r+0; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="GIMz+r+0" Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45LAxF6i023086; Fri, 21 Jun 2024 14:51:17 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= F9PP+GAMB8H3TC0+mWhS7Ioi9VtML4Ue6Qm1isIiHOg=; b=GIMz+r+01qM4OmTQ Rw+Wbi6zox3ftv07m3IquRWIoQ9UCkoFhYFyWMcBxIcrHsnP0g+FpwPr7ahH/1bk pWBXE6vchfTG9C5ymy1CuvMBoLaDs2t9Hp6jJmYa6W+xqFSzLpwTHd2TyOtpfAgE PkAAwAN0KIa1L/FDJMWR3uvr8PtlyFnDa26X/WsKuIBDdL8soSCQnnj1ifC6hNpC cA42Q7grH6/qFTje3Qe8qP/kY2uwtRUO3jwC4YeqGdNWK3lB0Ho75d4ZvURjXNSs uxz/QeQSxWNXx4tO+JPobX0uRZWMS81fk+7VPWSqOmFiES254oirLx1YrDuJJ5TP nE4Gwg== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3yvrkkkp4g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jun 2024 14:51:17 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 68C084002D; Fri, 21 Jun 2024 14:51:10 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id CFCA92207AE; Fri, 21 Jun 2024 14:50:28 +0200 (CEST) Received: from [10.48.87.177] (10.48.87.177) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 21 Jun 2024 14:50:28 +0200 Message-ID: <2fd903ba-3daf-4aeb-896b-702183252f19@foss.st.com> Date: Fri, 21 Jun 2024 14:50:27 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RESEND v3 1/3] drm/stm: dsi: use new SYSTEM_SLEEP_PM_OPS() macro To: Raphael Gallais-Pou , Philippe Cornu , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue CC: , , , References: <20240129104106.43141-1-raphael.gallais-pou@foss.st.com> <20240129104106.43141-2-raphael.gallais-pou@foss.st.com> Content-Language: en-US From: Yannick FERTRE In-Reply-To: <20240129104106.43141-2-raphael.gallais-pou@foss.st.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-21_04,2024-06-21_01,2024-05-17_01 Hi Raphael, thanks for the patch. Acked-by: Yannick Fertre Tested-by: Yannick Fertre BR Le 29/01/2024 à 11:41, Raphael Gallais-Pou a écrit : > Use RUNTIME_PM_OPS() instead of the old SET_SYSTEM_SLEEP_PM_OPS(). > This means we don't need __maybe_unused on the functions. > > Signed-off-by: Raphael Gallais-Pou > --- > drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > index d5f8c923d7bc..b1aee43d51e9 100644 > --- a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > @@ -544,7 +544,7 @@ static void dw_mipi_dsi_stm_remove(struct platform_device *pdev) > regulator_disable(dsi->vdd_supply); > } > > -static int __maybe_unused dw_mipi_dsi_stm_suspend(struct device *dev) > +static int dw_mipi_dsi_stm_suspend(struct device *dev) > { > struct dw_mipi_dsi_stm *dsi = dw_mipi_dsi_stm_plat_data.priv_data; > > @@ -556,7 +556,7 @@ static int __maybe_unused dw_mipi_dsi_stm_suspend(struct device *dev) > return 0; > } > > -static int __maybe_unused dw_mipi_dsi_stm_resume(struct device *dev) > +static int dw_mipi_dsi_stm_resume(struct device *dev) > { > struct dw_mipi_dsi_stm *dsi = dw_mipi_dsi_stm_plat_data.priv_data; > int ret; > @@ -580,8 +580,8 @@ static int __maybe_unused dw_mipi_dsi_stm_resume(struct device *dev) > } > > static const struct dev_pm_ops dw_mipi_dsi_stm_pm_ops = { > - SET_SYSTEM_SLEEP_PM_OPS(dw_mipi_dsi_stm_suspend, > - dw_mipi_dsi_stm_resume) > + SYSTEM_SLEEP_PM_OPS(dw_mipi_dsi_stm_suspend, > + dw_mipi_dsi_stm_resume) > }; > > static struct platform_driver dw_mipi_dsi_stm_driver = {