Prechádzať zdrojové kódy

soc: swr-mstr: Add delay of 100us after last write during bulk write

There is no delay after last write during bulk write. Add 100us delay
so as to ensure that last write goes fine.

Change-Id: Ifc1585f30eec639ffd6b80dde2e0365f368349d7
Signed-off-by: Vatsal Bucha <[email protected]>
Vatsal Bucha 4 rokov pred
rodič
commit
a20b914402
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      soc/swr-mstr-ctrl.c

+ 1 - 0
soc/swr-mstr-ctrl.c

@@ -646,6 +646,7 @@ static int swr_master_bulk_write(struct swr_mstr_ctrl *swrm, u32 *reg_addr,
 			usleep_range(50, 55);
 			swr_master_write(swrm, reg_addr[i], val[i]);
 		}
+		usleep_range(100, 110);
 		mutex_unlock(&swrm->iolock);
 	}
 	return 0;