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)
commit463e8f845cbf1c01e4cc8aeef1703212991d8e1e
treedfa5cfe2776a77298702dc819d83a5d623e0138f
parent371a015344b6e270e7e3632107d9554ec6d27a6b
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