Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108946
b: refs/heads/master
c: 141d87e
h: refs/heads/master
v: v3
  • Loading branch information
Michael Hennerich authored and Linus Torvalds committed Aug 20, 2008
1 parent f879e10 commit c244ec8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 481ebd0d76b501c5772f702ae31e55350c0858a3
refs/heads/master: 141d87e7debe3334018e46859c7565c44cebda65
15 changes: 12 additions & 3 deletions trunk/drivers/video/bf54x-lq043fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,6 @@ static int bfin_bf54x_remove(struct platform_device *pdev)
static int bfin_bf54x_suspend(struct platform_device *pdev, pm_message_t state)
{
struct fb_info *fbinfo = platform_get_drvdata(pdev);
struct bfin_bf54xfb_info *info = fbinfo->par;

bfin_write_EPPI0_CONTROL(bfin_read_EPPI0_CONTROL() & ~EPPI_EN);
disable_dma(CH_EPPI0);
Expand All @@ -747,8 +746,18 @@ static int bfin_bf54x_resume(struct platform_device *pdev)
struct fb_info *fbinfo = platform_get_drvdata(pdev);
struct bfin_bf54xfb_info *info = fbinfo->par;

enable_dma(CH_EPPI0);
bfin_write_EPPI0_CONTROL(bfin_read_EPPI0_CONTROL() | EPPI_EN);
if (info->lq043_open_cnt) {

bfin_write_EPPI0_CONTROL(0);
SSYNC();

config_dma(info);
config_ppi(info);

/* start dma */
enable_dma(CH_EPPI0);
bfin_write_EPPI0_CONTROL(bfin_read_EPPI0_CONTROL() | EPPI_EN);
}

return 0;
}
Expand Down

0 comments on commit c244ec8

Please sign in to comment.