Date: Tue, 5 Dec 2006 16:46:54 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 111148 for review Message-ID: <200612051646.kB5GksZe014697@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=111148 Change 111148 by imp@imp_lighthouse on 2006/12/05 16:46:25 unbreak icee and remove debugs. Affected files ... .. //depot/projects/arm/src/sys/arm/at91/at91_twi.c#35 edit Differences ... ==== //depot/projects/arm/src/sys/arm/at91/at91_twi.c#35 (text+ko) ==== @@ -232,8 +232,6 @@ err = EBUSY; else if (sr & TWI_SR_NACK) err = EADDRNOTAVAIL; - if (sr & ~bit) - printf("status is %x\n", sr); return (err); } @@ -271,7 +269,6 @@ WR4(sc, TWI_CR, TWI_CR_SWRST); WR4(sc, TWI_CR, TWI_CR_MSEN | TWI_CR_SVDIS); WR4(sc, TWI_CWGR, sc->cwgr); - printf("setting cwgr to %#x\n", sc->cwgr); return 0; } @@ -336,20 +333,16 @@ WR4(sc, TWI_THR, *buf++); if (len == 0) WR4(sc, TWI_CR, TWI_CR_STOP); - if ((err = at91_twi_wait(sc, TWI_SR_TXRDY))) { - printf("Len %d\n", len); + if ((err = at91_twi_wait(sc, TWI_SR_TXRDY))) goto out; - } } } if ((err = at91_twi_wait(sc, TWI_SR_TXCOMP))) break; } out:; - if (err) { + if (err) WR4(sc, TWI_CR, TWI_CR_STOP); - printf("Err is %d\n", err); - } AT91_TWI_UNLOCK(sc); return (err); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612051646.kB5GksZe014697>