drm: adv7511: Refactor power management
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 2 Mar 2015 12:38:52 +0000 (14:38 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 19 Mar 2015 10:28:55 +0000 (12:28 +0200)
commitc6169e49bd37c9556efd7564bcbbf7067cd7efa8
tree4b5b52f3e2582d91a3863056a6f3903f17e7f1e7
parenta5241289c4139f0521b89e34a70f5f998463ae15
drm: adv7511: Refactor power management

Remove the internal dependency on DPMS mode for power management by
using a by a powered state boolean instead, and use the new power off
handler at probe time. This ensure that the regmap cache is properly
marked as dirty when the device is probed, and the registers properly
synced during the first power up.

As a side effect this removes the initialization of current_edid_segment
at probe time, as the field will be initialized when the device is
powered on, at the latest right before reading EDID data.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>
Tested-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/gpu/drm/i2c/adv7511.c
This page took 0.026451 seconds and 5 git commands to generate.