-
Jean Delvare authored
Here follows a patch to i2c-algo-bit.c as found in linux-2.6.0-test9, with two fixes for adapters that cannot read SCL back. Althouth real adapters should be able to read SCL back, there are some that cannot, for example the ADM1032 evaluation board I am using. Such adapters where supposed to be already supported, but I found a probable bug and improved support. These changes were applied to our i2c CVS repository two weeks ago and have been reviewed by Mark D. Studebaker. List of changes: * Fix sclhi() for adapters that do not have getscl(). * Enable bit_test for adapters that do not have getscl(). * Mostly rewrite test_bus(), cleaner and probably faster.
fe77c2b7