diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-07-14 16:38:29 -0400 |
---|---|---|
committer | Jean Delvare <khali@mahadeva.delvare> | 2008-07-14 16:38:29 -0400 |
commit | 1b4dff9cd37d430bc76112396e92bb3552f37ccd (patch) | |
tree | 30bc7e5816a5d68bb0e2a202e4b54e1d776c2348 /drivers/scsi/mvme16x_scsi.c | |
parent | d4653bf946a5856a17342cd47c47d10b16b1cc22 (diff) |
i2c/eeprom: Fall back to SMBus read word transactions
When I2C block reads are not supported by the underlying adapter, use
SMBus read word transactions instead of consecutive byte reads.
Reasons for this change are:
* The consecutive byte read approach is not safe on multi-master buses.
* While consecutive byte reads have less overhead if you only count the
bytes on the bus, it takes more than twice as many transactions as
with SMBus read word transactions, and each transaction has a cost:
taking and releasing the adapter mutex, and for polling drivers,
waiting for the transaction to complete.
This change yields a significant performance boost at HZ=250 with
EEPROMs on an Intel 82801 bus (basically twice as fast.)
SMBus read word transactions are widely supported so I don't expect
compatibility issues.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/scsi/mvme16x_scsi.c')
0 files changed, 0 insertions, 0 deletions