Message ID | 1358341121-19480-1-git-send-email-fabio.estevam@freescale.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Jan 16, 2013 at 10:58:41AM -0200, Fabio Estevam wrote: > Shawn, > > Since you have taken a patch recently that touches this file and given the fact > that we have zero response from the fb maintainer, can you please apply it via > imx tree? Ok, I will queue it as the 3rd batch of fixes to be sent next week. Is it a material for stable tree? Shawn
On Thu, Jan 17, 2013 at 12:17 AM, Shawn Guo <shawn.guo@linaro.org> wrote: > On Wed, Jan 16, 2013 at 10:58:41AM -0200, Fabio Estevam wrote: >> Shawn, >> >> Since you have taken a patch recently that touches this file and given the fact >> that we have zero response from the fb maintainer, can you please apply it via >> imx tree? > > Ok, I will queue it as the 3rd batch of fixes to be sent next week. > > Is it a material for stable tree? It could be sent to stable, but this patch does not apply to stable because stable tree does not have your commit: commit e69dc9a91eeb0387e08d8e1d0e576c88b28902fc Author: Shawn Guo <shawn.guo@linaro.org> Date: Sun Sep 16 19:59:53 2012 +0800 video: imxfb: remove cpu_is_xxx by using platform_device_id
diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c index 8435c5d..609f4e9 100644 --- a/drivers/video/imxfb.c +++ b/drivers/video/imxfb.c @@ -139,6 +139,7 @@ struct imxfb_info { struct clk *clk_ahb; struct clk *clk_per; enum imxfb_type devtype; + bool enabled; /* * These are the addresses we mapped @@ -536,6 +537,10 @@ static void imxfb_exit_backlight(struct imxfb_info *fbi) static void imxfb_enable_controller(struct imxfb_info *fbi) { + + if (fbi->enabled) + return; + pr_debug("Enabling LCD controller\n"); writel(fbi->screen_dma, fbi->regs + LCDC_SSA); @@ -556,6 +561,7 @@ static void imxfb_enable_controller(struct imxfb_info *fbi) clk_prepare_enable(fbi->clk_ipg); clk_prepare_enable(fbi->clk_ahb); clk_prepare_enable(fbi->clk_per); + fbi->enabled = true; if (fbi->backlight_power) fbi->backlight_power(1); @@ -565,6 +571,9 @@ static void imxfb_enable_controller(struct imxfb_info *fbi) static void imxfb_disable_controller(struct imxfb_info *fbi) { + if (!fbi->enabled) + return; + pr_debug("Disabling LCD controller\n"); if (fbi->backlight_power) @@ -575,6 +584,7 @@ static void imxfb_disable_controller(struct imxfb_info *fbi) clk_disable_unprepare(fbi->clk_per); clk_disable_unprepare(fbi->clk_ipg); clk_disable_unprepare(fbi->clk_ahb); + fbi->enabled = false; writel(0, fbi->regs + LCDC_RMCR); }