]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: at91: allow to have disabled gpio bank
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 16 Jan 2015 15:31:05 +0000 (16:31 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 26 Jan 2015 08:13:36 +0000 (09:13 +0100)
commitf6c02ee32042bfef8bb8ad3be134f89d18b364ff
tree8a51169928cdbf987c077b4cb4feb176760252a2
parent595bd192f596cf6aa525fc6fbe21ccdb8dab0aa1
pinctrl: at91: allow to have disabled gpio bank

Today we expect that all the bank are enabled, and count the number of banks
used by the pinctrl based on it instead of using the last bank id enabled.

So switch to it, set the chained IRQ at runtime based on enabled banks
and wait only the number of enabled gpio controllers at probe time.

Cc: <stable@vger.kernel.org> # 3.18
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c