]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Sep 2016 08:12:46 +0000 (10:12 +0200)
commit9bdb254d4d7a829a36047780e308e287cea70abb
treea8121736176d8cd7fb76afbd3d40341bc6b81444
parent90cc7b41b7943e882c0c65386f8a8c1790f07b03
i2c: mux: pca954x: retry updating the mux selection on failure

commit 463e8f845cbf1c01e4cc8aeef1703212991d8e1e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/muxes/i2c-mux-pca954x.c