Author: marius
Date: Sat May 26 09:08:30 2012
New Revision: 236082
URL: http://svn.freebsd.org/changeset/base/236082

Log:
  MFC: r234293
  
  Generate an obviously missing STOP when having finished transmitting data.
  This fixes communication with PCF8563.

Modified:
  stable/9/sys/arm/at91/at91_twi.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/amd64/include/xen/   (props changed)
  stable/9/sys/boot/   (props changed)
  stable/9/sys/boot/i386/efi/   (props changed)
  stable/9/sys/boot/ia64/efi/   (props changed)
  stable/9/sys/boot/ia64/ski/   (props changed)
  stable/9/sys/boot/powerpc/boot1.chrp/   (props changed)
  stable/9/sys/boot/powerpc/ofw/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)
  stable/9/sys/conf/   (props changed)
  stable/9/sys/contrib/dev/acpica/   (props changed)
  stable/9/sys/contrib/octeon-sdk/   (props changed)
  stable/9/sys/contrib/pf/   (props changed)
  stable/9/sys/contrib/x86emu/   (props changed)
  stable/9/sys/dev/   (props changed)
  stable/9/sys/dev/e1000/   (props changed)
  stable/9/sys/dev/ixgbe/   (props changed)
  stable/9/sys/fs/   (props changed)
  stable/9/sys/fs/ntfs/   (props changed)
  stable/9/sys/modules/   (props changed)

Modified: stable/9/sys/arm/at91/at91_twi.c
==============================================================================
--- stable/9/sys/arm/at91/at91_twi.c    Sat May 26 09:05:45 2012        
(r236081)
+++ stable/9/sys/arm/at91/at91_twi.c    Sat May 26 09:08:30 2012        
(r236082)
@@ -364,6 +364,7 @@ at91_twi_transfer(device_t dev, struct i
                                        goto out;
                                WR4(sc, TWI_THR, *buf++);
                        }
+                       WR4(sc, TWI_CR, TWI_CR_STOP);
                }
                if ((err = at91_twi_wait(sc, TWI_SR_TXCOMP)))
                        break;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to