Skip to content

Commit ca1c131

Browse files
committed
Merge branch 'fixes' into next
Merge fixes into next as Intel driver has a dependency
2 parents febc50b + 49a4673 commit ca1c131

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

drivers/soundwire/intel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,7 @@ static int intel_link_probe(struct auxiliary_device *auxdev,
15121512

15131513
bus->link_id = auxdev->id;
15141514
bus->dev_num_ida_min = INTEL_DEV_NUM_IDA_MIN;
1515+
bus->clk_stop_timeout = 1;
15151516

15161517
sdw_cdns_probe(cdns);
15171518

drivers/soundwire/qcom.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ static int qcom_swrm_cmd_fifo_wr_cmd(struct qcom_swrm_ctrl *swrm, u8 cmd_data,
345345
if (swrm_wait_for_wr_fifo_avail(swrm))
346346
return SDW_CMD_FAIL_OTHER;
347347

348+
if (cmd_id == SWR_BROADCAST_CMD_ID)
349+
reinit_completion(&swrm->broadcast);
350+
348351
/* Its assumed that write is okay as we do not get any status back */
349352
swrm->reg_write(swrm, SWRM_CMD_FIFO_WR_CMD, val);
350353

@@ -378,6 +381,12 @@ static int qcom_swrm_cmd_fifo_rd_cmd(struct qcom_swrm_ctrl *swrm,
378381

379382
val = swrm_get_packed_reg_val(&swrm->rcmd_id, len, dev_addr, reg_addr);
380383

384+
/*
385+
* Check for outstanding cmd wrt. write fifo depth to avoid
386+
* overflow as read will also increase write fifo cnt.
387+
*/
388+
swrm_wait_for_wr_fifo_avail(swrm);
389+
381390
/* wait for FIFO RD to complete to avoid overflow */
382391
usleep_range(100, 105);
383392
swrm->reg_write(swrm, SWRM_CMD_FIFO_RD_CMD, val);

0 commit comments

Comments
 (0)