summaryrefslogtreecommitdiff
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorSuprith Malligere Shankaregowda <supgow@codeaurora.org>2018-03-21 19:04:07 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-03-22 21:52:10 -0700
commit3bc00c1740429cfabe07df9e6fc73ffd861256d9 (patch)
tree6cc8349b50f8bd413cce81db436652ed9b3fb144 /drivers/media/i2c
parent63d54f82b9779d0ddc8c80743dd32990ecfb4543 (diff)
adv7481: Fix Video split rendering observed on QTVinput
Stabilize adv7481 raw irq status register(IO_REG_INT_RAW_STATUS_ADDR) read by adding delay in adv7481_irq workqueue schedule. This resolves video split rendering when hot-unplug and hot-plug the HDMI IN source. CRs-Fixed: 2204762 Change-Id: Id2e86c56983318c9855cec881644552eab7810e5 Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/adv7481.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/i2c/adv7481.c b/drivers/media/i2c/adv7481.c
index ce321e9883d3..9c8159cc737a 100644
--- a/drivers/media/i2c/adv7481.c
+++ b/drivers/media/i2c/adv7481.c
@@ -60,6 +60,7 @@
#define ONE_MHZ_TO_HZ 1000000
#define I2C_BLOCK_WRITE_SIZE 1024
+#define ADV_REG_STABLE_DELAY 70 /* ms*/
enum adv7481_gpio_t {
@@ -476,7 +477,7 @@ static irqreturn_t adv7481_irq(int irq, void *dev)
struct adv7481_state *state = dev;
schedule_delayed_work(&state->irq_delayed_work,
- msecs_to_jiffies(0));
+ msecs_to_jiffies(ADV_REG_STABLE_DELAY));
return IRQ_HANDLED;
}