Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

soundwire: qcom: remove unused rd_fifo_depth

remove read fifo depth field parsing logic, as rd_fifo_depth is never
used in the driver. Cleaning this up would benefit when adding new
variant support which includes adding variant fields for rd_fifo_depth.

ex: Glymur has this rd_fifo_depth register fields changed from v2.x

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Tested-by: Alexey Klimov <alexey.klimov@linaro.org> # sm8550
Link: https://patch.msgid.link/20250912083225.228778-3-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Srinivas Kandagatla and committed by
Vinod Koul
6504fe8c 18223eec

-2
-2
drivers/soundwire/qcom.c
··· 209 209 int (*reg_write)(struct qcom_swrm_ctrl *ctrl, int reg, int val); 210 210 u32 slave_status; 211 211 u32 wr_fifo_depth; 212 - u32 rd_fifo_depth; 213 212 bool clock_stop_not_supported; 214 213 }; 215 214 ··· 897 898 swrm_wait_for_frame_gen_enabled(ctrl); 898 899 ctrl->slave_status = 0; 899 900 ctrl->reg_read(ctrl, SWRM_COMP_PARAMS, &val); 900 - ctrl->rd_fifo_depth = FIELD_GET(SWRM_COMP_PARAMS_RD_FIFO_DEPTH, val); 901 901 ctrl->wr_fifo_depth = FIELD_GET(SWRM_COMP_PARAMS_WR_FIFO_DEPTH, val); 902 902 903 903 return 0;