Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/omap fix a bug in obiosdhc_bus_clock where SYSC...



details:   https://anonhg.NetBSD.org/src/rev/e97a6e7a8453
branches:  trunk
changeset: 789064:e97a6e7a8453
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Aug 05 21:55:47 2013 +0000

description:
fix a bug in obiosdhc_bus_clock where SYSCTL_CEN bit wasnt being cleared or set properly, from Rui Paulo

diffstat:

 sys/arch/arm/omap/omap3_sdhc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 200660393975 -r e97a6e7a8453 sys/arch/arm/omap/omap3_sdhc.c
--- a/sys/arch/arm/omap/omap3_sdhc.c    Mon Aug 05 20:52:08 2013 +0000
+++ b/sys/arch/arm/omap/omap3_sdhc.c    Mon Aug 05 21:55:47 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: omap3_sdhc.c,v 1.12 2013/06/28 00:50:22 matt Exp $     */
+/*     $NetBSD: omap3_sdhc.c,v 1.13 2013/08/05 21:55:47 jmcneill Exp $ */
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omap3_sdhc.c,v 1.12 2013/06/28 00:50:22 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omap3_sdhc.c,v 1.13 2013/08/05 21:55:47 jmcneill Exp $");
 
 #include "opt_omap.h"
 
@@ -372,9 +372,9 @@
 
        ctl = bus_space_read_4(osc->sc_bst, osc->sc_bsh, MMCHS_SYSCTL);
        if (clk == 0) {
-               clk &= ~SYSCTL_CEN;
+               ctl &= ~SYSCTL_CEN;
        } else {
-               clk |= SYSCTL_CEN;
+               ctl |= SYSCTL_CEN;
        }
        bus_space_write_4(osc->sc_bst, osc->sc_bsh, MMCHS_SYSCTL, ctl);
 



Home | Main Index | Thread Index | Old Index