Title: [7763] trunk/drivers/char/bfin_sport.c: bug[#5352]apply the patch from Jeppe Ledet-Pedersen about setting sport 2D DMA
Revision
7763
Author
cliff
Date
2009-11-06 04:40:15 -0500 (Fri, 06 Nov 2009)

Log Message

bug[#5352]apply the patch from Jeppe Ledet-Pedersen about setting sport 2D DMA

Modified Paths

Diff

Modified: trunk/drivers/char/bfin_sport.c (7762 => 7763)


--- trunk/drivers/char/bfin_sport.c	2009-11-06 08:24:14 UTC (rev 7762)
+++ trunk/drivers/char/bfin_sport.c	2009-11-06 09:40:15 UTC (rev 7763)
@@ -525,8 +525,8 @@
 		    (WNR | RESTART | sport_wordsize(cfg->word_len) | DI_EN);
 		xcount = count / word_bytes;
 		ycount = 0;
-		if (xcount > 0x8000) {
-			ycount = xcount >> 15;
+		if ((count / word_bytes) > 0x8000) {
+			ycount = (count / word_bytes) >> 15;
 			xcount = 0x8000;
 			dma_config |= DMA2D;
 		}
@@ -601,8 +601,8 @@
 		dma_config = (RESTART | sport_wordsize(cfg->word_len) | DI_EN);
 		xcount = count / word_bytes;
 		ycount = 0;
-		if (xcount > 0x8000) {
-			ycount = xcount >> 15;
+		if ((count / word_bytes) > 0x8000) {
+			ycount = (count / word_bytes) >> 15;
 			xcount = 0x8000;
 			dma_config |= DMA2D;
 		}
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to