Title: [4129] branches/2007R1/drivers/char/bfin_sport.c: bug[#3817] TXSE and RXSE should be left-shifted 8 bits
Revision
4129
Author
cliff
Date
2008-01-21 19:43:26 -0600 (Mon, 21 Jan 2008)

Log Message

bug[#3817] TXSE and RXSE should be left-shifted 8 bits

Diffstat

 bfin_sport.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

Modified Paths

Diff

Modified: branches/2007R1/drivers/char/bfin_sport.c (4128 => 4129)


--- branches/2007R1/drivers/char/bfin_sport.c	2008-01-22 01:20:21 UTC (rev 4128)
+++ branches/2007R1/drivers/char/bfin_sport.c	2008-01-22 01:43:26 UTC (rev 4129)
@@ -160,12 +160,14 @@
 		tcr1 |= (config->lsb_first << 4) | (config->fsync << 10) | \
 			(config->data_indep << 11) | (config->act_low << 12) | \
 			(config->late_fsync << 13) | (config->tckfe << 14) ;
-		tcr2 |= config->sec_en;
+		if (config->sec_en)
+			tcr2 |= TXSE;
 
 		rcr1 |= (config->lsb_first << 4) | (config->fsync << 10) | \
 			(config->data_indep << 11) | (config->act_low << 12) | \
 			(config->late_fsync << 13) | (config->tckfe << 14) ;
-		rcr2 |= config->sec_en;
+		if (config->sec_en)
+			rcr2 |= RXSE;
 	}
 
 	/* Using internal clock*/
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to