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] [day] [month] [year] [list]
Message-ID: <87zfghxxp0.wl-tiwai@suse.de>
Date: Tue, 15 Apr 2025 17:15:55 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Richard Fitzgerald <rf@...nsource.cirrus.com>
Cc: tiwai@...e.com,
	linux-sound@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	patches@...nsource.cirrus.com
Subject: Re: [PATCH] ALSA: hda/cirrus_scodec_test: Modernize creation of dummy devices

On Tue, 15 Apr 2025 12:54:14 +0200,
Richard Fitzgerald wrote:
> 
> Replace the old direct use of platform_device APIs with newer KUnit APIs
> and the faux bus.
> 
> The dummy codec driver device doesn't need to be a platform device.
> It can be a faux bus device.
> 
> The dummy GPIO driver still must be a platform_device so that a
> software_node can be added to it before it probes. But use the new
> KUnit-managed APIs to create the platform_device and platform_driver.
> These will cleanup automatically when a test completes or fails.
> 
> Also use KUnit resource cleanup to destroy the faux bus driver and the GPIO
> software node instead of doing this "manually" in test exit() functions.
> 
> Signed-off-by: Richard Fitzgerald <rf@...nsource.cirrus.com>

Thanks, applied now to for-next branch.


Takashi

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ