On Thu, Jun 02, 2016 at 10:55:43PM +0100, Dan O'Donovan wrote: > chv_gpio_request_enable() clears some bits in the padctrl1 register > when GPIO mode is selected, but these bits are not restored by > chv_gpio_disable_free() when GPIO mode is unselected and this can > prevent other pin modes (e.g. I2C) from functioning correctly > thereafter on that pin. This patch adds saving/restoring of those > bits. Not sure how useful this is. If you want to mux I2C out of pins (even if they were previosly configured as GPIO), you should call pinctrl to do that (or let the core to do that automatically). Expecting that certain (possibly unknown state) is restored does seem fragile to me. Also what happens if the pin was originally muxed as GPIO? -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html