]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52bb176a1eba97a9ae50932da0852e77fab21910
tree4b5b52f3e2582d91a3863056a6f3903f17e7f1e7
parentadd656d6566000cb25c227d3c5ee011f3baeee5a
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