umber-kernel/include/linux/firmware
Richard Fitzgerald abd6684522 firmware: cs_dsp: Factor out common debugfs string read
[ Upstream commit 78cfd833bc04c0398ca4cfc64704350aebe4d4c2 ]

cs_dsp_debugfs_wmfw_read() and cs_dsp_debugfs_bin_read() were identical
except for which struct member they printed. Move all this duplicated
code into a common function cs_dsp_debugfs_string_read().

The check for dsp->booted has been removed because this is redundant.
The two strings are set when the DSP is booted and cleared when the
DSP is powered-down.

Access to the string char * must be protected by the pwr_lock mutex. The
string is passed into cs_dsp_debugfs_string_read() as a pointer to the
char * so that the mutex lock can also be factored out into
cs_dsp_debugfs_string_read().

wmfw_file_name and bin_file_name members of struct cs_dsp have been
changed to const char *. It makes for a better API to pass a const
pointer into cs_dsp_debugfs_string_read().

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20251120130640.1169780-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: 10db9f6899dd ("firmware: cs_dsp: rate-limit log messages in KUnit builds")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-02-11 13:41:59 +01:00
..
broadcom
cirrus firmware: cs_dsp: Factor out common debugfs string read 2026-02-11 13:41:59 +01:00
imx firmware: imx: Add stub functions for SCMI CPU API 2025-09-11 09:59:08 +08:00
intel
mediatek
meson
qcom firmware: qcom: tzmem: fix qcom_tzmem_policy kernel-doc 2025-12-18 14:02:32 +01:00
samsung firmware: exynos-acpm: introduce devm_acpm_get_by_node() 2025-04-22 09:50:06 +02:00
thead firmware: thead: Add AON firmware protocol driver 2025-03-13 14:41:32 +01:00
trusted_foundations.h
xlnx-event-manager.h
xlnx-zynqmp.h firmware: xilinx: Don't share zynqmp_pm_init_finalize() 2025-07-09 13:29:29 +02:00