]> Zhao Yanbai Git Server - minix.git/commit
i2c: increase BUFLEN/CMDLEN to 128, add page flag. 88/688/2
authorThomas Cort <tcort@minix3.org>
Fri, 26 Jul 2013 23:44:52 +0000 (19:44 -0400)
committerThomas Cort <tcort@minix3.org>
Sat, 27 Jul 2013 12:21:37 +0000 (08:21 -0400)
commit437177b028e7fd39ddf81c22570fa13b6c22c565
tree4d202924b47ecfeea471dbd1aa71be24ceb9d782
parent11be35a165022172ed3cea20f2b5df0307540b0e
i2c: increase BUFLEN/CMDLEN to 128, add page flag.

128 byte reads are much more common than 32 byte reads. The message
passing + setup/teardown for a read is much more expensive, in terms
of time, than the reading itself. A slightly bigger struct is well
worth the time savings. This reduces read times for /dev/eeprom
from 57 seconds per 4KB to 14 seconds.

Additionally, make sending the page address in the eeprom driver
and utility optional. This can save a little time when reading
within the same page and allows support for smaller devices that
don't support pages (example: chips containing EDID).

Change-Id: Ie48087caee40c11fa241d1555fce9309ddd27b43
commands/eepromread/board_info.c
commands/eepromread/eepromread.1
commands/eepromread/eepromread.c
commands/eepromread/eepromread.h
drivers/cat24c256/cat24c256.c
include/minix/com.h
sys/dev/i2c/i2c_io.h