drm: adv7511: really enable interrupts for EDID detection
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 4 Jan 2016 02:33:45 +0000 (03:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2017 21:09:45 +0000 (14:09 -0700)
commitaea7e5ce4a52130b12ea23f15af7ac7aa1ab8ef9
tree7775b9b75ae10984da18ee9c8bf8371699a6212b
parenta2e71dcfb0d47748ba8d947db52e4dafc019c6dc
drm: adv7511: really enable interrupts for EDID detection

commit d0be8584b01160eb6f49e77f8e9c1da286bb4ffb upstream.

The interrupts for EDID_READY or DDC_ERROR were never enabled in this
driver, so reading EDID always timed out when chip was powered down and
interrupts were used. Fix this and also remove clearing the interrupt
flags, they are cleared in POWER_DOWN mode anyhow (unlike the interrupt
enable flags) according to docs and my tests.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com>
Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i2c/adv7511.c