Title: [7764] branches/2009R1/drivers/char/bfin_sport.c: bug[#5352]apply the patch from Jeppe Ledet-Pedersen about setting sport 2D DMA
Revision
7764
Author
cliff
Date
2009-11-06 04:43:20 -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: branches/2009R1/drivers/char/bfin_sport.c (7763 => 7764)


--- branches/2009R1/drivers/char/bfin_sport.c	2009-11-06 09:40:15 UTC (rev 7763)
+++ branches/2009R1/drivers/char/bfin_sport.c	2009-11-06 09:43:20 UTC (rev 7764)
@@ -529,8 +529,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;
 		}
@@ -607,8 +607,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