mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: sti: regmap_field usage improvements
@ 2026-02-20 15:26 Sander Vanheule
  2026-02-20 15:26 ` [PATCH 1/2] ASoC: sti: Return errors from regmap_field_alloc() Sander Vanheule
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sander Vanheule @ 2026-02-20 15:26 UTC (permalink / raw)
  To: Arnaud Pouliquen, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai
  Cc: linux-sound, linux-kernel, Sander Vanheule

uni_player_parse_dt_audio_glue() allocates two regmap_field objects on
the device's regmap. However, error codes from these allocations are not
propagated correctly and the resources will leak on device removal.

These issues were found while looking for users of regmap_field_alloc(),
to assess the impact of adding a cleanup helper for regmap_field. It
appears this driver is the only (remaining) in-tree user of this
allocator. Since the resources are long-lived, it may as well switch to
devm_regmap_field_alloc().

As I don't have access to this hardware, these patches were only compile
tested on a UM build.

Sander Vanheule (2):
  ASoC: sti: Return errors from regmap_field_alloc()
  ASoC: sti: use managed regmap_field allocations

 sound/soc/sti/uniperif_player.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-03 11:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-20 15:26 [PATCH 0/2] ASoC: sti: regmap_field usage improvements Sander Vanheule
2026-02-20 15:26 ` [PATCH 1/2] ASoC: sti: Return errors from regmap_field_alloc() Sander Vanheule
2026-02-20 15:26 ` [PATCH 2/2] ASoC: sti: use managed regmap_field allocations Sander Vanheule
2026-03-03 11:20 ` [PATCH 0/2] ASoC: sti: regmap_field usage improvements Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®