i2c-i801: Clear only status bits in HST_STS
authorDaniel Kurtz <djkurtz@chromium.org>
Tue, 24 Jul 2012 12:13:57 +0000 (14:13 +0200)
committerJean Delvare <khali@endymion.delvare>
Tue, 24 Jul 2012 12:13:57 +0000 (14:13 +0200)
commit0ba8b8bfd56533f0b9af7513c6ebbc10c79ae052
tree2ebbc15a16f19a8e3c3d0f883bd66e97891fa786
parentefa3cb15ad8ba40bd08b05df87ef0ca6680ef762
i2c-i801: Clear only status bits in HST_STS

Writing back the whole status register could clear unwanted bits.
In particular, it could clear the "INUSE_STS" bit, which is a
'hardware semaphore', that might be useful to use some day.
To prepare for this, let's ban writing back the whole status to register
HST_STS, of which this is the only instance.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-i801.c