]> git.baikalelectronics.ru Git - kernel.git/commit
drm: mxsfb: Implement drm_panel handling
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 1 Feb 2017 17:19:47 +0000 (15:19 -0200)
committerDave Airlie <airlied@redhat.com>
Fri, 10 Mar 2017 01:11:14 +0000 (11:11 +1000)
commit3f81e1340706e9a7f854808e2f580c3106805d0c
treef1d1b3f39bcb48d8ec8285f53fdb8e6e4a78639a
parentd42986b6c600da4215973878f1c889cdabbdd122
drm: mxsfb: Implement drm_panel handling

Currently when the 'power-supply' regulator is passed via device tree
it does not actually work since drm_panel_prepare()/drm_panel_enable()
are never called.

Quoting Thierry Reding: "It should really call drm_panel_prepare() and
drm_panel_enable() while switching on the display pipeline and
drm_panel_disable(), followed by drm_panel_unprepare() while switching
off the display pipeline."

So do as suggested, so that the 'power-supply' regulator can be functional.

Reported-by: Breno Lima <breno.lima@nxp.com>
Suggested-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/mxsfb/mxsfb_drv.c