]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
video: fbdev: simplefb: Separate clk / regulator get and enable steps
authorHans de Goede <hdegoede@redhat.com>
Wed, 11 Jan 2017 16:09:50 +0000 (17:09 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 11 Jan 2017 16:09:50 +0000 (17:09 +0100)
commita3accfd70e166af4956a686ffcdf414702c0a13e
tree16452cb7831c0d3ac5ded55e7a3da455145e9567
parent8aac7f34369726d1a158788ae8aff3002d5eb528
video: fbdev: simplefb: Separate clk / regulator get and enable steps

Currently when a simplefb needs both clocks and regulators and one
of the regulators returns -EPROBE_DEFER when we try to get it, we end
up disabling the clocks. This causes the screen to go blank; and in some
cases my cause hardware state to be lost resulting in the framebuffer not
working at all.

This commit splits the get and enable steps and only enables
clocks and regulators after successfully getting all of them,
fixing the disabling of the clocks which were left enabled by
the firmware setting up the simplefb.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/simplefb.c