Re: [PATCH] i2c: bcm2835: Set clock-stretch timeout to 35ms

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

 



Hi Ivan,

> The BCM2835 I2C blocks have a register to set the clock-stretch
> timeout - how long the device is allowed to hold SCL low - in bus
> cycles. The current driver doesn't write to the register, therefore
> the default value of 64 cycles is being used for all devices.
> 
> Set the timeout to the value recommended for SMBus - 35ms.

By default, busses are I2C and not SMBus, so it looks like we should
finally apply this patch which disables CLKT:

http://patchwork.ozlabs.org/project/linux-i2c/patch/1519422151-6218-1-git-send-email-stefan.wahren@xxxxxxxx/

If you really want the SMBus timeout applied, you can check for a
"smbus" property in DT and then set CLKT accordingly in a seperate
patch.

Kind regards,

   Wolfram

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux