Title: [4168] branches/2008R1/drivers/net/bfin_mac.c: [#2424] Fix bug: The clock divisor is set to all ones at reset.
Revision
4168
Author
cooloney
Date
2008-01-29 21:44:23 -0600 (Tue, 29 Jan 2008)

Log Message

[#2424] Fix bug: The clock divisor is set to all ones at reset.

Signed-off-by: Kalle Pokki <[EMAIL PROTECTED]>

Diffstat

 bfin_mac.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Modified Paths

Diff

Modified: branches/2008R1/drivers/net/bfin_mac.c (4167 => 4168)


--- branches/2008R1/drivers/net/bfin_mac.c	2008-01-29 16:02:28 UTC (rev 4167)
+++ branches/2008R1/drivers/net/bfin_mac.c	2008-01-30 03:44:23 UTC (rev 4168)
@@ -413,7 +413,7 @@
 	mdc_div = ((sclk / MDC_CLK) / 2) - 1;
 
 	sysctl = bfin_read_EMAC_SYSCTL();
-	sysctl |= SET_MDCDIV(mdc_div);
+	sysctl = (sysctl & ~MDCDIV) | SET_MDCDIV(mdc_div);
 	bfin_write_EMAC_SYSCTL(sysctl);
 
 	/* search for connect PHY device */
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to