i2c: piix4: Use usleep_range()
authorGuenter Roeck <[email protected]>
Mon, 26 Feb 2018 20:46:52 +0000 (12:46 -0800)
committerWolfram Sang <[email protected]>
Fri, 2 Mar 2018 10:16:52 +0000 (11:16 +0100)
commit0e89b2fec748177899c1f9ebfbe87714ffa248eb
tree5c9f4e59780ff08005f918b53ec1bfdf222eaaa0
parentbe5b928038ba1906f064290affb35bcd3bc74844
i2c: piix4: Use usleep_range()

The piix4 i2c driver is extremely slow. Replacing msleep()
with usleep_range() increases its speed substantially.
Use sleep ranges similar to those used in the i2c-801 driver
to keep things simple.

Signed-off-by: Guenter Roeck <[email protected]>
Reviewed-by: Jean Delvare <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/busses/i2c-piix4.c