From b121da1e324862c6ac1d7a99e49fd434991a487c Mon Sep 17 00:00:00 2001 From: Juha Yrjola Date: Tue, 5 Sep 2006 16:26:44 +0300 Subject: [PATCH] OMAP: Menelaus: Add a stabilization delay of 1 ms after setting voltage Signed-off-by: Juha Yrjola --- drivers/i2c/chips/menelaus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/chips/menelaus.c b/drivers/i2c/chips/menelaus.c index 82e71ac881d..36eda85d77d 100644 --- a/drivers/i2c/chips/menelaus.c +++ b/drivers/i2c/chips/menelaus.c @@ -451,6 +451,10 @@ set_voltage: ret = menelaus_write_reg(vtg->mode_reg, mode); out: mutex_unlock(&menelaus.lock); + if (ret == 0) { + /* Wait for voltage to stabilize */ + msleep(1); + } return ret; } -- 2.41.1