Skip to content
Snippets Groups Projects
Commit a4080685 authored by Srini Kandagatla's avatar Srini Kandagatla Committed by Neil Armstrong
Browse files

WIP: soundwire: qcom: add some post bank switch delay


For some reason on wsa883x we see Port Collision during bank swith,
adding a delay seems provide a good workaround for this.

Needs more investigation.

Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
(cherry picked from commit 32d454e57c2996099cb3a1920db5319f1eef6fa2)
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
(cherry picked from commit 1c86659340653842a6c5d3452250024c0c025dc1)
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent 8ffc8b1b
No related merge requests found
......@@ -939,6 +939,13 @@ static enum sdw_command_response qcom_swrm_xfer_msg(struct sdw_bus *bus,
return SDW_CMD_OK;
}
static int qcom_swrm_post_bank_switch(struct sdw_bus *bus)
{
usleep_range(500, 510);
return 0;
}
static int qcom_swrm_pre_bank_switch(struct sdw_bus *bus)
{
u32 reg = SWRM_MCP_FRAME_CTRL_BANK_ADDR(bus->params.next_bank);
......@@ -1058,6 +1065,7 @@ static const struct sdw_master_port_ops qcom_swrm_port_ops = {
static const struct sdw_master_ops qcom_swrm_ops = {
.xfer_msg = qcom_swrm_xfer_msg,
.pre_bank_switch = qcom_swrm_pre_bank_switch,
.post_bank_switch = qcom_swrm_post_bank_switch,
};
static int qcom_swrm_compute_params(struct sdw_bus *bus)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment