Based on a recent discussion [1],[2] about the unexpected output of gpioinfo this patch series tries to improve the situation. Patches 1-3 are specific changes for bcm2835 while the last one is the intended improvement for gpiolib. Changes in V2: - take strict mode into account as suggested by Linus - add bcm2835 specific changes [1] - https://marc.info/?l=linux-gpio&m=154716249606544 [2] - https://marc.info/?l=linux-gpio&m=154747265118765 Stefan Wahren (4): pinctrl: bcm2835: declare pin config as generic pinctrl: bcm2835: Direct GPIO config changes to generic pinctrl pinctrl: bcm2835: activate strict mux mode gpiolib: Take MUX usage into account drivers/gpio/gpiolib.c | 3 ++- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 5 ++++- drivers/pinctrl/core.c | 23 +++++++++++++++++++++++ drivers/pinctrl/pinmux.c | 18 ++++++++++++++++++ drivers/pinctrl/pinmux.h | 7 +++++++ include/linux/pinctrl/consumer.h | 6 ++++++ 6 files changed, 60 insertions(+), 2 deletions(-) -- 2.7.4