[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250210111008.248929-1-csokas.bence@prolan.hu>
Date: Mon, 10 Feb 2025 12:10:05 +0100
From: Bence Csókás <csokas.bence@...lan.hu>
To: <linux-pm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Csókás, Bence <csokas.bence@...lan.hu>, "Varshini
Rajendran" <varshini.rajendran@...rochip.com>, Tudor Ambarus
<tudor.ambarus@...aro.org>, Mark Brown <broonie@...nel.org>,
<linux-spi@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>
CC: "Rafael J. Wysocki" <rafael@...nel.org>, Len Brown <len.brown@...el.com>,
Pavel Machek <pavel@....cz>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Danilo Krummrich <dakr@...nel.org>, Alexander Dahl <ada@...rsis.com>,
"Nicolas Ferre" <nicolas.ferre@...rochip.com>, Alexandre Belloni
<alexandre.belloni@...tlin.com>, Claudiu Beznea <claudiu.beznea@...on.dev>
Subject: [PATCH for-6.14 v4 0/2] Add more devm_ functions to fix PM imbalance in spi/atmel-quadspi.c
The probe() function of the atmel-quadspi driver got quite convoluted,
especially since the addition of SAMA7G5 support, that was forward-ported
from an older vendor kernel. During the port, a bug was introduced, where
the PM get() and put() calls were imbalanced. To alleivate this - and
similar problems in the future - an effort was made to migrate as many
functions as possible, to their devm_ managed counterparts. The few
functions, which did not yet have a devm_ variant, are added in patch 1 of
this series. Patch 2 then uses these APIs to fix the probe() function.
Change in v4:
* the DMA cleanup was split out and will be submitted separately for 6.15
Links to previous versions:
pre-series:
https://lore.kernel.org/linux-kernel/20250114222851.1023194-1-csokas.bence@prolan.hu/
v1:
https://lore.kernel.org/linux-kernel/20250115160244.1102881-1-csokas.bence@prolan.hu/
v2:
https://lore.kernel.org/linux-kernel/20250124085221.766303-8-csokas.bence@prolan.hu/
v3:
https://lore.kernel.org/linux-kernel/20250207124802.165408-1-csokas.bence@prolan.hu/
Bence Csókás (2):
pm: runtime: Add new devm functions
spi: atmel-quadspi: Fix unbalanced pm_runtime by using devm_ API
drivers/base/power/runtime.c | 36 ++++++++++++++++++++++++++++++++++++
drivers/spi/atmel-quadspi.c | 18 +++++-------------
include/linux/pm_runtime.h | 4 ++++
3 files changed, 45 insertions(+), 13 deletions(-)
base-commit: a64dcfb451e254085a7daee5fe51bf22959d52d3
--
2.48.1
Powered by blists - more mailing lists