[PATCH 0/1 SRU Xenial] Support setting I2C_TIMEOUT via ioctl for i2c-designware

Kai-Heng Feng kai.heng.feng at canonical.com
Thu Sep 21 05:03:56 UTC 2017


BugLink: https://bugs.launchpad.net/bugs/1718578

[Impact]
The timeout value in i2c-designware is hardcoded. Userspace tool may
want to change the timeout value via ioctl I2C_TIMEOUT, but it doesn't
work for i2c-designware.

[Test Case]
Change the timeout value via ioctl I2C_TIMEOUT. Nothing happened.
With the patch, timeout value for i2c-designware will be updated
correctly.

[Fix]
The timeout value now uses adap->timeout instead of hardcoded HZ.

[Regression Potential]
Minimal. The change only applies to a specific driver, i2c-designware.
Also, it has minimal code change.

Weifeng Voon (1):
  i2c: designware: Use transfer timeout from ioctl I2C_TIMEOUT

 drivers/i2c/busses/i2c-designware-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.14.1





More information about the kernel-team mailing list