i2c: mux: pca954x: force reset on probe if available
authorMike Looijmans <mike.looijmans@topic.nl>
Tue, 1 May 2018 11:42:12 +0000 (13:42 +0200)
committerPeter Rosin <peda@axentia.se>
Sat, 19 May 2018 21:54:47 +0000 (23:54 +0200)
commita2f8445d4ca2796283c07d4ba8e78718071de863
treed42da01f4a618f564449d88bc933c70c0bf88cc6
parentfca700d6d2190292f34282d50b613a9efb100f70
i2c: mux: pca954x: force reset on probe if available

Instead of just hogging the reset GPIO into deactivated state, activate and
then de-activate the reset. This allows for better recovery if the CPU was
reset halfway through an I2C transaction for example.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Peter Rosin <peda@axentia.se>
drivers/i2c/muxes/i2c-mux-pca954x.c