]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: mux: pca954x: retry updating the mux selection on failure
authorPeter Rosin <peda@axentia.se>
Wed, 14 Sep 2016 13:24:12 +0000 (15:24 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 21 Sep 2016 21:10:21 +0000 (23:10 +0200)
commitc21852f3e2eba6e3ef4c28c117ce0e62dee8ebb2
treedfa5cfe2776a77298702dc819d83a5d623e0138f
parent8e2ddc89e8981d6d37594a05a84a837b76c91f3c
i2c: mux: pca954x: retry updating the mux selection on failure

The cached value of the last selected channel prevents retries on the
next call, even on failure to update the selected channel. Fix that.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/muxes/i2c-mux-pca954x.c