Re: [PATCH] i2c: at91: Restore pinctrl state if can't get scl/sda gpios

2020-05-15 Thread Wolfram Sang
On Wed, May 13, 2020 at 02:13:22PM +0300, Codrin Ciubotariu wrote: > If there is a strict pinmux or if simply the scl/sda gpios are missing, > the pins will remain in gpio mode, compromizing the I2C bus. > Change to the default state of the pins before returning the error. > > Fixes: a53acc7ebf27

[PATCH] i2c: at91: Restore pinctrl state if can't get scl/sda gpios

2020-05-13 Thread Codrin Ciubotariu
If there is a strict pinmux or if simply the scl/sda gpios are missing, the pins will remain in gpio mode, compromizing the I2C bus. Change to the default state of the pins before returning the error. Fixes: a53acc7ebf27 ("i2c: at91: Fix pinmux after devm_gpiod_get() for bus recovery")