lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250117165224.1233255-2-csokas.bence@prolan.hu>
Date: Fri, 17 Jan 2025 17:52:24 +0100
From: Bence Csókás <csokas.bence@...lan.hu>
To: <dmaengine@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
	<linux-pm@...r.kernel.org>, <linux-spi@...r.kernel.org>,
	<linux-arm-kernel@...ts.infradead.org>, Tudor Ambarus
	<tudor.ambarus@...aro.org>, Mark Brown <broonie@...nel.org>, "Varshini
 Rajendran" <varshini.rajendran@...rochip.com>,
	Csókás, Bence <csokas.bence@...lan.hu>
CC: Vinod Koul <vkoul@...nel.org>, "Rafael J. Wysocki" <rafael@...nel.org>,
	Len Brown <len.brown@...el.com>, Pavel Machek <pavel@....cz>, "Greg
 Kroah-Hartman" <gregkh@...uxfoundation.org>, Nicolas Ferre
	<nicolas.ferre@...rochip.com>, Alexandre Belloni
	<alexandre.belloni@...tlin.com>, Claudiu Beznea <claudiu.beznea@...on.dev>,
	Alexander Dahl <ada@...rsis.com>
Subject: [PATCH 0/4] Add more devm_ functions to simplify probe path in drivers/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. 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 and 2 of this series.
Patch 3 and 4 then use these APIs to
simplify and fix the probe() function.

Bence Csókás (4):
      dma: Add devm_dma_request_chan()
      pm: runtime: Add new devm functions
      spi: atmel-quadspi: Use `devm_dma_request_chan()`
      spi: atmel-quadspi: Fix unbalanced pm_runtime by using devm_ API

 drivers/base/power/runtime.c | 36 ++++++++++++++++++++++++++++++++++++
 drivers/dma/dmaengine.c      | 30 ++++++++++++++++++++++++++++++
 drivers/spi/atmel-quadspi.c  | 62 ++++++++++++++++----------------------------------------------
 include/linux/dmaengine.h    |  7 +++++++
 include/linux/pm_runtime.h   |  4 ++++
 5 files changed, 93 insertions(+), 46 deletions(-)

-- 
2.48.1



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ