Source-Changes archive

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

CVS commit: src/sys/arch/macppc/dev



Module Name:    src
Committed By:   pgoyette
Date:           Sun Feb  8 01:13:39 UTC 2009

Modified Files:
        src/sys/arch/macppc/dev: ki2c.c

Log Message:
Avoid asking the controller to transfer zero bytes of data, since we have
no clue if this works or not.  This prevents the i2c quick_{read,write}
protocols from working, but the only place those protocols are used is in
the code that enumerates the i2c bus and that just doesn't make sense for
ki2c anyway.

While here, make sure that i2c send_{byte,word} operations will work even
if the caller provides the cmd (ie, register to modify) and the data in
separate args.  This is the normal calling sequence for iic_exec() routines
and will enable dbcool (4) driver to update device registers.

OK'd macallan@


To generate a diff of this commit:
cvs rdiff -r1.11 -r1.12 src/sys/arch/macppc/dev/ki2c.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index