mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
IB/hfi1: Extend i2c timeout
Allow a longer timeout for i2c due to clock stretching and inaccurate jiffy timing when under a spin lock. This timeout is consistent with other i2c-algo-bit users. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
f6aa783546
commit
d5cf683e62
@ -161,7 +161,7 @@ static struct hfi1_i2c_bus *init_i2c_bus(struct hfi1_devdata *dd,
|
||||
bus->algo.getsda = hfi1_getsda;
|
||||
bus->algo.getscl = hfi1_getscl;
|
||||
bus->algo.udelay = 5;
|
||||
bus->algo.timeout = usecs_to_jiffies(50);
|
||||
bus->algo.timeout = usecs_to_jiffies(100000);
|
||||
bus->algo.data = bus;
|
||||
|
||||
bus->adapter.owner = THIS_MODULE;
|
||||
|
Loading…
Reference in New Issue
Block a user