Dear All, here is a new iteration of the fix for the pinmuxing issue while requesting an interrupt. I don't like this implementation either as: * pinctrl_mux_gpio_request_enable is very similar to pinctrl_gpio_request, and the name I have picked up is not exactly brilliant... * it may cause an error message like "Pin X is busy, can't configure it as GPIO." (for cd-gpios pins for example) as it can't check the status of the pin before requesting it (can it?) * because it's discarding errors returned by pinctrl_mux_gpio_request_enable This problem needs fixing, but the solutions proposed so far don't look great, as they are not spectacularly neat. What's the best way to fix this? Ideas and comments very welcome! Thanks, Fab Fabrizio Castro (2): pinctrl: core: Add pinctrl_mux_gpio_request_enable gpio: rcar: Set pin as a GPIO when configuring an interrupt drivers/gpio/gpio-rcar.c | 3 +++ drivers/pinctrl/core.c | 34 ++++++++++++++++++++++++++++++++++ include/linux/pinctrl/consumer.h | 6 ++++++ 3 files changed, 43 insertions(+) -- 2.7.4