diff mbox

[2/3] drm/bridge/sii8620: simplify hardware reset procedure

Message ID 20180115173357.31067-3-a.hajda@samsung.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Andrzej Hajda Jan. 15, 2018, 5:33 p.m. UTC
There is no need to flip reset pin twice. Also delays can be changed to
values present in vendor's code.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
---
 drivers/gpu/drm/bridge/sil-sii8620.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm/bridge/sil-sii8620.c
index db93e5e0497c..7c46847fef18 100644
--- a/drivers/gpu/drm/bridge/sil-sii8620.c
+++ b/drivers/gpu/drm/bridge/sil-sii8620.c
@@ -980,13 +980,9 @@  static void sii8620_hw_reset(struct sii8620 *ctx)
 {
 	struct i2c_client *i2c = to_i2c_client(ctx->dev);
 
-	usleep_range(10000, 20000);
-	gpiod_set_value(ctx->gpio_reset, 0);
-	usleep_range(5000, 20000);
-	gpiod_set_value(ctx->gpio_reset, 1);
-	usleep_range(10000, 20000);
+	msleep(100);
 	gpiod_set_value(ctx->gpio_reset, 0);
-	msleep(300);
+	msleep(100);
 
 	/* I2C bus recovery prevents I2C errors due to known bug in the chip */
 	i2c_recover_bus(i2c->adapter);