Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Video/Framebuffer: add fuctional power management support to Blackfin BF54x LQ043 framebuffer driver

Fix bug: does nor properply resume after suspend mem
Fix for PM_SUSPEND_MEM: Save and restore peripheral base and DMA registers

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Michael Hennerich and committed by
Linus Torvalds
141d87e7 481ebd0d

+12 -3
+12 -3
drivers/video/bf54x-lq043fb.c
··· 733 733 static int bfin_bf54x_suspend(struct platform_device *pdev, pm_message_t state) 734 734 { 735 735 struct fb_info *fbinfo = platform_get_drvdata(pdev); 736 - struct bfin_bf54xfb_info *info = fbinfo->par; 737 736 738 737 bfin_write_EPPI0_CONTROL(bfin_read_EPPI0_CONTROL() & ~EPPI_EN); 739 738 disable_dma(CH_EPPI0); ··· 746 747 struct fb_info *fbinfo = platform_get_drvdata(pdev); 747 748 struct bfin_bf54xfb_info *info = fbinfo->par; 748 749 749 - enable_dma(CH_EPPI0); 750 - bfin_write_EPPI0_CONTROL(bfin_read_EPPI0_CONTROL() | EPPI_EN); 750 + if (info->lq043_open_cnt) { 751 + 752 + bfin_write_EPPI0_CONTROL(0); 753 + SSYNC(); 754 + 755 + config_dma(info); 756 + config_ppi(info); 757 + 758 + /* start dma */ 759 + enable_dma(CH_EPPI0); 760 + bfin_write_EPPI0_CONTROL(bfin_read_EPPI0_CONTROL() | EPPI_EN); 761 + } 751 762 752 763 return 0; 753 764 }