From: Huacai Chen Date: Mon, 11 May 2015 03:08:22 +0000 (+0800) Subject: staging: sm750: Fix lynxfb_ops_imageblit() if image->depth != 1 X-Git-Tag: firefly_0821_release~176^2~1545^2~588 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=288ef567ab7b43f19838afbe12b471f1ff5fdfa3;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Sudip Mukherjee Signed-off-by: Huacai Chen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sm750fb/TODO b/drivers/staging/sm750fb/TODO index ce23f3ccc3a4..a3a877d90066 100644 --- a/drivers/staging/sm750fb/TODO +++ b/drivers/staging/sm750fb/TODO @@ -2,6 +2,7 @@ TODO: - lots of checkpatch cleanup - use kernel coding style - 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 are supposed to be sample code which is given here if someone wants to use those functionalities) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 97fe04a9451f..69b18f399b90 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -274,7 +274,10 @@ static void lynxfb_ops_imageblit(struct fb_info *info, } goto _do_work; } + /* TODO: Implement hardware acceleration for image->depth > 1 */ + cfb_imageblit(info, image); return; + _do_work: /* * If not use spin_lock, system will die if user load driver