soc: swr-mstr: Add delay between fifo writes to avoid overflow/underflow
Overflow/Underflow errors are observed sometimes while doing fifo write. Add delay between writes to resolve error. Change-Id: Id460e17753001a0dd52acd01a181d91132c36048 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
parent
da9e82f1b4
commit
dc52af1584
1 changed files with 2 additions and 2 deletions
|
@ -615,10 +615,10 @@ static int swr_master_bulk_write(struct swr_mstr_ctrl *swrm, u32 *reg_addr,
|
|||
for (i = 0; i < length; i++) {
|
||||
/* wait for FIFO WR command to complete to avoid overflow */
|
||||
/*
|
||||
* Reduce sleep from 100us to 10us to meet KPIs
|
||||
* Reduce sleep from 100us to 50us to meet KPIs
|
||||
* This still meets the hardware spec
|
||||
*/
|
||||
usleep_range(10, 12);
|
||||
usleep_range(50, 55);
|
||||
swr_master_write(swrm, reg_addr[i], val[i]);
|
||||
}
|
||||
mutex_unlock(&swrm->iolock);
|
||||
|
|
Loading…
Add table
Reference in a new issue