Skip to contentSkip to conversation

speeding up i2c drivers

DISCUSSION Murtada Shah 2 participants 2 messages Apr 29, 2002

lore
Share & tools
lore
#0 lore raw

I want to speed up the linux kernel i2c drivers. They are running @ 10Khz now, although i2c is capable of 100. Would anyone be able to point me to the right direction?

Murtada Shah

#1 lore raw
Quoted 3 lines · Murtada Shah

I want to speed up the linux kernel i2c drivers. They are running @ 10Khz now, although i2c is capable of 100. Would anyone be able to point me to the right direction?

Look in drivers/i2c/*

The details depend on what algorithm your interface uses. For "bitbanging" algorithm for example, timing information is coded in the last parameters of the struct i2c_algo_bit_data.

That said, i2c normally automatically slows down at the speed of the slowest device on the bus, so it may well be that the 10Khz you see has nothing to do with your kernel driver.

HTH,
Y.