Date: Sun, 6 Jan 2008 21:06:33 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 132639 for review Message-ID: <200801062106.m06L6X8Q069625@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132639 Change 132639 by hselasky@hselasky_laptop001 on 2008/01/06 21:06:03 AT91 UDP related: Disable clocks after uninit is called. Affected files ... .. //depot/projects/usb/src/sys/arm/at91/at91_udp.c#5 edit Differences ... ==== //depot/projects/usb/src/sys/arm/at91/at91_udp.c#5 (text+ko) ==== @@ -276,12 +276,6 @@ AT91_UDP_WRITE_4(&(sc->sc_dci), AT91_UDP_IDR, 0xFFFFFFFF); AT91_UDP_WRITE_4(&(sc->sc_dci), AT91_UDP_ICR, 0xFFFFFFFF); - /* disable clocks */ - at91_pmc_clock_disable(sc->sc_iclk); - at91_pmc_clock_disable(sc->sc_fclk); - at91_pmc_clock_deref(sc->sc_fclk); - at91_pmc_clock_deref(sc->sc_iclk); - /* disable VBUS interrupt */ at91_pio_gpio_set_interrupt(VBUS_BASE, VBUS_MASK, 0); @@ -319,6 +313,12 @@ usbd_bus_mem_free_all(&(sc->sc_dci.sc_bus), NULL); + /* disable clocks */ + at91_pmc_clock_disable(sc->sc_iclk); + at91_pmc_clock_disable(sc->sc_fclk); + at91_pmc_clock_deref(sc->sc_fclk); + at91_pmc_clock_deref(sc->sc_iclk); + return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801062106.m06L6X8Q069625>