Skip to contentSkip to conversation

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

PATCH RESEND Superseded Huacai Chen 3 participants 3 messages May 8, 2015 – May 10, 2015

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH RESEND v3 1/1 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.

---
V2: Coding style ajustment.
V3: Add TODO comments.

 drivers/staging/sm750fb/TODO    |    1 +
 drivers/staging/sm750fb/sm750.c |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
drivers/staging/sm750fb/TODO +1 -0
index bc16172..f8698498 100644
@@ -2,6 +2,7 @@ TODO:
 - lots of clechpatch 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)
drivers/staging/sm750fb/sm750.c +3 -0
index 3c7ea95..6f78de3 100644
@@ -279,7 +279,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
Signature · 1 line
1.7.7.3
maintainer
#1 lore raw
Quoted 3 lines · Huacai Chen

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

why resending?

regards
sudip

#2 lore raw
In reply to Huacai Chen
Quoted 7 lines · Huacai Chen

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

Quoted 7 lines

---
V2: Coding style ajustment.
V3: Add TODO comments.

 drivers/staging/sm750fb/TODO    |    1 +
 drivers/staging/sm750fb/sm750.c |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

Doesn't apply without fuzz, so something isn't synced up properly here. Please refresh it against my tree and resend.

thanks,

greg k-h