Skip to content

Commit d33ca7d

Browse files
committed
Merge tag 'soundwire-5.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire into char-misc-linus
soundwire fixes for v5.13 Fix in qcom driver for handling of qcom,ports-block-pack-mode property. This fixes regression reported in DragonBoard DB845c and Lenovo Yoga C630. * tag 'soundwire-5.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire: soundwire: qcom: fix handling of qcom,ports-block-pack-mode
2 parents 50f09a3 + da096fb commit d33ca7d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

drivers/soundwire/qcom.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,16 @@ static int qcom_swrm_get_port_config(struct qcom_swrm_ctrl *ctrl)
11501150

11511151
ret = of_property_read_u8_array(np, "qcom,ports-block-pack-mode",
11521152
bp_mode, nports);
1153-
if (ret)
1154-
return ret;
1153+
if (ret) {
1154+
u32 version;
1155+
1156+
ctrl->reg_read(ctrl, SWRM_COMP_HW_VERSION, &version);
1157+
1158+
if (version <= 0x01030000)
1159+
memset(bp_mode, SWR_INVALID_PARAM, QCOM_SDW_MAX_PORTS);
1160+
else
1161+
return ret;
1162+
}
11551163

11561164
memset(hstart, SWR_INVALID_PARAM, QCOM_SDW_MAX_PORTS);
11571165
of_property_read_u8_array(np, "qcom,ports-hstart", hstart, nports);

0 commit comments

Comments
 (0)