| Message ID | 20241113133540.2005850-17-claudiu.beznea.uj@bp.renesas.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<linux-gpio+bounces-12955-incoming=patchwork.ozlabs.org@vger.kernel.org>
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@legolas.ozlabs.org
Authentication-Results: legolas.ozlabs.org;
dkim=pass (2048-bit key;
secure) header.d=tuxon.dev header.i=@tuxon.dev header.a=rsa-sha256
header.s=google header.b=Lg2nHTUS;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org
(client-ip=139.178.88.99; helo=sv.mirrors.kernel.org;
envelope-from=linux-gpio+bounces-12955-incoming=patchwork.ozlabs.org@vger.kernel.org;
receiver=patchwork.ozlabs.org)
Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [139.178.88.99])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (secp384r1))
(No client certificate requested)
by legolas.ozlabs.org (Postfix) with ESMTPS id 4XpPZJ32k5z1xxN
for <incoming@patchwork.ozlabs.org>; Thu, 14 Nov 2024 00:41:12 +1100 (AEDT)
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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 31C03286B43
for <incoming@patchwork.ozlabs.org>; Wed, 13 Nov 2024 13:41:11 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 5503F20721C;
Wed, 13 Nov 2024 13:36:21 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev
header.b="Lg2nHTUS"
X-Original-To: linux-gpio@vger.kernel.org
Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com
[209.85.128.48])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 670BF2071E6
for <linux-gpio@vger.kernel.org>; Wed, 13 Nov 2024 13:36:19 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.client-ip=209.85.128.48
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1731504981; cv=none;
b=j98k1PTi/JxtyPTOFdUxcoKmjPAC07YyFIwbo1c9QEmFWdv3cH4l9QJYIs4TpQAc7deu1syUCuwGPH1s4wG4FYEZlO/bs6Cxmtq3nDSOOpKSw84XFN2yvfwVMdlDpc8RvnXdsKAQ0Gv4AgiGWQUjf4e9WXsLZlJkD7mScTXM6Hg=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1731504981; c=relaxed/simple;
bh=Nwa5tU9ge+ha32axCmqAFJJx3a1SKQtHpFrD+Jt2N0M=;
h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:
MIME-Version;
b=CJ1e18JMUdxS4o7jb/L0dYdQdz93s3kn7p7K0VM7NlQfsK5/zgKBbOyNpJtx+0D6qIkK6/CAWuIXMYjBE6QcG7qWK9iAgq07CGOvVvqsQLcfysG7okq21un6DHn2wJqfWqiKqc9G6yRtEHw7VfR19hSkqKgfg6yr2FGmGlH5bkg=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none (p=none dis=none) header.from=tuxon.dev;
spf=pass smtp.mailfrom=tuxon.dev;
dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev
header.b=Lg2nHTUS; arc=none smtp.client-ip=209.85.128.48
Authentication-Results: smtp.subspace.kernel.org;
dmarc=none (p=none dis=none) header.from=tuxon.dev
Authentication-Results: smtp.subspace.kernel.org;
spf=pass smtp.mailfrom=tuxon.dev
Received: by mail-wm1-f48.google.com with SMTP id
5b1f17b1804b1-43158625112so61391685e9.3
for <linux-gpio@vger.kernel.org>;
Wed, 13 Nov 2024 05:36:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=tuxon.dev; s=google; t=1731504978; x=1732109778;
darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to;
bh=Iza1JOliQMrfP3y3T/HI+dDynre3jA8VDWxaN7OUd5E=;
b=Lg2nHTUSQk2rhskUiRqJgN3z9tDNxnj0nLDGzkmTtKI8l40/WkeDpAn24q4V4ldcjn
DEd2xnbv5n0MwGf4v/HWd+EeF/79fPHvkT1yNzAn1y19xa9g4O0d7ZuMQ/LFzo/eRoYb
ODb8iesgJxqZIE/y3zPHszFHLDO13Q2yAVaB6T884zlPDpWcuHSlPEv6cOEP355FxQFk
xqoseCyoP5QDPC1d4EA8AD8XF62dRhc0WjQXuDhgG5VAyr76RDcy6m2o6y4iutKO0Lzz
NWka7n6qyV3FsYpuzwpUuIxof2rs6jeHg0wZyBs245hQw5j8VGJiEeYeNfnOZP8q/Tk3
7Wuw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1731504978; x=1732109778;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=Iza1JOliQMrfP3y3T/HI+dDynre3jA8VDWxaN7OUd5E=;
b=UkjULFhdIyOrMjeRDvWLwV9jTfE+LakOAQbgGTOgxzjus/OMoeO7PCbs/6D6Xs8pfR
wBKjtRfgY02+DVW7fP2HNNvTvUAF8avRDeQQgNKPZUh99mq0AAupcQnqpGRXzAgyshX9
Tn7oz8skh/4mb6kK7BlU7D2VWO4mH34rvZlB7y5otbJCMQo/3GnCPrjJ8a9rfDwZJ46a
HxH9/GBIW3KbgbudQfzjfJ40W8N+k2o5nbpmIjsILHOkvS0ASufgv9PTnIyLwI23nq0c
EvPFaFlzsWmbgERO7k/9XGKdV7YyD86LreJ2iOxlqsldDOT9T2/sYuogP4qLAEWNaMjO
adpQ==
X-Forwarded-Encrypted: i=1;
AJvYcCWbdpFQOrLmkOxG9PgSKxpuRPpa62HxPQ4RBfqTrFqBBdyRXfcudyGmeki7jZ6Jj2TBaCu8ZFWZTPzY@vger.kernel.org
X-Gm-Message-State: AOJu0Yzu5vRgPFmXqSYubwNZ+ILXaCn8Lju1WPYGHvF9m5Iwkhyfvrxy
X+SwtV26Ae/ufrDK8OIgibeGmQYvVIFJ9ASw9BO4E071bB/4aIK9t0nidsqE+xQ=
X-Google-Smtp-Source:
AGHT+IG/NyJfeYX1HuuK3oZ/Ai/1DWZbgLB8aHPe00TzOnEC1V13R9/k6Quq4GU2FwVHIy+pxSTdBw==
X-Received: by 2002:a05:600c:35d5:b0:431:5f8c:ccbd with SMTP id
5b1f17b1804b1-432b74fda62mr182794785e9.4.1731504977765;
Wed, 13 Nov 2024 05:36:17 -0800 (PST)
Received: from claudiu-X670E-Pro-RS.. ([82.78.167.28])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-432d54e2f2esm25664165e9.1.2024.11.13.05.36.15
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 13 Nov 2024 05:36:17 -0800 (PST)
From: Claudiu <claudiu.beznea@tuxon.dev>
X-Google-Original-From: Claudiu <claudiu.beznea.uj@bp.renesas.com>
To: geert+renesas@glider.be,
mturquette@baylibre.com,
sboyd@kernel.org,
robh@kernel.org,
krzk+dt@kernel.org,
conor+dt@kernel.org,
biju.das.jz@bp.renesas.com,
prabhakar.mahadev-lad.rj@bp.renesas.com,
lgirdwood@gmail.com,
broonie@kernel.org,
magnus.damm@gmail.com,
linus.walleij@linaro.org,
perex@perex.cz,
tiwai@suse.com,
p.zabel@pengutronix.de
Cc: linux-renesas-soc@vger.kernel.org,
linux-clk@vger.kernel.org,
devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-sound@vger.kernel.org,
linux-gpio@vger.kernel.org,
claudiu.beznea@tuxon.dev,
Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Subject: [PATCH v3 16/25] ASoC: renesas: rz-ssi: Enable runtime PM autosuspend
support
Date: Wed, 13 Nov 2024 15:35:31 +0200
Message-Id: <20241113133540.2005850-17-claudiu.beznea.uj@bp.renesas.com>
X-Mailer: git-send-email 2.39.2
In-Reply-To: <20241113133540.2005850-1-claudiu.beznea.uj@bp.renesas.com>
References: <20241113133540.2005850-1-claudiu.beznea.uj@bp.renesas.com>
Precedence: bulk
X-Mailing-List: linux-gpio@vger.kernel.org
List-Id: <linux-gpio.vger.kernel.org>
List-Subscribe: <mailto:linux-gpio+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:linux-gpio+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
|
| Series |
Add audio support for the Renesas RZ/G3S SoC
|
expand
|
On Wed, Nov 13, 2024 at 2:36 PM Claudiu <claudiu.beznea@tuxon.dev> wrote: > From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> > > Enable runtime PM autosuspend support. The chosen autosuspend delay is > zero for immediate autosuspend. In case there are users that need a > different autosuspend delay, it can be adjusted through sysfs. > > Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert
diff --git a/sound/soc/renesas/rz-ssi.c b/sound/soc/renesas/rz-ssi.c index 35172630be8b..01e8b6a4e8a8 100644 --- a/sound/soc/renesas/rz-ssi.c +++ b/sound/soc/renesas/rz-ssi.c @@ -1140,6 +1140,9 @@ static int rz_ssi_probe(struct platform_device *pdev) } reset_control_deassert(ssi->rstc); + /* Default 0 for power saving. Can be overridden via sysfs. */ + pm_runtime_set_autosuspend_delay(dev, 0); + pm_runtime_use_autosuspend(dev); ret = devm_pm_runtime_enable(dev); if (ret < 0) { dev_err(dev, "Failed to enable runtime PM!\n");