Acquire/release the i2c bus before/after reading the temperature register.
authorkettenis <kettenis@openbsd.org>
Sat, 30 May 2015 08:39:05 +0000 (08:39 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 30 May 2015 08:39:05 +0000 (08:39 +0000)
commit338688f7f21b0621453ba44096cef6fa7d641668
treede0894e42338964240e405c719f2fcb6e8d70237
parentdafdc704d53178a9522bfb88d65baa136d68e971
Acquire/release the i2c bus before/after reading the temperature register.
Prevents concurrent access to the smu(4) microcontroller on Apple G5
machines, which would result in errors reading the RTC.

ok deraadt@, mpi@
sys/dev/i2c/lm75.c