Commit 288ef567 authored by Huacai Chen's avatar Huacai Chen Committed by Greg Kroah-Hartman

staging: sm750: Fix lynxfb_ops_imageblit() if image->depth != 1

If image->depth != 1, lynxfb_ops_imageblit() should fallback to call
cfb_imageblit(), not return directly. Otherwise it can't display the
boot logo.

Cc: Teddy Wang <teddy.wang@siliconmotion.com>
Acked-by: default avatarSudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: default avatarHuacai Chen <chenhc@lemote.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2e043a92
...@@ -2,6 +2,7 @@ TODO: ...@@ -2,6 +2,7 @@ TODO:
- lots of checkpatch cleanup - lots of checkpatch cleanup
- use kernel coding style - use kernel coding style
- refine the code and remove unused code - refine the code and remove unused code
- Implement hardware acceleration for imageblit if image->depth > 1
- check on hardware effects of removal of USE_HW_I2C and USE_DVICHIP (these two - check on hardware effects of removal of USE_HW_I2C and USE_DVICHIP (these two
are supposed to be sample code which is given here if someone wants to are supposed to be sample code which is given here if someone wants to
use those functionalities) use those functionalities)
......
...@@ -274,7 +274,10 @@ static void lynxfb_ops_imageblit(struct fb_info *info, ...@@ -274,7 +274,10 @@ static void lynxfb_ops_imageblit(struct fb_info *info,
} }
goto _do_work; goto _do_work;
} }
/* TODO: Implement hardware acceleration for image->depth > 1 */
cfb_imageblit(info, image);
return; return;
_do_work: _do_work:
/* /*
* If not use spin_lock, system will die if user load driver * If not use spin_lock, system will die if user load driver
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment