]> 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)
commit2b7491f28dde84a33371577266c35baed47d400c
tree4b5b52f3e2582d91a3863056a6f3903f17e7f1e7
parent56ed9c93ba682230eec5a5e85c706793fdb47459
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