drm/bridge: adv7511: Reuse __adv7511_power_on/off() when probing EDID
authorJohn Stultz <john.stultz@linaro.org>
Tue, 17 Jan 2017 00:52:51 +0000 (16:52 -0800)
committerArchit Taneja <architt@codeaurora.org>
Thu, 19 Jan 2017 03:44:04 +0000 (09:14 +0530)
commit4226d9b127cf4758ba0e07931b3f0d59f1b1a50c
tree16cdaa6e5fb6cbcf0fbac87b10080ffde9e0de80
parent651e4769ba2a9f20c4b8a823ae2727bf7fa9c9f0
drm/bridge: adv7511: Reuse __adv7511_power_on/off() when probing EDID

Thus this patch changes the EDID probing logic so that we
re-use the __adv7511_power_on/off() calls instead of duplciating
logic.

This does change behavior slightly as it adds the HPD signal
pulse to the EDID probe path, but Archit has had a patch to
add HPD signal pulse to the EDID probe path before, so this
should address the cases where that helped. Another difference
is that regcache_mark_dirty() is also called in the power off
path once EDID is probed.

Cc: David Airlie <airlied@linux.ie>
Cc: Archit Taneja <architt@codeaurora.org>
Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1484614372-15342-6-git-send-email-john.stultz@linaro.org
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c